CN113641834B - File processing method and electronic equipment - Google Patents

File processing method and electronic equipment Download PDF

Info

Publication number
CN113641834B
CN113641834B CN202110738587.6A CN202110738587A CN113641834B CN 113641834 B CN113641834 B CN 113641834B CN 202110738587 A CN202110738587 A CN 202110738587A CN 113641834 B CN113641834 B CN 113641834B
Authority
CN
China
Prior art keywords
file
media
directory
preset
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110738587.6A
Other languages
Chinese (zh)
Other versions
CN113641834A (en
Inventor
彭应康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Glory Smart Technology Development Co ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110738587.6A priority Critical patent/CN113641834B/en
Publication of CN113641834A publication Critical patent/CN113641834A/en
Application granted granted Critical
Publication of CN113641834B publication Critical patent/CN113641834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/41Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a file processing method and electronic equipment, relates to the technical field of terminals, and can filter illegal media files, so that only legal media files are provided for users. The electronic equipment identifies illegal media files in the electronic equipment, wherein the illegal media files comprise media files which are not allowed to be downloaded and stored by a user. The electronic equipment stores the information of the first directory of the illegal media files in a preset blacklist. The electronic equipment responds to a first event, a first media file in the electronic equipment is scanned, the first media file does not include a media file corresponding to a directory recorded by a preset blacklist, and the first event is used for triggering the electronic equipment to update a media storage database. And the electronic equipment updates the media files stored in the media storage database according to the scanning result.

Description

File processing method and electronic equipment
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a file processing method and an electronic device.
Background
With the spread of electronic devices such as mobile phones, it has become a general trend to use these electronic devices to meet daily needs. Meanwhile, various Applications (APPs) having specific applications have been developed to meet the user demands in a targeted manner. Such as social APPs, shopping APPs, and the like.
However, the inventors have discovered in practicing embodiments of the present application that some APPs do not store media files according to standard rules. Thereby affecting the user's view or use of these files. For example, the APP downloads pictures to the local mobile phone without permission of the user, and after the user uses the applications, the pictures including the illegal criminal words may appear in the gallery of the mobile phone. This not only makes the user unable to view the pictures, but also causes great trouble to the user.
Disclosure of Invention
The application provides a file processing method and electronic equipment, which can filter illegal media files and only provide legal media files for users. Thereby providing intelligent file services for users.
In a first aspect, the present application provides a file processing method, which may be applied to an electronic device such as a mobile phone, and the electronic device may provide functions of viewing and using media files such as pictures, audios, videos, and/or documents. The electronic equipment identifies illegal media files in the electronic equipment, wherein the illegal media files comprise media files which are not allowed to be downloaded and stored by a user. The electronic equipment stores the information of the first directory of the illegal media files in a preset blacklist. The electronic equipment responds to a first event, a first media file in the electronic equipment is scanned, the first media file does not include a media file corresponding to a directory recorded by a preset blacklist, and the first event is used for triggering the electronic equipment to update a media storage database. And the electronic equipment updates the media files stored in the media storage database according to the scanning result.
In summary, with the method of the embodiment of the present application, the electronic device may add the information of the directory of the illegal media file to the preset blacklist, and during scanning, scan the first media file except the media file corresponding to the directory recorded in the preset blacklist instead of scanning the media file corresponding to the directory recorded in the preset blacklist. It should be understood that, if the directory of the illegal media file is recorded in the preset blacklist, the first media file except the media file corresponding to the directory recorded in the preset blacklist is a legal media file. Thereby avoiding scanning for illegal media files. The electronic device may then update the media files stored in the media storage database based on the scan results. Therefore, the scanned legal media files can be updated to the media storage database, so that the legal media files are guaranteed to be stored in the media storage database. And, the media storage database is used to provide file service, for example, a query service for providing a picture file for a gallery application to show pictures to a user, so that only legal media files can be shown to the user for viewing and using. Finally, the effect of filtering illegal media files and providing the legal media files to the user only can be achieved, so that intelligent file service is provided for the user.
In a possible design manner of the first aspect, before the electronic device scans the first media file in the electronic device in response to the first event, the electronic device further stores information of the illegal media file in a preset blacklist. And the information of the first directory and the information of the illegal media files are stored in a preset blacklist in a relevant manner according to a preset format.
By adopting the method of the embodiment, the electronic equipment stores the information of the illegal media files and the information of the directory where the illegal media files are located in the preset blacklist in a related manner. Therefore, the directory for recording the illegal media files can be inquired in the preset blacklist, and the illegal media files in the directory can be inquired. Therefore, during scanning, illegal media files under various directories can be accurately determined, and the illegal media files can be accurately filtered.
In addition, in this embodiment, the illegal media file is still stored in the original directory, so that only the legal media file can be updated to the media storage database without changing the user data.
In a possible design manner of the first aspect, the preset format is: information of the first directory/information of the illegal media file. For example, the information of the first directory is a directory name "picture/111", the information of the illegal media file is a file name "655.Jpg", and the content of the preset format is "picture/111/655. Jpg".
By adopting the method of the embodiment, the electronic equipment can store the information of the illegal media files and the information of the directory where the illegal media files are located in the preset blacklist in a closely associated manner, so that the subsequent accurate query is facilitated.
In a possible design manner of the first aspect, the scanning a first media file in an electronic device includes: aiming at the second directory, the electronic equipment inquires whether the preset blacklist comprises the information of the second directory and the information of the media file associated with the information of the second directory; the second directory may be any directory for storing media files, for example, any first directory. If so, the second directory includes illegal media files, and the media files except the illegal media files indicated by the information of the associated media files under the second directory are scanned. If not, the illegal media files are not included in the second directory, and all the media files in the second directory are scanned.
By adopting the method of the embodiment, the electronic equipment can inquire the preset blacklist, determine whether the illegal media files exist in each directory, and then scan the media files except the illegal media files aiming at the second directory in which the illegal media files exist; and scanning all the media files in the second directory aiming at the second directory without illegal media files.
In a possible design manner of the first aspect, the storing, by the electronic device, information of the first directory of the illegal media file in a preset blacklist includes: the electronic equipment moves the illegal media files from the third directory where the illegal media files are located to the first directory. The first directory is a preset directory, and information of the first directory is stored in a preset blacklist.
By adopting the method of the embodiment, the electronic equipment removes the illegal media files from the third directory where the illegal media files are located, and moves the illegal media files to the first directory, namely the illegal media files in the third directory are deleted. In this way, it is ensured that illegal media files are not scanned while the third directory is scanned. And the information of the first directory is stored in a preset blacklist, so that the first directory for intensively storing illegal media files can be filtered by inquiring the preset blacklist during scanning. Thereby enabling only legitimate media files to be scanned.
In a possible design manner of the first aspect, the scanning a first media file in an electronic device includes: the electronic device queries a preset blacklist and scans all media files in the fourth directory. The fourth directory is a directory other than the directories recorded in the preset blacklist, and the fourth directory may be a directory of any storage media file, for example, any third directory.
By adopting the method of the embodiment, only the directories except the first directory recorded in the preset blacklist can be scanned, namely only the directories storing legal media files are scanned. Thereby realizing the filtering of illegal media files.
In a possible design manner of the first aspect, the updating, by the electronic device, the media file stored in the media storage database according to the scanning result includes: the electronic device adds data of the media files that were scanned and that are not included in the media storage database to the media storage database. In this way, the data of the missing legitimate media files in the media storage database can be updated to the media storage database. And/or the electronic device deletes data of the media files that are not scanned and included in the media storage database from the media storage database. In this way, the data of the illegal media files already stored in the media storage database can be deleted.
By adopting the method of the embodiment, the data of the legal media file can be newly added in the media storage database, and the data of the illegal media file can be deleted. Therefore, only the data of the legal media files are stored in the media storage database, the updated media storage database can only provide the related services of the legal media files, and intelligent file services are provided for users.
In a possible design manner of the first aspect, the identifying, by the electronic device, an illegal media file in the electronic device includes: if the file content of the second media file comprises the preset content, the electronic equipment identifies that the second media file is an illegal media file. Wherein the second media file is any one of the media files included in the electronic device. For example, if the picture file includes words such as "violation" and "illegal", the picture file can be identified as an illegal picture. Thus, illegal media files can be identified according to the file contents. And/or if the record for generating the second media file does not comprise the second event, the electronic equipment identifies that the second media file is an illegal media file; wherein the second event is used to instruct the downloading and saving of the media file if allowed by the user. For example, if the user does not click the save button, the downloaded and saved picture file may be identified as an illegal media file. Therefore, the media file downloaded and saved without permission of the user can be accurately identified as an illegal media file according to the record for generating the second media file.
By adopting the method of the embodiment, the illegal media files can be accurately identified so as to be convenient for subsequent filtering.
In a possible design manner of the first aspect, the first event includes a power-on event of the electronic device; events arriving at preset periodic intervals; alternatively, an event is received that scans for broadcasts.
By adopting the method of the embodiment, the electronic scanning of legal media files can be actively or passively triggered, so that the media storage database is updated.
In a possible design of the first aspect, the media file includes a picture file, an audio file, a video file, and/or a document file.
By adopting the method of the embodiment, only the legal media files can be updated aiming at various media files.
In a second aspect, the present application provides a file processing method, which may be applied to an electronic device such as a mobile phone, and the electronic device may provide viewing and using functions of media files such as pictures, audios, videos, and/or documents. The electronic equipment identifies illegal media files in the electronic equipment, wherein the illegal media files comprise media files which are not allowed to be downloaded and stored by a user. The electronic equipment moves the illegal media files from the first directory where the illegal media files are located to a preset directory; the preset directory is provided with a preset mark, and the preset mark is used for indicating that the preset directory is not scanned when the electronic equipment updates the media storage database. The electronic equipment responds to a first event, a first media file in the electronic equipment is scanned, a directory where the first media file is located is not provided with a preset mark, and the first event is used for triggering the electronic equipment to update a media storage database. And the electronic equipment updates the media files stored in the media storage database according to the scanning result.
In summary, by using the method of the embodiment of the present application, the illegal media file can be deleted from the first directory where the illegal media file is located, and the illegal media file is moved to the preset directory, that is, the illegal media file in the first directory is deleted. And the preset directory is provided with a preset mark to indicate that the preset directory is not scanned when the electronic equipment updates the media storage database. Therefore, the preset directory for storing the illegal media files can be ensured not to be scanned during scanning, and only directories except the preset directory are scanned, so that the illegal media files can be filtered. The electronic device may then update the media files stored in the media storage database based on the scan results. Therefore, the scanned legal media files can be updated to the media storage database, so that the legal media files are guaranteed to be stored in the media storage database. And the media storage database is used for providing file service, for example, a query service for providing picture files for a gallery application so that the gallery application can show pictures to a user, so that only legal media files can be shown to the user for viewing and using. Finally, the effect of filtering illegal media files and providing legal media files to the user only can be achieved, and therefore intelligent file service is provided for the user.
In a possible design of the second aspect, the preset flag is a file in a preset format included in a preset directory. For example, the preset format is. Thereby avoiding scanning of the preset directory.
In a possible embodiment of the second aspect, the preset directory may be a subdirectory of the first directory.
In a possible design manner of the second aspect, the updating, by the electronic device, the media file stored in the media storage database according to the scanning result includes: the electronic device adds data of the media files that were scanned and that are not included in the media storage database to the media storage database. In this way, the data of the missing legitimate media files in the media storage database can be updated to the media storage database. And/or the electronic device deletes data of the media files that are not scanned and included in the media storage database from the media storage database. In this way, the data of the illegal media files already stored in the media storage database can be deleted.
By adopting the method of the embodiment, the data of the legal media file can be newly added in the media storage database, and the data of the illegal media file can be deleted. Therefore, only the data of the legal media files are stored in the media storage database, the updated media storage database can only provide the related services of the legal media files, and intelligent file services are provided for users.
In a possible design manner of the second aspect, the identifying, by the electronic device, an illegal media file in the electronic device includes: if the file content of the second media file comprises the preset content, the electronic equipment identifies that the second media file is an illegal media file. Wherein the second media file is any one of the media files included in the electronic device. Wherein the second media file is any one of the media files included in the electronic device. For example, if the picture file includes words such as "violation" and "illegal", the picture file can be identified as an illegal picture. Thus, illegal media files can be identified according to the file contents. And/or if the record for generating the second media file does not comprise the second event, the electronic equipment identifies that the second media file is an illegal media file; wherein the second event is used to instruct the downloading and saving of the media file if allowed by the user. For example, if the user does not click the save button, the downloaded and saved picture file may be identified as an illegal media file. Therefore, the media file downloaded and saved without permission of the user can be accurately identified as an illegal media file according to the record for generating the second media file.
By adopting the method of the embodiment, the illegal media files can be accurately identified so as to be convenient for subsequent filtering.
In a possible design manner of the second aspect, the first event includes a power-on event of the electronic device; events arriving at preset periodic intervals; alternatively, an event is received that scans for broadcasts.
By adopting the method of the embodiment, the electronic scanning of legal media files can be actively or passively triggered, so that the media storage database is updated.
In one possible embodiment of the second aspect, the media files include picture files, audio files, video files and/or document files.
By adopting the method of the embodiment, only the legal media files can be updated aiming at various media files.
In a third aspect, an embodiment of the present application further provides an electronic device, where the electronic device may provide viewing and using functions for media files in the types of pictures, audios, videos, and/or documents. The electronic device includes a display screen, a memory, and one or more processors. The display screen, the memory and the processor are coupled. The memory is for storing computer program code comprising computer instructions that, when executed by the processor, cause the electronic device to perform the steps of: the electronic device identifies illegal media files in the electronic device, including media files that are not allowed to be downloaded and saved by the user. The electronic equipment stores the information of the first directory of the illegal media files in a preset blacklist. The electronic equipment responds to a first event, a first media file in the electronic equipment is scanned, the first media file does not include a media file corresponding to a directory recorded by a preset blacklist, and the first event is used for triggering the electronic equipment to update a media storage database. And the electronic equipment updates the media files stored in the media storage database according to the scanning result.
In a possible design of the third aspect, the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: the electronic equipment stores the information of the illegal media files in a preset blacklist; and the information of the first directory and the information of the illegal media files are stored in a preset blacklist in a relevant manner according to a preset format.
In a possible design manner of the third aspect, the preset format is: information of the first directory/information of the illegal media file.
In a possible design of the third aspect, the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: aiming at the second directory, the electronic equipment inquires whether the preset blacklist comprises the information of the second directory and the information of the media file associated with the information of the second directory; wherein the second directory is any one of the first directories; if so, scanning the media files except the illegal media files indicated by the information of the associated media files under the second directory; if not, all media files in the second directory are scanned.
In one possible design of the third aspect, the computer instructions, when executed by the processor, cause the electronic device to further perform the following steps: the electronic equipment moves the illegal media files from the third directory where the illegal media files are located to the first directory; the first directory is a preset directory, and information of the first directory is stored in a preset blacklist.
In one possible design of the third aspect, the computer instructions, when executed by the processor, cause the electronic device to further perform the following steps: the electronic equipment inquires a preset blacklist and scans all media files in a fourth directory; the fourth directory is a directory other than directories recorded in the preset blacklist, and the fourth directory is any one of the third directories.
In a possible design of the third aspect, the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: the electronic equipment adds the data of the scanned media files which are not included in the media storage database into the media storage database; and/or the electronic device deletes data of the media files that are not scanned and included in the media storage database from the media storage database.
In a possible design of the third aspect, the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: if the file content of the second media file comprises preset content, the electronic equipment identifies that the second media file is an illegal media file; and/or if the record for generating the second media file does not comprise the second event, the electronic equipment identifies that the second media file is an illegal media file; the second event is used for indicating that the media file is downloaded and saved under the condition that the user allows; wherein the second media file is any one of the media files included in the electronic device.
In a possible design manner of the third aspect, the first event includes a power-on event of the electronic device; events arriving at preset periodic intervals; alternatively, an event is received that scans for broadcasts.
In one possible embodiment of the third aspect, the media file includes a picture file, an audio file, a video file, and/or a document file.
In a fourth aspect, an embodiment of the present application further provides an electronic device, where the electronic device may provide viewing and using functions for media files of types such as pictures, audios, videos, and/or documents. The electronic device includes a display screen, a memory, and one or more processors. The display screen, the memory and the processor are coupled. The memory is for storing computer program code comprising computer instructions that, when executed by the processor, cause the electronic device to perform the steps of: the electronic device identifies illegal media files in the electronic device, including media files that are not allowed to be downloaded and saved by the user. The electronic equipment moves the illegal media files from the first directory where the illegal media files are located to a preset directory; the preset directory is provided with a preset mark, and the preset mark is used for indicating that the preset directory is not scanned when the electronic equipment updates the media storage database. The electronic equipment responds to a first event, a first media file in the electronic equipment is scanned, a directory where the first media file is located is not provided with a preset mark, and the first event is used for triggering the electronic equipment to update a media storage database. And the electronic equipment updates the media files stored in the media storage database according to the scanning result.
In a possible design of the fourth aspect, the preset flag is a file in a preset format included in the preset directory.
In one possible embodiment of the fourth aspect, the preset directory is a subdirectory of the first directory.
In a possible design of the fourth aspect, the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: the electronic equipment adds the data of the scanned media files which are not included in the media storage database into the media storage database; and/or the electronic device deletes data of the media files that are not scanned and included in the media storage database from the media storage database.
In a possible design of the fourth aspect, the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: if the file content of the second media file comprises preset content, the electronic equipment identifies that the second media file is an illegal media file; and/or if the record for generating the second media file does not comprise the second event, the electronic equipment identifies that the second media file is an illegal media file; the second event is used for indicating that the media file is downloaded and saved under the condition that the user allows; wherein the second media file is any one of the media files included in the electronic device.
In a possible design manner of the fourth aspect, the first event includes a power-on event of the electronic device; events arriving at preset periodic intervals; alternatively, an event is received that scans for broadcasts.
In one possible embodiment of the fourth aspect, the media file includes a picture file, an audio file, a video file, and/or a document file.
In a fifth aspect, an embodiment of the present application provides a chip system, where the chip system is applied to an electronic device including a display screen and a memory; the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a line; the interface circuit is to receive a signal from a memory of the electronic device and to send the signal to the processor, the signal comprising computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device performs the method according to the first aspect and any of its possible designs, or the second aspect and any of its possible designs.
In a sixth aspect, the present application provides a computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method according to the first aspect and any of its possible designs, or the second aspect and any of its possible designs.
In a seventh aspect, the present application provides a computer program product, which, when run on a computer, causes the computer to perform the method according to the first aspect and any of its possible designs, or the second aspect and any of its possible designs.
It should be understood that, for the electronic device according to the third aspect and the fourth aspect, the chip system according to the fifth aspect, the computer storage medium according to the sixth aspect, and the computer program product according to the seventh aspect, reference may be made to the first aspect and any one of the possible design manners thereof, and beneficial effects of the second aspect and any one of the possible design manners thereof, which are not described herein again.
Drawings
Fig. 1 is a schematic interface diagram of a gallery application provided in an embodiment of the present application;
FIG. 2 is a schematic interface diagram of a file management application according to an embodiment of the present application;
FIG. 3 is a schematic interface diagram of another gallery application provided in an embodiment of the present application;
fig. 4 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
FIG. 5 is a flowchart of a method for processing a document according to an embodiment of the present application;
FIG. 6 is a schematic interface diagram of a file management application according to an embodiment of the present application;
fig. 7 is a schematic time chart illustrating a black list updating according to an embodiment of the present application;
FIG. 8 is a flow chart of another method of document processing provided by an embodiment of the present application;
FIG. 9 is a flow chart of another method of document processing provided by an embodiment of the present application;
FIG. 10 is a schematic interface diagram of another file management application provided in an embodiment of the present application;
FIG. 11 is a schematic interface diagram of another file management application provided in an embodiment of the present application;
FIG. 12 is a flow chart of another method of document processing provided by an embodiment of the present application;
FIG. 13 is a flow chart of another method of document processing provided by an embodiment of the present application;
FIG. 14 is a schematic interface diagram of another file management application provided in an embodiment of the present application;
FIG. 15 is a flowchart of another method for document processing according to an embodiment of the present application;
fig. 16 is a schematic diagram of a process of displaying a picture file by a gallery application according to an embodiment of the present application;
fig. 17 is a schematic structural diagram of a chip system according to an embodiment of the present application.
Detailed Description
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying 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 embodiment, the meaning of "a plurality" is two or more unless otherwise specified.
Embodiments of the present embodiment will be described in detail below with reference to the accompanying drawings. For the convenience of understanding of the embodiments of the present application, the electronic device is a mobile phone as an example, and the principle of viewing and using media files in the mobile phone is generally described.
A large number of APPs in a handset will generate media files and will be stored in the corresponding directories. The media file may include at least one of a picture file, an audio/video file, and a document file. For example, camera APPs, chat APPs (e.g., pictures sent by friends), browser APPs, etc. may generate picture files (e.g., png,. Jpg files, etc.); music APP, recorder APP, chat APP, etc. will generate audio files (e.g., MP3, mov files, etc.); chat APPs, office APPs (e.g., office, WPS), etc. generate document files (e.g.,. Doc,. PDF files, etc.).
The scanning service in the mobile phone system scans the media files in each directory of the mobile phone and then stores the media files in the media storage database of the mobile phone. For example, if the mobile phone system is an Android (Android) system, the scanning service may be a MediaScanner service. The MediaScanner service can scan media files in various directories in the mobile phone and store the information of the directories, file names, file sizes and the like of the media files in a media storage database.
And part of APP in the mobile phone can call the media file in the media storage database and show the media file to the user.
For example, a gallery APP is used to present picture files and/or video files. The mobile phone can display the gallery interface 101 shown in fig. 1 in response to an operation of a user triggering to enter the gallery APP. A plurality of pictures are displayed in the gallery interface 101.
For another example, the file management APP is used to display document files, picture files, audio and video files, and the like. The mobile phone may display a file management interface 201 shown in fig. 2 in response to an operation of the user triggering entry into the file management APP. The file management interface 201 displays a picture file, a video file, and the like. The mobile phone can also receive the selection operation of the user on the options of "document", "video", "picture", "music", etc. in the file management interface 201, and the mobile phone can display the corresponding type of media files in response to the selection operation.
It should be noted that the APP which can call the media file in the media storage database does not save the media file itself, but queries the media storage database and presents the corresponding media file. For example, the gallery APP queries the picture file and/or the video file and then displays the picture file and/or the video file.
After the media files are presented to the user, the user may then view the media files and may manipulate the corresponding media files. For example, pictures in a gallery may be viewed and edited. Thereby enabling viewing and use of the media files.
However, in the conventional technology, after the user uses some APPs that do not store pictures according to the standard rule, the cell phone may display the gallery interface 301 shown in fig. 3 in response to the user triggering the operation of entering the gallery APP. The gallery interface 301 includes multiple legal pictures and an illegal picture 302. The illegal picture 302 is a picture showing the word "under the review of suspected violation system". For the illegal picture, the picture cannot be checked, and bad influence can be caused. For example, the user may not know the cause of the illegal picture, or the user may have a bad evaluation of the mobile phone or APP in the mobile phone.
It should be understood that fig. 3 described above is an illustration for a picture file. For other types of media files, for example, document files or audio-visual files, etc. If the APP does not store the files according to the standard rules, the user cannot normally use the files. For example, a file cannot be opened or a messy code is left after opening. Or, some adverse effects may be caused.
Based on this, the embodiment of the present application provides a file processing method, which is applied to electronic devices such as a mobile phone, and the electronic devices can provide viewing and using functions of media files of types such as pictures, audios and videos, and/or documents. The electronic equipment can update the media storage database according to the identified illegal media files, so that the updated database does not include the illegal media files. The electronic device then uses the updated media storage database to provide file services to the user. For example, the media file is provided to a gallery application for presentation. Therefore, illegal media files can be shielded, legal media files can be provided for users, and service performance is improved. It should be noted that an illegal media file may also be referred to as an illegal media file.
For example, the electronic device in the embodiment of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) \ Virtual Reality (VR) device, and other devices that can provide viewing and using functions of media files of the type of pictures, audios, and/or documents, and the embodiment of the present application does not particularly limit the specific form of the device.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Please refer to fig. 4, which is a schematic structural diagram of an electronic device 400 according to an embodiment of the present disclosure. As shown in fig. 4, the electronic device 400 may include a processor 410, an external memory interface 420, an internal memory 421, a Universal Serial Bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 4, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, a headset interface 470D, a sensor module 480, keys 490, a motor 491, an indicator 492, a camera 493, a display screen 494, a Subscriber Identification Module (SIM) card interface 495, and the like.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device 400. In other embodiments, electronic device 400 may include more or fewer components than illustrated, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 410 may include one or more processing units, such as: the processor 410 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be a neural center and a command center of the electronic device 400. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 410 for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 410. If the processor 410 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 410, thereby increasing the efficiency of the system.
The charging management module 440 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 440 may receive charging input from a wired charger via the USB interface 430. In some wireless charging embodiments, the charging management module 440 may receive a wireless charging input through a wireless charging coil of the electronic device 400. While the charging management module 440 charges the battery 442, the power management module 441 may also supply power to the electronic device.
The power management module 441 is used to connect the battery 442, the charging management module 440 and the processor 410. The power management module 441 receives input from the battery 442 and/or the charging management module 440 and provides power to the processor 410, the internal memory 421, the external memory, the display 494, the camera 493, the wireless communication module 460, and the like. The power management module 441 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 441 may be disposed in the processor 410. In other embodiments, the power management module 441 and the charging management module 440 may be disposed in the same device.
The wireless communication function of the electronic device 400 may be implemented by the antenna 1, the antenna 2, the mobile communication module 450, the wireless communication module 460, the modem processor, the baseband processor, and the like.
The electronic device 400 implements display functions via the GPU, the display screen 494, and the application processor, among other things. The GPU is an image processing microprocessor connected to a display screen 494 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 410 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 494 is used to display images, videos, and the like. The display screen 494 is the folding screen described above (e.g., a flexible folding screen or a multi-screen folding screen). The display screen 494 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like.
The electronic device 400 may implement a shooting function through the ISP, the camera 493, the video codec, the GPU, the display screen 494, the APP processor, and the like.
The external memory interface 420 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 400. The external memory card communicates with the processor 410 through the external memory interface 420 to implement data storage functions. For example, media files such as music, video, etc. are saved in the external memory card.
The internal memory 421 may be used to store computer-executable program code, including instructions. The processor 410 executes instructions stored in the internal memory 421 to perform various functions APP and data processing of the electronic device 400. The internal memory 421 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (e.g., audio data, phone book, etc.) created during use of the electronic device 400, and the like. In addition, the internal memory 421 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
Electronic device 400 may implement audio functions via audio module 470, speaker 470A, microphone 470B, earphone interface 470C, and application processor, among others. Such as music playing, recording, etc.
The keys 490 include a power-on key, a volume key, etc. The keys 490 may be mechanical keys. Or may be touch keys. The electronic apparatus 400 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 400.
The motor 491 may generate a vibration indication. The motor 491 may be used for both incoming call vibration prompting and touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 491 may also respond to different vibration feedback effects in response to touch operations applied to different areas of the display screen 494. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 492 may be an indicator light, and may be used to indicate a charging status, a change in charge level, or a message, a missed call, a notification, etc.
The SIM card interface 495 is used to connect a SIM card. The SIM card can be attached to and detached from the electronic apparatus 400 by being inserted into the SIM card interface 495 or being pulled out from the SIM card interface 495. The electronic device 400 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 495 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. Multiple cards can be inserted into the same SIM card interface 495 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 495 may also be compatible with different types of SIM cards. The SIM card interface 495 may also be compatible with an external memory card. The electronic device 400 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 400 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 400 and cannot be separated from the electronic device 400.
The methods in the following embodiments may be implemented in the electronic device 400 having the above-described hardware structure. The method of the embodiment of the present application will be described below by taking the electronic device 400 as a mobile phone as an example.
In the scheme of the application, the mobile phone firstly identifies illegal media files in the mobile phone. Specifically, the process of identifying an illegal media file includes the following two steps:
step 1, the mobile phone collects a directory of media files stored in the mobile phone.
In a mobile phone, media files generated by different APPs may be stored in the same or different directories. The mobile phone collects the directories stored with the media files so as to analyze illegal media files in a targeted manner in the following process.
For example, the directories storing picture files in the mobile phone include "picture/screenshot", "picture/111", and "picture/222", and then need to be analyzed with respect to the above directories.
And 2, analyzing the media files in the catalog by the mobile phone to identify illegal media files.
The mobile phone can identify illegal media files in the mobile phone periodically or irregularly. For example, a mobile phone may begin to identify illegal media files after it is turned off (e.g., charged). As another example, a cell phone may begin to identify illegal media files at a fixed time each morning. Therefore, illegal media files can be identified when the power consumption of the mobile phone is low.
In some embodiments, the handset may analyze the file content of the media files to identify illegitimate media files. Specifically, for the second media file, if the file content of the second media file includes the preset content, the mobile phone identifies that the second media file is an illegal media file. The second media file is any one of the media files included in the mobile phone. For example, for a picture file, whether a first preset character is included in the picture is identified, for example, the first preset character is a "suspected violation" character. And if the preset characters are included, identifying the picture as an illegal picture. For another example, for a document file, it may be identified whether the content of the document is scrambled, and if so, it is identified as an illegal document. Therefore, illegal media files can be identified only according to the file contents of the media files without excessively referring to other data of the media files.
In other embodiments, the handset may analyze the record that generated the media file for the second media file to identify an illegal media file. And if the record for generating the second media file does not comprise the second event, identifying the second media file as an illegal media file. Wherein the second event is used for indicating that the user allows the storage of the media file. For example, for a picture file, the second event may be an event that a user clicks the download control, and if the record for generating the picture file does not include an event identifier of the event that the user clicks the download control, the picture is identified as an illegal picture. For example, during the process of browsing the application interface (or the web page) by the user, the automatically downloaded picture file may be regarded as an illegal picture. Thus, the media file generated without permission of the user can be accurately identified as an illegal media file.
In order to simplify the complex operation of identifying illegal media files, a preset Artificial Intelligence (AI) analysis model may be used to complete the identification. The preset AI analysis model has the function of identifying illegal media files. And the preset AI analysis model can be obtained by training the media file and the illegal labeling result or the legal labeling result corresponding to the media file. The media file is used as training input data, and an illegal labeling result or a legal labeling result is used as training output data. After training is completed, any media file is input into a preset AI analysis model, and the preset AI analysis model can output a legal or illegal recognition result.
After the illegal media file is identified and obtained through the steps 1 and 2, the mobile phone can filter the illegal media file when updating the media storage database, and only the legal media file is updated into the media database. Thus, illegal media files can be shielded.
In the embodiment of the application, three processing modes are provided for processing illegal media files, and the media database is updated according to the processing result so as to filter the illegal media files. These three processing modes will be specifically described below.
In a mode 1, an embodiment of the present application provides a method for processing a file, which is applied to a mobile phone. The mobile phone can provide viewing and using functions of media files of types such as pictures, audios, videos and/or documents. In this embodiment, the mobile phone stores the illegal media files and the directories where the illegal media files are located in the blacklist, and filters the illegal media files according to the blacklist during updating. In this embodiment, the directory in which the illegal media file is located may also be referred to as a first directory.
Specifically, as shown in FIG. 5, the method includes S501-S503.
S501, the mobile phone adds the information of the illegal media files and the information of the directory where the illegal media files are located to a preset blacklist in an associated mode, and meanwhile the illegal media files are reserved in the directory.
Illustratively, the media file is a picture file. The directory for storing the picture file includes a directory 604 in the mobile phone storage interface 601 shown in (a) in fig. 6, i.e., a directory "picture/screenshot"; a directory 605, i.e., a directory "picture/111", in the handset storage interface 602 shown in fig. 6 (b); and a directory 606 in the handset storage interface 603 shown in fig. 6 (c), i.e., a directory "picture/222". Among them, the identified illegal pictures include a picture 607 under the catalog "picture/111", i.e., 655.Jpg, and a picture 608, i.e., 666.Jpg. And picture 609 under the directory "picture/222", i.e., 699.Jpg. After the illegal picture is identified, the illegal picture and the directory thereof can be added in a preset blacklist in an associated manner, so that the preset blacklist comprising the following contents can be obtained: picture/111/655. Jpg, picture/111/666. Jpg, picture/222/699. Jpg.
It should be noted that in the above example, only picture files are shown under each directory, but in practice, multiple types of media files may be included under one directory. For example, a directory includes both picture files and video files.
The illegal information of the media file refers to information that can uniquely identify the media file. Illustratively, the information of the illegal media file may be a name of the illegal media file, such as the name 666.Jpg, or may be a file content of the illegal media file, or may be a hash (hash) value of the name or the content, or the like. The embodiment of the present application is not particularly limited to this.
Similarly, the information of the directory refers to information that can uniquely identify the directory. For example, the information of the directory may be a name of the directory, such as name picture/111, or a hash (hash) value of the name. The embodiment of the present application is not particularly limited to this.
The mobile phone can store the information of the illegal media files and the information of the directories in which the illegal media files are located in the preset blacklist in a correlated manner according to the preset format, so that the illegal media files in each directory can be searched in the subsequent scanning process. In the embodiment of the present application, the form of the information related to the illegal media file and the information of the directory where the illegal media file is located is not specifically limited.
In some embodiments, the illegal media file and the directory where the illegal media file is located are associated in a format of "information of the directory where the illegal media file is located/information of the illegal media file". For example, if the name "655.Jpg" of the illegal picture is used as the subdirectory of the name "picture/111" of the directory in which the illegal picture is located, the following related information "picture/111/655. Jpg" can be obtained.
In other embodiments, the illegal media file and the directory thereof are associated by storing the illegal media file and the directory thereof as a piece of data. For example, "{ }" is used to divide two pieces of data, illegal picture "655.Jpg" and the directory "picture/111" where it is located may be stored as one piece of data { picture/111, 655.Jpg } in the following format.
In the following embodiments, the scheme of the present application will be mainly described in the format of "information of a directory where an illegal media file is located/information of an illegal media file".
In this embodiment, the content of the file in the directory where the illegal media file is located is not changed by the mobile phone. For example, after the picture file 699.Jpg shown in (c) of fig. 6 and the directory "picture/222" where the picture file is located are added to the preset blacklist, the picture file 699.Jpg still remains under the directory "picture/222".
S502, the mobile phone responds to a first event of updating the media storage database, filters out illegal media files in all directories for storing the media files according to a preset blacklist, and only scans the rest media files.
Which may be a system service in the handset to scan for media files. For example, mediaScanner service in Android system.
The first event is used for triggering the mobile phone to update the media storage database. The first event may be an update event that is automatically triggered by the handset. For example, the first event is an event that the mobile phone is turned on, restarted or turned off in a flight mode, or the first event is an event that arrives at a preset periodic interval. Alternatively, the first event may be an event of sending a scan broadcast to a system service of the handset after the blacklist update is completed. That is, after the update of the blacklist is completed, the update of the media storage database is triggered, so that the illegal media files can be cleaned in time.
For the second directory, before the mobile phone scans the second directory, the mobile phone firstly queries whether a preset blacklist includes information of the second directory and information of a media file associated with the information of the second directory. And if the information of the second directory and the information of the media files related to the information of the second directory are not included, the fact that illegal media files do not exist in the second directory is indicated. In this case, the handset may scan all media files under the second directory. The second directory is any directory for storing media files in the mobile phone, and may be any of the first directories, for example.
Illustratively, the content included in the preset blacklist is: picture/111/655. Jpg, picture/111/666. Jpg, picture/222/699. Jpg. The directory to be currently scanned is a directory "picture/screen shot" shown in (a) in fig. 6. The preset blacklist does not include any picture file under the directory "picture/screenshot", that is, does not include the picture files 611.Jpg, 622.Jpg and 633.Jpg. At the time of scanning, all media files under the directory "pictures/screenshots" may be scanned.
Otherwise, if the information of the second directory and the information of the media file associated with the information of the second directory are included, it is indicated that an illegal media file exists in the directory. In this case, the mobile phone may filter out the illegal media files indicated by the information of the associated media file, and only scan the media files other than the illegal media files indicated by the information of the associated media file. Thereby realizing that only legal media files in the directory are scanned.
Illustratively, the content included in the preset blacklist is: picture/111/655. Jpg, picture/111/666. Jpg, picture/222/699. Jpg. The directory to be currently scanned is a directory "picture/111" shown in (b) of fig. 6. The preset blacklists "picture/111/655. Jpg" and "picture/111/666. Jpg" are subdirectories of the directory "picture/111". And, the illegal media file corresponding to the sub-directory "picture/111/655. Jpg" is picture 655.Jpg, and the illegal media file corresponding to the sub-directory "picture/111/666. Jpg" is picture 666.Jpg. Accordingly, when scanning the directory "picture/111", picture 655.Jpg and picture 666.Jpg are filtered out, and only the remaining legal pictures 644.Jpg and 677.Jpg are scanned.
That is to say, in this embodiment, the mobile phone scans a first media file in the mobile phone in response to the first event, where the first media file does not include a media file corresponding to a directory recorded by the preset blacklist. For example, for a directory that is not listed in the preset blacklist, the first media file is all media files under the directory. For the directory recorded in the preset blacklist, the first media file is a media file under the directory except an illegal media file indicated by the information of the media file associated with the directory.
S503, the mobile phone updates the media storage database according to the scanning result.
Wherein updating the media storage database comprises deleting missing or valid media files in the newly added media storage database and/or deleting invalid media files in the media storage database. The process of updating the media storage database will be described below for these two aspects, respectively.
In a first aspect, legitimate media files are newly added to a media storage database.
Illustratively, the previous update of the media storage database is at 9:00, this time the media storage database is updated at 12, 00, if 1 legal media file is generated between 9. The handset needs to add the newly generated legitimate media file to the media storage database.
That is to say, the media files scanned by the mobile phone are all legal media files, and if at least one of the legal media files is not included in the media storage database, it indicates that the legal media files in the media storage database are missing. For example, a newly generated legitimate media file is missing.
Based on the method, the mobile phone can match the scanned legal media files with the existing media files in the media storage database, and newly add the media files which are scanned by the mobile phone and are not included in the media storage database into the media storage database. Therefore, the newly generated legal media files can be timely updated to the media storage database, and the loss of the legal media files is avoided.
Exemplary, scanned legal pictures are as follows:
{
picture/screenshot, 611.jpg,1.03mb;
pictures/screenshots, 622.jpg,1.5mb;
pictures/screenshots, 633.jpg,219.92kb;
picture/111, 644.Jpg,1.03mb;
picture/111, 677.Jpg,1.03mb;
picture/222, 688.Jpg,1.03MB
};
The data for the picture file in the media storage database is as follows:
{
pictures/screenshots, 622.jpg,1.5mb;
pictures/screenshots, 633.jpg,219.92kb;
pictures/111, 655.Jpg,1.5mb;
picture/111, 677.Jpg,1.03mb;
picture/222, 688.Jpg,1.03MB
}。
Matching the scanned legitimate media file with a picture file in the media storage database can determine that the media storage database lacks data for pictures 611.Jpg and 644. Jpg. Therefore, the mobile phone needs to add the relevant data of the pictures 611.Jpg and 644.Jpg to the media storage database. The data of the picture file in the newly added media storage database is as follows:
{
picture/screenshot, 611.jpg,1.03mb;
pictures/screenshots, 622.jpg,1.5mb;
pictures/screenshots, 633.jpg,219.92kb;
picture/111, 644.Jpg,1.03mb;
pictures/111, 655.Jpg,1.5mb;
picture/111, 677.Jpg,1.03mb;
picture/222, 688.Jpg,1.03mb;
}。
in a second aspect, an illegitimate media file in a media storage database is deleted.
Illustratively, as shown in fig. 7, the previous update of the preset blacklist is performed at 9:00, if 1 illegal picture is generated between 9. After a first event is triggered by a restart of the handset at 10. If the next time the preset blacklist is updated is at 12, it is obvious that the illegal picture generated between 9. So that illegal pictures may exist in the media storage database. And when the preset blacklist is updated at 12. That is, the illegal picture is not included in the scanning result, but the illegal picture is already present in the media storage database.
That is, all the media files scanned by the mobile phone according to the preset blacklist are regarded as all legal media files in the mobile phone, and if the media storage database also includes media files other than the legal media files scanned this time, it indicates that illegal media files exist in the media storage database. For example, there are illegal pictures generated between 9.
Based on this, the mobile phone can match the scanned legal media files with the existing media files in the media storage database, and delete the media files which are not scanned by the mobile phone and are included in the media storage database from the media storage database. Therefore, the illegal media files existing in the media storage database can be deleted in time, and the trouble of the illegal media files to users is avoided.
Still taking the scan results and the data stored in the media storage database as examples in the first aspect as before, matching the scanned legitimate media file with the picture media file in the media storage database may determine that there is an extra picture 655.Jpg data in the media storage database compared to the scanned legitimate media file. It can be determined that the data for this picture 655.Jpg is data for an illegal picture that the handset needs to delete from the media storage database. The data of the picture file in the newly added media storage database is as follows:
{
pictures/screenshots, 622.jpg,1.5mb;
pictures/screenshots, 633.jpg,219.92kb;
picture/111, 677.Jpg,1.03mb;
picture/222, 688.Jpg,1.03MB
}。
In some embodiments, the two above aspects may be combined, namely: newly adding newly generated legal media files to the media storage database in time, and deleting illegal media files existing in the media storage database in time.
Still taking the scanning result and the data stored in the media storage database as examples in the first aspect, after addition and deletion, the data of the picture file in the media storage database is as follows:
{
picture/screenshot, 611.jpg,1.03mb;
pictures/screenshots, 622.jpg,1.5mb;
pictures/screenshots, 633.jpg,219.92kb;
picture/111, 644.Jpg,1.03mb;
picture/111, 677.Jpg,1.03mb;
picture/222, 688.Jpg,1.03mb;
}。
in summary, by using the method of the embodiment of the present application, the illegal media file is added to the preset blacklist, and meanwhile, the data in the directory where the illegal media file is located is not changed. And then, when the media storage database is scanned and updated, illegal media files under each directory are filtered according to a preset blacklist, and only legal media files are scanned. And updating the media storage database according to the scanning result, realizing adding the newly generated legal media files into the media storage database, and deleting the illegal media files existing in the media storage database. Therefore, the media storage database can be updated on the premise of not changing the media files under each directory, namely, not changing the user data.
For the convenience of understanding the foregoing mode 1, the whole process of the mode 1 will be described below with reference to fig. 8 by taking a picture media file as an example.
And step A, after picture catalogue information of a user is collected and an illegal picture is identified by using an AI analysis model, updating a preset blacklist according to the illegal picture and a catalogue in which the illegal picture is located. For example, if the information of the illegal picture and the directory where the illegal picture is located is not included in the preset blacklist, the illegal picture and the directory where the illegal picture is located are added to the preset blacklist in an associated manner. Otherwise, no addition is made.
And step B, sending a scanning broadcast after the preset blacklist is updated, or triggering the scanning of the picture file in the mobile phone after the mobile phone is started.
And C, judging whether a preset blacklist exists or not. And D, if the preset blacklist does not exist, indicating that an illegal picture does not exist, and executing the step D. And E, if the preset blacklist exists, indicating that the illegal picture exists, and executing the step E.
And D, scanning all pictures under each directory, thereby scanning all legal pictures.
And E, filtering out the pictures in each directory, wherein the pictures are included in the preset blacklist, and scanning the rest pictures. Specifically, for any directory, if the preset blacklist includes the directory and an illegal picture under the directory, the illegal picture under the directory recorded in the preset blacklist is filtered, and other pictures under the directory are scanned. For any directory, if the preset blacklist does not include the directory and the illegal picture under the directory, the directory does not have the illegal picture, and all picture files under the directory can be scanned. Thereby scanning all legal pictures.
And F, updating the database, adding the missing legal pictures in the media storage database into the media storage database, and deleting the illegal pictures in the media storage database. Thereby obtaining a media storage database which does not include illegal pictures and simultaneously includes the latest legal pictures.
Mode 2, an embodiment of the present application provides a method for processing a file, which is applied to a mobile phone. The mobile phone can provide viewing and using functions of media files of types such as pictures, audios, videos and/or documents. In this embodiment, the mobile phone moves the illegal media file from the directory where the illegal media file is located to the preset directory, stores the preset directory in the blacklist, and filters out the illegal media file according to the blacklist during updating. In this embodiment, the directory in which the illegal media file is located may also be referred to as a third directory, and the preset directory may also be referred to as a first directory. Specifically, as shown in fig. 9, the method includes S901-S903.
S901, the mobile phone moves the illegal media files from the directories to the preset directories, and deletes the illegal media files from the directories. And the information of the preset directory is stored in a preset blacklist.
Still taking fig. 6 (a), fig. 6 (b), and fig. 6 (c) as examples, the identified illegal pictures include pictures 655.Jpg and 666.Jpg under the catalog "picture/111". And includes picture 699.Jpg under the catalog "picture/222". The mobile phone can remove 655.Jpg and 666.Jpg from the directory "picture/111" to obtain the mobile phone storage interface 1002 shown in (b) in fig. 10, and the mobile phone storage interface 1002 no longer includes illegal pictures under the directory "picture/111", but only includes legal pictures. E.g. only picture 644.Jpg and picture 677.Jpg.
Likewise, the cell phone can remove the picture 699.Jpg from the directory "picture/222", resulting in the cell phone storage interface 1003 shown in (c) in fig. 10, where the cell phone storage interface 1003 no longer includes illegal pictures under the directory "picture/222", but only legal pictures. E.g. only picture 688.Jpg.
However, the directory "picture/screenshot" originally including no illegal picture is not changed, and like the picture files in the directory "picture/screenshot" included in the mobile phone storage interface 1001 shown in (a) in fig. 10, the picture files in the directory "picture/screenshot" included in the mobile phone storage interface 601 shown in (a) in fig. 6 all include pictures 611.Jpg, 622.Jpg, and 633.Jpg.
Also, the handset can move the removed illegal pictures, such as pictures 655.Jpg, 666.Jpg and 699.Jpg, to the directory 1102, i.e. directory "picture/333", in the handset storage interface 1101 shown in fig. 11. That is, the preset directory is a directory "picture/333".
The preset directory may be a newly created directory or may be a historically created directory. For example, if the present application is currently used for the first time, a new default directory needs to be created. If the scheme is used before, the preset directory created by the history can be directly used. Alternatively, the preset directory may be a directory that is originally in the mobile phone and is not used for storing the media file. For example, the preset directory may be an empty directory that does not store any content.
After an illegal media file is removed from the directory in which it is located, the illegal media file is no longer included in the directory. Meanwhile, the illegal media file is moved to a preset directory, and the illegal media file can be reserved. So that the user data is not deleted.
The information of the preset directory is stored in the preset blacklist, and the directory including the illegal media file can be searched from the preset blacklist subsequently. Similarly, the information of the preset directory also refers to information that uniquely identifies the preset directory.
S902, the mobile phone filters out the preset directories according to the preset blacklist in response to a first event for updating the media storage database, and scans the media files in the remaining directories.
In this embodiment, the remaining directory may also be referred to as a fourth directory. That is, the fourth directory is a directory other than directories recorded in the preset blacklist. The fourth directory is any directory for storing media files in the mobile phone, and for example, may be any directory in the third directory.
For the first event, reference may be made to the related description in the foregoing S502, and details are not described here.
The mobile phone can inquire a preset directory for storing illegal media files from a preset blacklist, and only scan the media files under the directories except the preset directory without scanning the media files under the preset directory during scanning. So that illegal media files are not scanned.
For example, the mobile phone queries the directory "picture/333" from the preset blacklist, that is, the directory "picture/333" is an illegal directory, and only directories other than the directory "picture/333" are scanned during scanning. For example, the catalog "picture/screen shot" shown in (a) in fig. 10, the catalog "picture/111" shown in (b) in fig. 10, and the catalog "picture/222" shown in (c) in fig. 10 are scanned. Illegal media files in the 3 directories are removed, so that legal media files are scanned.
That is to say, in this embodiment, the mobile phone scans a first media file in the mobile phone in response to the first event, where the first media file does not include a media file corresponding to a directory recorded by the preset blacklist. I.e. not scanning media files under the preset directory.
And S903, updating the media storage database by the mobile phone according to the scanning result.
Similarly, updating the media storage database may include adding legitimate media files missing from the media storage database to the media storage database and/or deleting illegitimate media files from the media storage database. That is, the first aspect and the second aspect similar to S503 are also included, and for specific implementation of the first aspect and the second aspect, reference may be made to the relevant description in S503, and details will not be described here.
In summary, by using the method of the embodiment of the present application, the illegal media file is removed from the directory where the illegal media file is located, so that the corresponding directory does not include the illegal media file any more. And the illegal media files are moved to the preset directory, so that the illegal media files are all concentrated to the preset directory, and meanwhile, the illegal media files can be still kept in the mobile phone.
Then, when the media storage database is scanned and updated, the media files under the directories except the preset directory are scanned, and the illegal media files can be filtered. And updating the media storage database according to the scanning result, realizing adding the newly generated legal media files into the media storage database, and deleting the illegal media files existing in the media storage database. Therefore, illegal media files in each directory do not need to be removed one by one during scanning. Therefore, the calculation amount during scanning updating can be simplified, and the updating efficiency is improved.
In order to facilitate understanding of the foregoing mode 2, the complete process of mode 2 is described below with reference to fig. 12 and by taking a picture file as an example.
Step a, after picture catalog information of a user is collected and an illegal picture is obtained through identification of an AI analysis model, the illegal picture is removed from a catalog where the illegal picture is located, and the illegal picture is moved to a centralized preset catalog.
And b, updating the preset blacklist according to the preset directory. For example, if the preset directory is not included in the preset blacklist, the preset directory is added to the preset blacklist. Otherwise, no addition is made.
And c, sending scanning broadcast after the preset blacklist is updated, or triggering the scanning of the picture file in the mobile phone after the mobile phone is started.
And d, judging whether a preset blacklist exists or not. And e, if the preset blacklist does not exist, indicating that an illegal picture does not exist, and executing the step e. And f, if the preset blacklist exists, indicating that an illegal picture exists, and executing the step f.
And e, scanning all pictures in the catalog so as to scan all legal pictures.
And f, filtering out the preset directories recorded in the preset blacklist, and scanning the pictures under the other directories. Specifically, during scanning, pictures in other directories, except the preset directory recorded in the preset blacklist, are scanned. Thereby scanning all legal pictures.
And g, updating the database, adding the missing legal pictures in the media storage database into the media storage database, and deleting the illegal pictures in the media storage database. Thereby obtaining a media storage database which does not include illegal pictures and simultaneously includes the latest legal pictures.
Mode 3, an embodiment of the present application provides a method for processing a file, which is applied to a mobile phone. The mobile phone can provide viewing and using functions of media files of types such as pictures, audios, videos and/or documents. In this embodiment, the mobile phone moves the illegal media file from the directory where the illegal media file is located to the preset directory, where the preset directory is provided with a preset flag, and the preset flag is used to instruct the mobile phone not to scan the preset directory when the media storage database is updated. In this embodiment, the directory in which the illegal media file is located may also be referred to as a first directory. In a specific implementation, the preset directory is a subdirectory of the first directory (i.e., the preset subdirectory hereinafter). Specifically, as shown in FIG. 13, the method includes S1301-S1303.
And S1301, the mobile phone moves the illegal media files from the directory where the illegal media files are located to the subdirectory under the directory, the preset subdirectory is provided with a preset mark, and the preset mark is used for indicating that the preset subdirectory is not scanned. And deleting the illegal media file from the directory where the illegal media file is located.
Still taking (b) in fig. 6 as an example, the identified illegal pictures include pictures 655.Jpg and 666.Jpg under the catalog "picture/111". The cell phone can remove pictures 655.Jpg and 666.Jpg from the directory "picture/111" and move to a preset subdirectory under the directory "picture/111". For example, the content included under the directory "picture/111" after removal may include, as shown in a mobile phone storage interface 1401 shown in (a) in fig. 14, pictures 644.Jpg and 677.Jpg under a directory 1402, that is, the directory "picture/111", and a folder corresponding to a preset sub-directory, that is, a folder 444. After moving the illegal picture to the preset sub-directory, the contents included in the preset sub-directory may include 655.Jpg and 666.Jpg illegal pictures under the preset sub-directory 1404, i.e., the directory "picture/111/444", as shown in the handset storage interface 1403 shown in (b) of fig. 14.
Wherein, if the scheme is used for the first time, the preset subdirectory can be a newly-built directory. Alternatively, if the scheme has been used before, the preset subdirectory may be a historically created directory, which may be used directly this time.
In this embodiment, the illegal media file is moved to a preset subdirectory under the directory where the illegal media file is located. The preset subdirectory has a preset mark so that the scanning of the preset subdirectory is skipped according to the preset mark in the subsequent scanning.
Wherein the preset mark may be a second preset character included in the directory. For example, the preset mark is the character "444" in the directory "picture/111/444" shown in (b) in fig. 14. That is, when the mobile phone detects that the directory includes the preset characters, it indicates that the directory is the preset sub-directory, and the media files therein are illegal media files.
Alternatively, the preset flag may be a file in a preset format in a preset subdirectory. For example, the preset flag may be a "nomedia" file under the directory "pictures/111/444" (which may also be referred to as a file that masks a media software scan). That is, when the mobile phone detects that the directory includes the preset file, it indicates that the directory is the preset sub-directory, and the media file therein is an illegal media file.
S1302, the mobile phone responds to the first event, filters out the preset sub-directories according to the non-scanning marks, and scans all the remaining directories.
For the first event, reference may be made to the related description in the foregoing S502, which is not described herein again.
For any directory, if the directory includes preset sub-directories, when scanning the media files in the directory, the scanning of the preset sub-directories is skipped, and only the media files except the preset sub-directories are scanned. So that illegal media files stored in the preset subdirectory can be filtered. If the directory does not include the preset subdirectory, all the media files in the directory can be scanned when the media files in the directory are scanned. Therefore, all legal media files can be scanned, and illegal media files can be filtered.
Illustratively, the preset flag is a file including ". Nomedia". When the mobile phone detects that the subdirectory 'picture/111/444' under the directory 'picture/111' includes a 'biomedia' file, the mobile phone indicates that the subdirectory 'picture/111/444' is a preset subdirectory. When scanning the directory "picture/111" shown in (a) in fig. 14, only pictures 644.Jpg and 677.Jpg thereof are scanned. Without scanning the media files in the subdirectory "pictures/111/444".
That is to say, the mobile phone responds to the first event, and scans the first media file in the mobile phone, and the directory where the first media file is located has no preset mark.
And S1303, the mobile phone updates the media storage database according to the scanning result.
Similarly, updating the media storage database may include adding legitimate media files missing from the media storage database to the media storage database and/or deleting illegitimate media files from the media storage database. That is, the first aspect and the second aspect similar to those in S504 are also included, and for specific implementation of the first aspect and the second aspect, reference may be made to relevant descriptions in S504, and details will not be described here.
In summary, by using the method of the embodiment of the present application, illegal media files under each directory can be collected into preset subdirectories under the directory. And the preset subdirectory is provided with a preset mark, so that the preset subdirectory can be conveniently identified as the subdirectory for storing illegal media files during scanning.
Then, when the media storage database is scanned and updated, the preset sub-directories are identified according to the preset marks, and only the media files under the directories except the preset sub-directories are scanned. So that illegal media files can be filtered out. And updating the media storage database according to the scanning result, realizing adding the newly generated legal media files into the media storage database, and deleting the illegal media files existing in the media storage database.
For the convenience of understanding the foregoing mode 3, the whole process of the mode 3 will be described below with reference to fig. 15 by taking a picture file as an example.
Step a), after picture directory information of a user is collected and an illegal picture is identified by an AI analysis model, the illegal picture is removed from the current directory to a preset subdirectory under the current directory, and a nomedia file is created under the preset subdirectory. The nomedia file is used to indicate that the preset subdirectory is not scanned.
And b), sending scanning broadcast after the mobile phone is removed to a preset subdirectory, or triggering the scanning of the picture files in the mobile phone after the mobile phone is started.
And c), only scanning the media files under the directory without the nomedia files during scanning, so that only legal pictures can be scanned.
Step d), updating the database, adding the missing legal pictures in the media storage database into the media storage database, and deleting the illegal pictures in the media storage database. Thereby obtaining a media storage database which does not include illegal pictures and simultaneously includes the latest legal pictures.
After the media files in the media storage database are updated in any one of the manners, the mobile phone responds to the user to trigger the operation of starting the APP (such as the gallery APP) for displaying the media files, and then the media files of corresponding types can be displayed to the user according to the media file data in the updated media storage database. Thus, illegal media files can be shielded, and only legal media files can be displayed to users. The following takes the presentation of the picture file as an example, and describes a process of presenting a corresponding type of media file to the user according to the updated media file data in the media storage database with reference to fig. 16.
As shown in fig. 16, after triggering the starting of the gallery APP, the gallery APP may send a picture data query request to the media storage database. And after receiving the picture data query request, the media storage database filters file data of the picture file, and then returns the file data of the picture file to the APP of the library. Since the data of the legal media files are stored in the media database, the corresponding file data which is returned to the gallery APP and is also the legal pictures is returned. And displaying the legal picture to the user according to the file data of the legal picture by the picture library APP. Therefore, illegal pictures can be shielded, and only legal pictures are displayed to users.
Other embodiments of the present application provide an electronic device, which may include: the display screen (e.g., a touch screen), memory, and one or more processors. The display screen, memory and processor are coupled. The memory is for storing computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device may perform various functions or steps performed by the mobile phone in the above-described method embodiments. The structure of the electronic device may refer to the structure of the electronic device 400 shown in fig. 4.
The embodiment of the present application further provides a chip system, as shown in fig. 17, the chip system 1700 includes at least one processor 1701 and at least one interface circuit 1702. The processor 1701 and the interface circuit 1702 may be interconnected by wires. For example, the interface circuit 1702 may be used to receive signals from other devices (e.g., a memory of an electronic device). As another example, the interface circuit 1702 may be used to send signals to other devices, such as the processor 1701. Illustratively, the interface circuit 1702 may read instructions stored in memory and send the instructions to the processor 1701. The instructions, when executed by the processor 1701, may cause the electronic device to perform the various steps in the embodiments described above. Of course, the chip system may further include other discrete devices, which is not specifically limited in this embodiment of the present application.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium includes computer instructions, and when the computer instructions are run on the electronic device, the electronic device is enabled to execute each function or step executed by the mobile phone in the foregoing method embodiment.
The embodiment of the present application further provides a computer program product, which when running on a computer, causes the computer to execute each function or step executed by the mobile phone in the above method embodiments.
Through the description of the above embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application, or portions of the technical solutions that substantially contribute to the prior art, or all or portions of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. A method of file processing, comprising:
the method comprises the steps that the electronic equipment automatically downloads a first file in the process that a user browses an application interface or a webpage, wherein the first file comprises a picture file;
in response to an operation of accessing a gallery APP, the electronic device displaying an application interface of the gallery APP including the first file;
in response to a restart event, the electronic device updating media files saved in a media storage database, the updating media files saved in the media storage database comprising: automatically deleting the first file from the media storage database;
after the electronic device updates the media storage database, in response to an operation to access the gallery APP after the restart event, the electronic device displaying the application interface of the gallery APP without including the first file, but the first file also exists in the electronic device;
and the gallery APP calls the picture file and/or the video file in the media storage database and displays the picture file and/or the video file in the application interface of the gallery APP.
2. The method of claim 1, wherein prior to the electronic device updating the media files stored in the media storage database in response to the power-on event, the method further comprises:
the electronic device identifying the first file in the electronic device;
the electronic equipment stores the information of the first directory of the first file in a preset blacklist;
the electronic device updating the media files stored in the media storage database in response to the power-on event includes:
the electronic equipment responds to the starting event, a first media file in the electronic equipment is scanned, and the first media file does not comprise a media file corresponding to a directory recorded by the preset blacklist;
and the electronic equipment updates the media files stored in the media storage database according to the scanning result.
3. The method of claim 2, wherein before the electronic device scans a first media file in the electronic device in response to the power-on event, the method further comprises:
the electronic equipment stores the information of the first file in the preset blacklist;
and storing the information of the first directory and the information of the first file in the preset blacklist in a related manner according to a preset format.
4. The method of claim 3, wherein the predetermined format is: information of the first directory/information of the first file.
5. The method of claim 3, wherein scanning the electronic device for the first media file comprises:
aiming at a second directory, the electronic equipment inquires whether the preset blacklist comprises the information of the second directory and the information of the media file associated with the information of the second directory; wherein the second directory is any one of the first directories;
if yes, scanning the media files except the first file indicated by the information of the associated media file under the second directory;
if not, all media files in the second directory are scanned.
6. The method of claim 2, wherein the electronic device saves the information of the first directory of the first file in a preset blacklist, and the method comprises:
the electronic equipment moves the first file from a third directory where the first file is located to the first directory; the first directory is a preset directory, and the information of the first directory is stored in the preset blacklist.
7. The method of claim 6, wherein scanning the electronic device for the first media file comprises:
the electronic equipment inquires the preset blacklist and scans all media files in a fourth directory; wherein the fourth directory is a directory other than directories recorded in the preset blacklist, and the fourth directory is any one of the third directories.
8. The method according to any one of claims 2-7, wherein the electronic device updates the media file stored in the media storage database according to the scanning result, including:
the electronic equipment adds the data of the scanned media files which are not included in the media storage database into the media storage database; and/or the electronic equipment deletes the data of the media files which are not scanned and are included in the media storage database from the media storage database.
9. The method of any of claims 2-7, wherein the electronic device identifies a first file in the electronic device, comprising:
if the file content of the second media file comprises preset content, the electronic equipment identifies that the second media file is the first file; and/or the presence of a gas in the gas,
if the record for generating the second media file does not comprise a second event, the electronic equipment identifies that the second media file is the first file; the second event is used for indicating that the media file is downloaded and saved under the condition that the user allows;
wherein the second media file is any one of the media files included in the electronic device.
10. The method according to any one of claims 1-7, further comprising:
in response to an event that a preset periodic interval arrives, the electronic equipment updates a media file stored in a media storage database; alternatively, the first and second electrodes may be,
in response to receiving the event to scan for broadcasts, the electronic device updates the media files saved in the media storage database.
11. The method of any of claims 1-7, wherein the media file comprises a picture file, an audio file, a video file, and/or a document file.
12. The method of claim 1, wherein prior to the electronic device updating the media files stored in the media storage database in response to the power-on event, the method further comprises:
an electronic device identifying the first file in the electronic device;
the electronic equipment moves the first file from a first directory where the first file is located to a preset directory; the preset directory is provided with a preset mark, and the preset mark is used for indicating that the preset directory is not scanned when the electronic equipment updates the media storage database;
the electronic device updating the media files stored in the media storage database in response to the power-on event includes:
the electronic equipment responds to the starting event, a first media file in the electronic equipment is scanned, and the directory where the first media file is located is not provided with the preset mark;
and the electronic equipment updates the media files stored in the media storage database according to the scanning result.
13. The method according to claim 12, wherein the preset mark is a file in a preset format included in the preset directory.
14. The method of claim 12, wherein the preset directory is a subdirectory of the first directory.
15. The method according to any of claims 12-14, wherein the electronic device updates the media files saved in the media storage database according to the scanning result, comprising:
the electronic equipment adds the data of the scanned media files which are not included in the media storage database into the media storage database; and/or the electronic equipment deletes the data of the media files which are not scanned and are included in the media storage database from the media storage database.
16. The method of any of claims 12-14, wherein the electronic device identifies a first file in the electronic device, comprising:
if the file content of the second media file comprises preset content, the electronic equipment identifies that the second media file is the first file; and/or the presence of a gas in the atmosphere,
if the record for generating the second media file does not comprise a second event, the electronic equipment identifies that the second media file is the first file; the second event is used for downloading and saving the media file under the condition that the user allows;
wherein the second media file is any one of the media files included in the electronic device.
17. The method according to any one of claims 12-14, further comprising:
in response to an event that a preset periodic interval arrives, the electronic equipment updates a media file stored in a media storage database; alternatively, the first and second electrodes may be,
in response to receiving the event to scan for broadcasts, the electronic device updates the media files saved in the media storage database.
18. The method of any of claims 12-14, wherein the media file comprises a picture file, an audio file, a video file, and/or a document file.
19. An electronic device having media files stored therein, the electronic device comprising a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; the memory for storing computer program code comprising computer instructions that, when executed by the processor, cause the electronic device to perform the method of any of claims 1-18.
20. A computer-readable storage medium having instructions stored therein, which when run on an electronic device, cause the electronic device to perform the method of any of claims 1-18.
CN202110738587.6A 2021-06-30 2021-06-30 File processing method and electronic equipment Active CN113641834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110738587.6A CN113641834B (en) 2021-06-30 2021-06-30 File processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110738587.6A CN113641834B (en) 2021-06-30 2021-06-30 File processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113641834A CN113641834A (en) 2021-11-12
CN113641834B true CN113641834B (en) 2022-10-21

Family

ID=78416446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110738587.6A Active CN113641834B (en) 2021-06-30 2021-06-30 File processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113641834B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1145316C (en) * 2001-01-23 2004-04-07 联想(北京)有限公司 Method for filtering electronic mail contents in interconnection network
US8510215B2 (en) * 2005-04-21 2013-08-13 Victrio, Inc. Method and system for enrolling a voiceprint in a fraudster database
CN102799630B (en) * 2012-06-26 2016-06-22 深圳Tcl新技术有限公司 Automatically the method for multimedia form, device and multimedia equipment are identified
CN103106369B (en) * 2013-01-22 2017-08-11 西安Tcl软件开发有限公司 File sharing method and device based on media server
CN106991130A (en) * 2017-03-07 2017-07-28 广东欧珀移动通信有限公司 A kind of document handling method, device and intelligent terminal
CN112995731B (en) * 2021-05-08 2021-08-13 荣耀终端有限公司 Method and system for switching multimedia equipment

Also Published As

Publication number Publication date
CN113641834A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
CN108235765B (en) Method and device for displaying story photo album
US20200348806A1 (en) Electronic device for playing-playing contents and method thereof
US10599336B2 (en) Method of displaying content and electronic device adapted to the same
CN112783379B (en) Picture selection method and electronic equipment
CN113766064B (en) Schedule processing method and electronic equipment
CN108062390B (en) Method and device for recommending user and readable storage medium
WO2018072149A1 (en) Picture processing method, device, electronic device and graphic user interface
CN110637290A (en) File management method and device
US9742900B2 (en) Method, terminal device and storage medium for displaying information
CN109976668A (en) Data-erasure method, data deletion apparatus and computer readable storage medium
WO2021185352A1 (en) Version upgrade method and related apparatus
CN111435377A (en) Application recommendation method and device, electronic equipment and storage medium
CN110865981A (en) File access method for mobile terminal and mobile terminal thereof
CN113641834B (en) File processing method and electronic equipment
CN114691276B (en) Application processing method, intelligent terminal and storage medium
WO2015005599A1 (en) Method and apparatus for operating message function in connection with note function
CN106469178B (en) Information processing method, terminal and electronic equipment
CN105320514A (en) Picture processing method and device
CN108874586B (en) Data recovery method and related product
CN115185571A (en) Application data management method and device, electronic equipment and storage medium
CN108984671B (en) Video creation method and related product
CN114500737B (en) Picture collection method and device and computer storage medium
JP5472992B2 (en) Terminal device and program
CN113641533B (en) Terminal and short message processing method
WO2024140720A1 (en) Intercept method, system, and related apparatus

Legal Events

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

Effective date of registration: 20230914

Address after: 201306 building C, No. 888, Huanhu West 2nd Road, Lingang New District, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: Shanghai Glory Smart Technology Development Co.,Ltd.

Address before: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee before: Honor Device Co.,Ltd.