WO2021159746A1 - 文件共享方法、系统及相关设备 - Google Patents

文件共享方法、系统及相关设备 Download PDF

Info

Publication number
WO2021159746A1
WO2021159746A1 PCT/CN2020/124761 CN2020124761W WO2021159746A1 WO 2021159746 A1 WO2021159746 A1 WO 2021159746A1 CN 2020124761 W CN2020124761 W CN 2020124761W WO 2021159746 A1 WO2021159746 A1 WO 2021159746A1
Authority
WO
WIPO (PCT)
Prior art keywords
cloud
terminal device
original file
file
identifier
Prior art date
Application number
PCT/CN2020/124761
Other languages
English (en)
French (fr)
Inventor
杜冬冬
李雪峰
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP20918744.2A priority Critical patent/EP4086780A4/en
Priority to US17/799,199 priority patent/US20230070358A1/en
Publication of WO2021159746A1 publication Critical patent/WO2021159746A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/183Provision of network file services by network file servers, e.g. by using NFS, CIFS

Definitions

  • This application relates to the field of Internet technology, in particular to file sharing methods, systems and related equipment.
  • the existing sharing method generally uses the cloud disk client to send the address link of the original picture in the cloud disk server to the third-party server, and the other terminal device needs to send it according to the third-party server.
  • Address link to download the file to be shared to the cloud disk server. Since the address link cannot be displayed directly, and a third-party application is required to adapt the address link, it affects the user experience.
  • the embodiments of the present application provide a file sharing method, system, and related equipment, which can directly obtain the original file to be shared, and does not require a third-party application to adapt the address link.
  • an embodiment of the present application provides a file sharing method, which is applied to a terminal device, and includes:
  • the terminal device by associating the cloud identification with the original file stored on the cloud disk server one by one, when the terminal device detects the sharing operation instruction of the original file, it obtains the corresponding cloud identification and sends the cloud identification to the cloud disk server.
  • the target sharing terminal To obtain the original file corresponding to the cloud ID sent by the cloud disk server, and then send the original file to the target sharing terminal to realize the sharing of the file stored in the cloud disk server. Since the target sharing terminal receives the original file, it does not need to pass The address link is redirected, which eliminates the need for a third-party application on the target sharing terminal to adapt the address link, which has better versatility and improves user experience.
  • the obtaining the cloud identifier corresponding to the original file includes:
  • the media metadata table includes a cloud identification field, and if the cloud identification field in the storage record corresponding to the original file is not empty, the cloud identification is obtained.
  • the media picture management interface on the terminal device is used to manage files stored on the terminal device and the cloud disk server.
  • the file read and write operations of the disk server.
  • the searching from the media metadata table of the media library of the terminal device whether there is a cloud identifier corresponding to the original file includes: obtaining media elements from the media library of the terminal device through a preset media picture management interface. Look up in the data table whether there is a cloud identifier corresponding to the original file.
  • the obtaining the original file corresponding to the cloud identification from the cloud disk server includes: obtaining the original file corresponding to the cloud identification from the cloud disk server through a preset media picture management interface.
  • the original file does not exist on the terminal device, look up whether there is a cloud corresponding to the file from the media metadata table of the media library of the terminal device Logo.
  • the method before the obtaining the cloud identifier corresponding to the original file, the method further includes:
  • the cloud disk server can send the corresponding original file to the terminal device according to the cloud identifier sent by the terminal device.
  • the method after uploading the original file to the cloud disk server through the cloud disk client, the method further includes:
  • Delete the original file on the terminal device and obtain the compressed file corresponding to the deleted original file from the cloud disk server to save storage space on the terminal device.
  • the user can preview the original file through the compressed file on the terminal device. Files to improve user experience.
  • an embodiment of the present application provides a file sharing method applied to a cloud disk server, including:
  • the original file corresponding to the cloud identification is obtained; wherein the cloud identification is triggered by the terminal device after detecting the sharing operation instruction of the original file, one The cloud identifier corresponds to at least one original file stored on the cloud disk server;
  • the original file corresponding to the cloud identifier is sent to the terminal device to trigger the terminal device to send the original file corresponding to the cloud identifier to the target sharing terminal.
  • the method before the obtaining the original file corresponding to the cloud identifier, the method further includes:
  • a cloud identifier corresponding to the original file is generated, and the cloud identifier corresponding to the original file is sent to the terminal device.
  • the method further includes:
  • the sending the original file corresponding to the cloud identifier to the terminal device includes: obtaining the corresponding original file according to the address link corresponding to the cloud identifier, and sending the original file to the terminal device.
  • the method further includes:
  • an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • a terminal device including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the computer program, The file sharing method as described in the above first aspect is realized.
  • an embodiment of the present application provides a cloud disk server, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the computer program When realizing the file sharing method as described in the second aspect above.
  • an embodiment of the present application provides a file sharing system, including the terminal device described in the third aspect and the cloud disk server described in the fourth aspect.
  • a file sharing apparatus provided by an embodiment of the present application includes a terminal device and a cloud disk server, where the terminal device includes:
  • the first obtaining module is configured to obtain a cloud identifier corresponding to the original file if a sharing operation instruction of the original file is detected, where one cloud identifier corresponds to an original file stored on the cloud disk server;
  • the second obtaining module is configured to obtain the original file corresponding to the cloud identifier from the cloud disk server;
  • the first sending module is configured to send the acquired original file corresponding to the cloud identifier to the target sharing terminal.
  • the first obtaining module includes a searching unit and an obtaining unit
  • the searching unit is configured to search for a cloud identifier corresponding to the original file in the media metadata table of the media library of the terminal device;
  • the acquiring unit is configured to acquire the cloud identifier corresponding to the original file if there is a cloud identifier corresponding to the original file in the media metadata table.
  • the search unit is specifically configured to search through a preset media picture management interface from the media metadata table of the media library of the terminal device to find whether there is a file that is compatible with the original file. Corresponding cloud ID.
  • the second acquisition module is specifically configured to:
  • the searching unit is further configured to, if the original file does not exist on the terminal device, search for the existence of the original file from the media metadata table of the media library of the terminal device.
  • the cloud identifier corresponding to the file is further configured to, if the original file does not exist on the terminal device, search for the existence of the original file from the media metadata table of the media library of the terminal device.
  • the terminal device further includes a file upload module, and the file upload module is configured to:
  • the terminal device further includes a file deletion module, and the file deletion module is specifically configured to:
  • Cloud disk servers include:
  • the third acquiring module is used to acquire the cloud identifier sent by the terminal device, where the cloud identifier is the identifier corresponding to the original file sent when the terminal device detects the sharing operation instruction of the original file, and one cloud identifier corresponds to the original file.
  • the second sending module is configured to send the original file corresponding to the cloud identifier to the terminal device, and the terminal device is configured to send the acquired original file corresponding to the cloud identifier to the target sharing terminal.
  • the cloud disk server further includes a receiving module, and the receiving module is configured to:
  • a cloud identifier corresponding to the original file is generated, and the cloud identifier corresponding to the original file is sent to the terminal device.
  • the cloud disk server further includes a storage module, and the storage module is configured to:
  • the second sending module is specifically configured to:
  • the storage module is further configured to:
  • a compressed file corresponding to the original file is generated, and the terminal device is used to download the compressed file corresponding to the deleted original file from the cloud disk server when the original file on the terminal device is deleted.
  • an embodiment of the present application provides a computer-readable storage medium that stores a computer program, and is characterized in that, when the computer program is executed by a processor, the implementation is as described in the above-mentioned first aspect.
  • the embodiments of the present application provide a computer program product that, when the computer program product runs on a terminal device, causes the terminal device to execute the file sharing method described in the first aspect or the file sharing method described in the second aspect. File sharing method.
  • FIG. 1 is a schematic diagram of a file sharing system provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a terminal device to which the file sharing method provided by an embodiment of the present application is applicable;
  • FIG. 3 is a schematic diagram of a software architecture to which the file sharing method provided by an embodiment of the present application is applicable;
  • FIG. 4 is a schematic diagram of a file upload process in a file sharing method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an application scenario of a file sharing method provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a file sharing method provided by an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a file sharing method provided by an embodiment of the present application.
  • FIGS. 8-9 are schematic diagrams of another application scenario of the file sharing method provided by an embodiment of the present application.
  • FIGS. 10-12 are schematic diagrams of another application scenario of the file sharing method provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of another application scenario of the file sharing method provided by an embodiment of the present application.
  • FIG. 14 is another schematic flowchart of a file sharing method provided by an embodiment of the present application.
  • FIG. 15 is a schematic diagram of a specific process of a file sharing method provided by an embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of a cloud disk server provided by an embodiment of the present application.
  • the term “if” can be construed as “when” or “once” or “in response to determination” or “in response to detecting “.
  • the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “in response to determination” or “once detected [described condition or event]” depending on the context ]” or “in response to detection of [condition or event described]”.
  • the file sharing method is applied to a file sharing system.
  • the file sharing system includes a terminal device 100, a cloud disk server 200, a third-party server 300, and a target sharing terminal 400.
  • the terminal device 100 is in communication connection with the cloud disk server 200, the terminal device 100 uploads the original file to the cloud disk server 200, the cloud disk server 200 generates a cloud identifier corresponding to the original file, and sends the cloud identifier to the terminal device 100.
  • the terminal device retains the cloud identifier corresponding to the original file when the original file is deleted.
  • the corresponding original file is downloaded from the cloud disk server 200 according to the cloud identifier corresponding to the original file retained on the terminal device 100, and the original file The file is sent to the target sharing terminal 400 through the third-party server 300, thereby achieving file sharing.
  • the original file may be a picture, video, or document.
  • the terminal device 100 and the target sharing terminal 400 involved in the embodiments of the present application may both be mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, and laptop computers. , Ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (personal digital assistants, PDAs), etc.
  • UMPC Ultra-mobile personal computers
  • PDA personal digital assistants
  • the embodiments of this application do not impose any restrictions on the specific types of terminal devices and target sharing terminals.
  • FIG. 2 is a schematic structural diagram of a terminal device 100 according to an embodiment of the present application.
  • the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100.
  • the terminal device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the terminal device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the terminal device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the terminal device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transfer data between the terminal device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect to other terminal devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the terminal device 100.
  • the terminal device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the terminal device 100. While the charging management module 140 charges the battery 142, it can also supply power to the terminal device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the terminal device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the terminal device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the terminal device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the terminal device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the terminal device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the terminal device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the terminal device 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the terminal device 100 can be implemented, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the terminal device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the terminal device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the terminal device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the terminal device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the terminal device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the terminal device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the terminal device 100 may be provided with at least one microphone 170C.
  • the terminal device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals.
  • the terminal device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194. Pressure sensor 180A
  • the capacitive pressure sensor may include at least two parallel plates with conductive material.
  • the terminal device 100 determines the intensity of the pressure according to the change in capacitance.
  • the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the terminal device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions.
  • the gyro sensor 180B may be used to determine the movement posture of the terminal device 100.
  • the angular velocity of the terminal device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the terminal device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the terminal device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the terminal device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the terminal device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the terminal device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal device, and it can be used in applications such as horizontal and vertical screen switching, pedometer and so on.
  • the terminal device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the terminal device 100 emits infrared light to the outside through the light emitting diode.
  • the terminal device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100. When insufficient reflected light is detected, the terminal device 100 can determine that there is no object near the terminal device 100.
  • the terminal device 100 can use the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the terminal device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the terminal device 100 when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to avoid abnormal shutdown of the terminal device 100 due to low temperature.
  • the terminal device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the terminal device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the terminal device 100 may receive key input, and generate key signal input related to user settings and function control of the terminal device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the terminal device 100.
  • the terminal device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the terminal device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the terminal device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
  • the software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes a layered Android system as an example to illustrate the software structure of the terminal device 100 by way of example.
  • FIG. 3 is a block diagram of the software structure of the terminal device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc., as well as third-party applications such as WeChat, QQ, DingTalk, Taobao and so on.
  • applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • third-party applications such as WeChat, QQ, DingTalk, Taobao and so on.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the terminal device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • prompt text messages in the status bar sound a prompt tone, terminal equipment vibration, flashing indicator lights, etc.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the local identifier is an identifier used to identify the storage record of the picture on the terminal device, and may be the name or number of the picture, for example, 001, 002, 003, etc.
  • a local identifier corresponds to a storage record of a file, and the storage record also includes the storage path of the picture.
  • the cloud disk client obtains the corresponding image according to the storage record corresponding to the local ID and the storage path in the storage record. Upload the picture to the cloud disk server. For example, as shown in Figure 5, in response to the user's touch operation on "Picture a", the terminal device selects "Picture a", that is, selects the local identifier corresponding to "Picture a”. With the touch operation of "sharing”, the cloud disk client obtains the storage path corresponding to "picture a" according to the storage record corresponding to the local identifier, and uploads the image corresponding to the storage path to the cloud disk server. Please continue to refer to Figure 4. After the image is uploaded successfully, the cloud disk server stores the uploaded image. The uploaded image is used as the original image stored by the cloud disk server.
  • the cloud disk server generates a cloud identifier corresponding to the uploaded image, and based on the image
  • the storage path generates an address link, and associates the cloud identifier with the address link.
  • the cloud identifier is an identifier used to identify the storage record of the picture on the cloud disk server, and is different from the local identifier.
  • the cloud identifier may be y01, y02, y03, and so on.
  • one cloud logo can correspond to multiple pictures stored on the terminal device.
  • the cloud disk server detects that the terminal device uploads multiple pictures at the same time, it generates cloud logos corresponding to the multiple pictures, and Generate multiple address links according to the storage paths of the multiple pictures, and associate the cloud identifier with the multiple address links.
  • the cloud disk server After the cloud disk server generates the cloud logo, it sends the cloud logo to the cloud disk client.
  • the terminal device stores the cloud logo in the gallery and reminds the user that the image upload is successful.
  • the cloud logo is associated with the corresponding original picture on the terminal device .
  • the terminal device after the terminal device detects that the picture is uploaded successfully, it deletes the original picture on the terminal device, adds the cloud logo to the media library, retains the local logo associated with the original picture, and combines the cloud logo with Local identity association.
  • the terminal device when the terminal device detects that the user issues an operation instruction to delete a picture, it deletes the original picture stored in the gallery, adds the cloud logo to the media library, and retains the information associated with the original picture Local ID, which associates the cloud ID with the local ID.
  • the cloud disk server after obtaining the original picture uploaded by the terminal device, the cloud disk server generates a compressed file corresponding to the original picture, that is, a thumbnail.
  • the cloud disk server downloads the thumbnail corresponding to the deleted original picture, where the storage space of the thumbnail is smaller than the storage space of the corresponding original picture.
  • the terminal device saves the thumbnail in the hidden directory, and associates the storage path of the thumbnail in the hidden directory with the local identifier. Therefore, whether it is a thumbnail or an original picture, it is associated with the only storage record in the media library, and each storage record includes a local ID, a storage path, and a cloud ID corresponding to the image.
  • a media metadata table is maintained in the media library.
  • the fields in the media metadata table include a local ID, a storage path, and a cloud ID.
  • Each row of the storage record in the media metadata table is associated with a picture.
  • the storage path is the storage path of the compressed file, and the cloud identifier corresponds to the original file on the cloud disk server one-to-one.
  • the storage path is the storage path of the original picture on the terminal device, and the cloud identifier is empty.
  • the storage path is the storage path of the original picture on the terminal device, and the cloud identifier corresponds to the original file on the cloud disk server one-to-one.
  • the terminal device displays the pictures stored on the terminal device and the pictures stored on the cloud disk server and that have been deleted on the terminal device respectively in different paths.
  • users can access pictures stored on the terminal device by opening the "local pictures” folder in the media library, and access pictures stored on the cloud disk server and deleted on the terminal device by opening the "cloud pictures” folder in the media library , So as to facilitate users to view.
  • the pictures stored on the terminal device and the pictures stored on the cloud disk server and deleted on the terminal device may also be displayed under the same path.
  • the file sharing method provided by the embodiment of the present application is shown in FIG. 6, a third-party application and a media library are installed on the terminal device, and the third-party application is also installed on the target terminal.
  • the media library includes a media metadata table and a media picture management interface.
  • the media metadata table is used to store storage records corresponding to the original file.
  • the media picture management interface is used to manage the storage on the terminal device and the storage on the cloud disk server. For files, the terminal device implements read and write operations on the files stored in the cloud disk server through the media picture management interface.
  • the third-party application queries the storage record in the media metadata table through the media picture management interface according to the user's sharing operation instruction, and selects the record corresponding to the sharing operation instruction from the storage record.
  • the media picture management interface reads the record selected by the user, and downloads the original picture corresponding to the record selected by the user from the cloud disk server. After the download is successful, the original picture is saved to the terminal device and sent to the third-party application, and the third-party application then saves the original The picture is sent to the target sharing terminal through a third-party server, and the third-party application of the target sharing terminal receives the original picture and displays it.
  • FIG. 7 shows a schematic flowchart of a file sharing method provided in an embodiment of the present application. The method is executed by the terminal device 100, and the method includes:
  • the terminal device After detecting the sharing operation instruction of the original file, the terminal device obtains the cloud identifier corresponding to the original file, where one cloud identifier corresponds to at least one original file stored on the cloud disk server.
  • the terminal device detects the user's operation instruction for sharing the original file, it obtains the cloud identifier from the storage record corresponding to the original file.
  • the original file can be a picture, video or document, and the original file is stored in a terminal device or a cloud server.
  • the terminal device obtains the cloud identifier from the media library.
  • the storage record corresponding to the original file is stored in the media metadata table of the media library, and the field corresponding to each storage record includes a local ID, a storage path, and a cloud ID.
  • the terminal device detects the user's operation instruction for sharing the original file, it determines the local identifier corresponding to the file to be shared according to the operation instruction for sharing the original file, and then searches the media metadata table with the local identifier through the media image management interface. Identify the storage record corresponding to the identifier, and determine whether the original file corresponding to the local identifier exists on the terminal device according to the storage record.
  • the corresponding original file is stored on the terminal device. If the storage path corresponding to the local identifier is the path of the compressed file, the corresponding original file is not stored on the terminal device. Original file. If the corresponding original file does not exist on the terminal device, then look up from the media metadata table whether there is a cloud identifier corresponding to the original file. For example, it is confirmed whether the record corresponding to the cloud identification field in the storage record corresponding to the original file is empty. If it is not empty, it means that there is a cloud identification corresponding to the original file in the media metadata table, and the cloud identification is obtained.
  • the terminal device obtains the sharing operation instruction of the original file through a third-party application installed on the terminal device, and obtains the cloud identifier corresponding to the original file according to the sharing operation instruction of the original file.
  • the third-party applications can be WeChat, QQ, Dingding, Taobao, etc.
  • the third-party application is WeChat.
  • the terminal device detects that the user opens the media library and touches "Picture a”, select "Picture a", that is, select "Picture a”
  • the corresponding local identifier when the terminal device further detects the operation of touching "WeChat", it jumps to the interface of the WeChat contact.
  • FIG. 9 when the terminal device detects that the user touches the contact in the contact interface, it responds to the user's operation instruction to share "picture a”. First check whether the original picture corresponding to the local ID exists on the terminal device through the preset media picture management interface.
  • the cloud identifier corresponding to the local identifier that is, the cloud identifier of "picture a”. If there is a cloud identity corresponding to the local identity in the media metadata table, the cloud identity is acquired.
  • the terminal device detects that the user has touched the picture sending option and opens the media library.
  • the user can open the local picture folder in the media library to select pictures stored on the terminal device, or open the cloud picture folder to select pictures that have been deleted on the terminal device and stored on the cloud disk server.
  • the terminal device detects that the user touches "Cloud Picture”, it opens the cloud picture folder.
  • the terminal device further detects the operation of touching "Picture a”, select “Picture a", that is, select "Picture a". "Corresponding local identification.
  • the terminal device When the terminal device further detects the operation of touching "send”, it responds to the user's operation instruction to share "picture a", through the media picture management interface, finds whether there is a cloud corresponding to the local identifier in the media metadata table in the media library Logo, that is, the cloud logo of "Picture a”. If there is a cloud identity corresponding to the local identity in the media metadata table, the cloud identity is acquired.
  • the user can preview it on the terminal device.
  • the user opens the cloud picture folder and selects "picture a".
  • the device detects the operation of touching "Preview”
  • it opens the thumbnail of "Picture a” according to the path of the thumbnail of "Picture a” to realize the preview.
  • the terminal device obtains the original file corresponding to the cloud identifier from the cloud disk server.
  • the terminal device calls the cloud disk client through the media picture management interface.
  • the cloud disk client generates a download request according to the cloud identifier, sends the download request to the cloud disk server, downloads the original file from the cloud disk server, and uses the preset media
  • the picture management interface stores the original file on the terminal device.
  • the terminal device sends the acquired original file corresponding to the cloud identifier to the target sharing terminal.
  • the third-party application obtains the original file, sends the original file to the third-party server, and the third-party server sends the original file to the target sharing terminal.
  • the target sharing terminal can obtain the original file by installing a third-party application, such as WeChat, on the target sharing terminal, thereby realizing file sharing.
  • the terminal device after the terminal device receives the indication that the file is sent successfully sent by the third-party server, it deletes the original file downloaded from the cloud disk server to reduce the space occupied by the file.
  • the terminal device finds that the original file is stored on the terminal device through the media picture management interface, for example, the media metadata table in the media library is searched through the media picture management interface.
  • the storage path in the data table is the storage path of the original file on the terminal device, and the original file is obtained according to the storage path of the original file, and the original file is sent to the third-party server through a third-party application.
  • the terminal device may execute the operation of sending the original file or the operation of sending the compressed file according to the user operation. For example, after the user selects a picture, if it is detected that the user selects the "send original picture" operation on the terminal device, the cloud ID will be obtained according to the local ID corresponding to the picture selected by the user, and the original file sent by the cloud disk server will be obtained according to the cloud ID , And then send the original file to a third-party server; if the user selects the "send thumbnail” operation on the terminal device, the storage path of the thumbnail on the terminal device is obtained according to the local identifier corresponding to the picture selected by the user, and the thumbnail is reduced. The thumbnail is sent to a third-party server.
  • the terminal device when the terminal device detects a file sharing operation instruction, it obtains the cloud identification, sends the cloud identification to the cloud disk server, to obtain the original file corresponding to the cloud identification sent by the cloud disk server, and sends the original file To the target sharing terminal, since the target sharing terminal obtains the original file, not the address link, there is no need for the target sharing terminal to adapt the address link, which has better versatility and improves user experience.
  • FIG. 14 shows another schematic flow chart of the file sharing method provided in the embodiment of the present application, and the execution body of the method is the cloud disk server 200. As shown in Figure 14, the method includes:
  • the cloud disk server maintains a storage list.
  • the fields in the storage list include cloud identifiers and address links.
  • Each record in the storage list corresponds to at least one original file, that is, one cloud identifier corresponds to at least one original file.
  • the terminal device After detecting the sharing operation instruction of the original file, the terminal device sends the cloud identifier corresponding to the original file to the cloud disk server.
  • the cloud disk server receives the cloud identification, it searches for a record corresponding to the cloud identification in the storage list, obtains the address link corresponding to the cloud identification according to the record, and obtains the corresponding original file according to the address link.
  • the cloud disk server sends the original file corresponding to the cloud identifier to the terminal device to trigger the terminal device to send the original file corresponding to the cloud identifier to the target sharing terminal.
  • the cloud disk server sends the original file corresponding to the cloud identifier to the cloud disk client on the terminal device, and the terminal device stores the original file in the media library through the cloud disk client for the third-party application to send the original file to Target sharing terminal.
  • the original file is stored on the cloud disk server.
  • the cloud disk server obtains the cloud identifier sent by the terminal device, it obtains the original file corresponding to the cloud identifier, and sends the original file corresponding to the cloud identifier to the terminal device to The terminal device is made to send the original file to the target sharing terminal to realize file sharing. Since the original file received by the target sharing terminal is not an address link, the target sharing terminal does not need to adapt the address link to improve user experience.
  • FIG. 15 shows a specific flow diagram of a file sharing method provided in an embodiment of the present application. As shown in FIG. 15, the method includes:
  • the terminal device After detecting the sharing operation instruction of the original file, the terminal device searches the media metadata table of the media library of the terminal device for whether there is a cloud identifier corresponding to the original file.
  • the terminal device detects that the user has opened a third-party application, and further detects that the user has added a picture to the third-party application
  • the media library is opened through the media picture management interface.
  • the terminal device detects that the user selects a file and further detects the operation of sending the file, it searches whether there is a cloud identifier corresponding to the selected file in the media metadata table in the media library.
  • the terminal device obtains the cloud identifier.
  • S303 The terminal device sends the cloud identifier to the cloud disk server.
  • the terminal device calls the cloud disk client, and the cloud disk client generates a file download request according to the cloud identifier, and sends the file download request to the cloud disk server.
  • the cloud disk server sends the original file corresponding to the cloud identifier to the terminal device.
  • the original file stored in the cloud disk server corresponds to the cloud identifier
  • one cloud identifier corresponds to at least one original file.
  • the cloud disk server obtains the download request, it parses out the corresponding cloud identifier and obtains the address link corresponding to the cloud identifier. Obtain the original file according to the address link, and send the obtained original file to the cloud disk client on the terminal device.
  • S305 The terminal device sends the original file corresponding to the cloud identifier to the third-party server through the third-party application.
  • S306 The third-party server sends the original file to the target sharing terminal.
  • a third-party application is installed on the target sharing terminal, and a download request is sent to the third-party server through the third-party application, thereby obtaining the original file.
  • the terminal device when the terminal device detects the file sharing operation instruction, it obtains the cloud identification and sends the cloud identification to the cloud disk server to obtain the original file corresponding to the cloud identification sent by the cloud disk server, and pass the original file through
  • the third-party application is sent to the third-party server, and another terminal device can download the original file from the third-party server through the third-party application, that is, the file stored on the cloud disk server can be shared without the need for an address link. Equipped with address links, it has better versatility and improves user experience.
  • FIG. 16 shows a structural block diagram of a file sharing device provided in an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
  • FIG. 16 it is a schematic structural diagram of a cloud disk server 200 provided by an embodiment of this application.
  • the cloud disk server 200 of this embodiment includes: at least one processor 210 (only one processor is shown in FIG.
  • the computer program 230 running on the processor 210 when the processor 210 executes the computer program 230, implements the steps executed by the cloud disk server in the above-mentioned file sharing method embodiment.
  • FIG. 16 is only an example of a cloud disk server, and does not constitute a limitation on the cloud disk server. It may include more or less components than those shown in the figure, or a combination of certain components, or different components. , For example, can also include input and output devices, network access devices, and so on.
  • the so-called processor 210 may be a central processing unit (Central Processing Unit, CPU), and the processor 210 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), and application specific integrated circuits (Application Specific Integrated Circuits). , ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the storage 220 may be an internal storage unit of the cloud disk server, such as a hard disk or memory of the cloud disk server.
  • the memory 220 may also be an external storage device of the cloud disk server, such as a plug-in hard disk equipped on the cloud disk server, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) card, Flash Card, etc.
  • the storage 220 may also include both an internal storage unit of the cloud disk server and an external storage device.
  • the memory 220 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program.
  • the memory 220 may also be used to temporarily store data that has been output or will be output.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium.
  • ROM read-only memory
  • RAM random access memory
  • electric carrier signal telecommunications signal and software distribution medium.
  • U disk mobile hard disk, floppy disk or CD-ROM, etc.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the disclosed apparatus/network equipment and method may be implemented in other ways.
  • the device/network device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units.
  • components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)

Abstract

一种文件共享方法、系统及相关设备,适用于互联网技术领域。所述文件共享方法包括:终端设备在检测到原始文件的共享操作指令后,获取与所述原始文件对应的云端标识(S101);终端设备从所述云盘服务器获取与所述云端标识对应的原始文件(S102);终端设备将获取的所述云端标识对应的原始文件发送至目标分享终端(S103)。从而不需要通过地址链接进行跳转,即可实现存储于云盘服务器的文件的共享。

Description

文件共享方法、系统及相关设备
本申请要求于2020年02月12日提交国家知识产权局、申请号为202010089391.4、申请名称为“文件共享方法、系统及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及互联网技术领域,尤其涉及文件共享方法、系统及相关设备。
背景技术
随着移动终端和移动网络的不断发展,相机像素的提高使得拍摄照片的存储空间越来越大,越来越多的人选择把移动终端上拍摄的图片同步至云盘服务器。对于已经同步到云盘服务器的图片,现有的共享方法一般是通过云盘客户端将原始图片在云盘服务器中的地址链接发送至第三方服务器,另一终端设备需要根据第三方服务器发送的地址链接,到云盘服务器下载待共享的文件。由于地址链接无法直接展示,且需要第三方应用适配地址链接,影响用户体验。
发明内容
本申请实施例提供了文件共享方法、系统及相关设备,可以直接获取待分享的原始文件,且不需要第三方应用适配地址链接。
第一方面,本申请实施例提供了一种文件共享方法,应用于终端设备,包括:
若检测到原始文件的共享操作指令,获取与所述原始文件对应的云端标识,其中,一个云端标识对应云盘服务器上存储的至少一个原始文件;
从所述云盘服务器获取与所述云端标识对应的原始文件;
将获取的所述云端标识对应的原始文件发送至目标分享终端。
上述实施例中,通过将云端标识与云盘服务器上存储的原始文件一一关联,终端设备在检测到原始文件的共享操作指令时,获取对应的云端标识,将云端标识发送至云盘服务器,以获取云盘服务器发送的与云端标识对应的原始文件,再将原始文件发送至目标分享终端,实现存储于云盘服务器的文件的共享,由于目标分享终端接收到的为原始文件,不需要通过地址链接进行跳转,从而不需要目标分享终端上的第三方应用适配地址链接,通用性更好,提高用户体验。
在第一方面的一种可能的实现方式中,所述获取与所述原始文件对应的云端标识,包括:
从所述终端设备的媒体库的媒体元数据表中查找是否存在与所述原始文件对应的云端标识;若所述媒体元数据表中存在与所述原始文件对应的云端标识,则获取与所述原始文件对应的云端标识。例如,媒体元数据表中包括云端标识字段,若原始文件对应的存储记录中的云端标识字段不为空,则获取该云端标识。
在第一方面的一种可能的实现方式中,终端设备上的媒体图片管理接口用于管理存储于终端设备上以及存储于云盘服务器的文件,终端设备通过媒体图片管理接口实现对存储于云盘服务器的文件的读写操作。所述从所述终端设备的媒体库的媒体元数据表中查找是否存在与所述原始文件对应的云端标识,包括:通过预设的媒体图片管理接口从所述终端设备的媒体库的媒体元数据表中查找是否存在与所述原始文件对应的云端标识。
所述从所述云盘服务器获取与所述云端标识对应的原始文件,包括:通过预设的媒体图片管理接口从所述云盘服务器获取与所述云端标识对应的原始文件。
在第一方面的一种可能的实现方式中,若所述终端设备上不存在所述原始文件,从所述终端设备的媒体库的媒体元数据表中查找是否存在与所述文件对应的云端标识。
在第一方面的一种可能的实现方式中,在所述获取与所述原始文件对应的云端标识之前,所述方法还包括:
获取原始文件;将所述原始文件通过云盘客户端上传至所述云盘服务器,其中,所述云盘客户端安装于所述终端设备上;接收所述云盘服务器发送的与所述原始文件对应的云端标识。由于终端设备上存储的云端标识与云盘服务器上的原始文件一一对应,云盘服务器根据终端设备发送的云端标识,即可将对应的原始文件发送至终端设备。
在第一方面的一种可能的实现方式中,在所述将所述原始文件通过云盘客户端上传至所述云盘服务器之后,所述方法还包括:
删除所述终端设备上的原始文件,并从所述云盘服务器获取与已删除的原始文件对应的压缩文件,以节省终端设备上的存储空间,同时用户可以通过终端设备上的压缩文件预览原始文件,提高用户体验。
第二方面,本申请实施例提供了一种文件共享方法,应用于云盘服务器,包括:
在接收到终端设备发送的原始文件对应的云端标识时,获取所述云端标识对应的原始文件;其中,所述云端标识是所述终端设备在检测到原始文件的共享操作指令后触发的,一个云端标识对应所述云盘服务器上存储的至少一个原始文件;
将所述云端标识对应的原始文件发送至所述终端设备,以触发所述终端设备将所述云端标识对应的原始文件发送至目标分享终端的操作。
在第二方面的一种可能的实现方式中,在所述获取所述云端标识对应的原始文件之前,所述方法还包括:
获取所述终端设备通过云盘客户端上传的原始文件;
生成与所述原始文件对应的云端标识,将所述原始文件对应的云端标识发送至所述终端设备。
在第二方面的一种可能的实现方式中,在所述生成与所述原始文件对应的云端标识之后,所述方法还包括:
生成与所述云端标识对应的地址链接。
对应地,所述将所述云端标识对应的原始文件发送至所述终端设备,包括:根据所述云端标识对应的地址链接获取对应的原始文件,将所述原始文件发送至所述终端设备。
在第二方面的一种可能的实现方式中,在所述生成与所述原始文件对应的云端标识之后,所述方法还包括:
生成与所述原始文件对应的压缩文件。
第三方面,本申请实施例提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面所述的文件共享方法。
第四方面,本申请实施例提供了一种云盘服务器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第二方面所述的文件共享方法。
第五方面,本申请实施例提供了一种文件共享系统,包括上述第三方面所述的终端设备以及上述第四方面所述的云盘服务器。
第六方面,本申请实施例提供的一种文件共享装置,包括终端设备和云盘服务器,其中,终端设备包括:
第一获取模块,用于若检测到原始文件的共享操作指令,获取与所述原始文件对应的云端标识,其中,一个云端标识对应云盘服务器上存储的一个原始文件;
第二获取模块,用于从所述云盘服务器获取与所述云端标识对应的原始文件;
第一发送模块,用于将获取的所述云端标识对应的原始文件发送至目标分享终端。
在第六方面的一种可能的实现方式中,所述第一获取模块包括查找单元和获取单元,
所述查找单元用于从所述终端设备的媒体库的媒体元数据表中查找是否存在与所述原始文件对应的云端标识;
所述获取单元用于若所述媒体元数据表中存在与所述原始文件对应的云端标识,则获取与所述原始文件对应的云端标识。
在第六方面的一种可能的实现方式中,所述查找单元具体用于通过预设的媒体图片管理接口从所述终端设备的媒体库的媒体元数据表中查找是否存在与所述原始文件对应的云端标识。
在第六方面的一种可能的实现方式中,所述第二获取模块具体用于:
通过预设的媒体图片管理接口从所述云盘服务器获取与所述云端标识对应的原始文件。
在第六方面的一种可能的实现方式中,所述查找单元还用于若所述终端设备上不存在所述原始文件,从所述终端设备的媒体库的媒体元数据表中查找是否存在与所述文件对应的云端标识。
在第六方面的一种可能的实现方式中,所述终端设备还包括文件上传模块,所述文件上传模块用于:
获取原始文件;
将所述原始文件通过云盘客户端上传至所述云盘服务器,其中,所述云盘客户端安装于所述终端设备上;
接收所述云盘服务器发送的与所述原始文件对应的云端标识。
在第六方面的一种可能的实现方式中,所述终端设备还包括文件删除模块,所述 文件删除模块具体用于:
获取删除请求;
根据所述删除请求删除所述终端设备上的原始文件,并从所述云盘服务器获取与已删除的原始文件对应的压缩文件。
云盘服务器包括:
第三获取模块,用于获取终端设备发送的云端标识,其中,所述云端标识是在所述终端设备检测到原始文件的共享操作指令时发送的与原始文件对应的标识,一个云端标识对应所述云盘服务器上存储的一个原始文件;
第二发送模块,用于将与所述云端标识对应的原始文件发送至所述终端设备,所述终端设备用于将获取的所述云端标识对应的原始文件发送至目标分享终端。
在第六方面的一种可能的实现方式中,所述云盘服务器还包括接收模块,所述接收模块用于:
获取所述终端设备通过云盘客户端上传的原始文件;
生成与所述原始文件对应的云端标识,将所述原始文件对应的云端标识发送至所述终端设备。
在第六方面的一种可能的实现方式中,所述云盘服务器还包括存储模块,所述存储模块用于:
生成与所述云端标识对应的地址链接。
对应地,所述第二发送模块具体用于:
根据所述云端标识对应的地址链接将所述原始文件发送至所述终端设备。
在第六方面的一种可能的实现方式中,所述存储模块还用于:
生成与所述原始文件对应的压缩文件,所述终端设备用于在删除所述终端设备上的原始文件时,从所述云盘服务器下载与删除的原始文件对应的压缩文件。
第七方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如上述第一方面所述的文件共享方法或者如上述第二方面所述的文件共享方法。
第八方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行如上述第一方面所述的文件共享方法或者如上述第二方面所述的文件共享方法。
可以理解的是,上述第二方面至第八方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。
附图说明
图1是本申请一实施例提供的文件共享系统的示意图;
图2是本申请一实施例提供的文件共享方法所适用于的终端设备的结构示意图;
图3是本申请一实施例提供的文件共享方法所适用于的软件架构示意图;
图4是本申请一实施例提供的文件共享方法中文件上传过程的示意图;
图5是本申请一实施例提供的文件共享方法的应用场景示意图;
图6是本申请实施例提供的文件共享方法的示意图;
图7是本申请实施例提供的文件共享方法的流程示意图;
图8-图9是本申请一实施例提供的文件共享方法的另一应用场景示意图;
图10-图12是本申请一实施例提供的文件共享方法的又一应用场景示意图;
图13是本申请一实施例提供的文件共享方法的又一应用场景示意图;
图14是本申请实施例提供的文件共享方法的另一流程示意图;
图15是本申请实施例提供的文件共享方法的具体流程示意图;
图16是本申请实施例提供的云盘服务器的结构示意图。
具体实施方式
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
如图1所示,本申请实施例提供的文件共享方法应用于文件共享系统,文件共享系统包括终端设备100、云盘服务器200、第三方服务器300以及目标分享终端400。终端设备100与云盘服务器200通讯连接,终端设备100将原始文件上传至云盘服务器200,云盘服务器200生成与原始文件对应的云端标识,并将云端标识发送至终端设备100。终端设备在原始文件被删除时保留与原始文件对应的云端标识。当需要共享终端设备100上已经删除但仍存储在云盘服务器200上的原始文件时,根据终端设备100上保留的与原始文件对应的云端标识从云盘服务器200下载对应的原始文件,将原始文件通过第三方服务器300发送至目标分享终端400,从而实现文件共享。其中,原始文件可以为图片、视频或者文档等。
本申请实施例涉及的终端设备100和目标分享终端400均可以是手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality, VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等,本申请实施例对终端设备和目标分享终端的具体类型不作任何限制。
为了便于理解,首先介绍本申请实施例所涉及的终端设备。请参阅图2,图2是本申请实施例提供的终端设备100的结构示意图。
终端设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对终端设备100的具体限定。在本申请另一些实施例中,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包 含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现终端设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现终端设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现终端设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备100充电,也可以用于终端设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备100的结构限定。在本申请另一些实施例中,终端设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
终端设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。终端设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在终端设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,终端设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile  communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
终端设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dotlight emitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或N个显示屏194,N为大于1的正整数。
终端设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。终端设备100可以支持一种或多种视频编解码器。这样,终端设备100可以播放或录制多种编码格式的视频,例如:动 态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备100的各种功能应用以及数据处理。
终端设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。终端设备100可以设置至少一个麦克风170C。在另一些实施例中,终端设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A
的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电 容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。终端设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,终端设备100根据压力传感器180A检测所述触摸操作强度。终端设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定终端设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定终端设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测终端设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,终端设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。终端设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当终端设备100是翻盖机时,终端设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测终端设备100在各个方向上(一般为三轴)加速度的大小。当终端设备100静止时可检测出重力的大小及方向。还可以用于识别终端设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。终端设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,终端设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端设备100通过发光二极管向外发射红外光。终端设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端设备100附近有物体。当检测到不充分的反射光时,终端设备100可以确定终端设备100附近没有物体。终端设备100可以利用接近光传感器180G检测用户手持终端设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。终端设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测终端设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。终端设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,终端设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,终端设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端设备100对电池142加热,以避免低温导致终端设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,终端设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备100可以接收按键输入,产生与终端设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端设备100的接触和分离。终端设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。终端设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端设备100中,不能和终端设备100分离。
终端设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明终端设 备100的软件结构。
图3是本发明实施例的终端设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序,以及第三方应用,如微信、QQ、钉钉、淘宝等。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供终端设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合图1所示的文件共享系统,对本申请实施例提供的文件共享方法进行说明。
首先以文件为图片为例,介绍文件共享方法中文件的存储过程。如图4所示,用户执行拍摄动作,得到对应的图片后,存储于终端设备的图库中,终端设备生成与存储的图片对应的本地标识。其中,本地标识是用于标识图片在终端设备上的存储记录的标识,可以是图片的名称或者编号,例如,001、002、003等。一个本地标识对应一个文件的存储记录,存储记录中还包括图片的存储路径。当需要将图片上传至云盘服务器时,在图库中选择需要上传的图片对应的本地标识,云盘客户端根据本地标识对应的存储记录,根据存储记录中的存储路径获取对应的图片,将获取的图片上传至云盘服务器。例如,如图5所示,终端设备响应用户对“图片a”的触摸操作,选中“图片a”,即选中“图片a”对应的本地标识,若终端设备进一步检测到用户对应用程序“云共享”的触摸操作,云盘客户端根据本地标识对应的存储记录,获取“图片a”对应的存储路径,将该存储路径对应的图片上传至云盘服务器。请继续参照图4,图片上传成功后,云盘服务器存储上传的图片,该上传的图片作为云盘服务器存储的原始图片,云盘服务器生成与上传的图片对应的云端标识,并根据该图片的存储路径生成地址链接,将该云端标识与地址链接关联。其中,云端标识是用于标识图片在云盘服务器上的存储记录的标识,且不同于本地标识,例如云端标识可以为y01、y02、y03等。在一种可能的实现方式中,一个云端标识可以对应终端设备上存储的多张图片,例如,若云盘服务器检测到终端设备同时上传多张图片,生成与多张图片对应的云端标识,并根据该多张图片的存储路径生成多个地址链接,将该云端标识与多个地址链接关联。
云盘服务器生成云端标识后,将该云端标识发送至云盘客户端,终端设备将该云端标识存储至图库中,并提醒用户图片上传成功,该云端标识即与终端设备上对应的原始图片关联。
在一种可能的实现方式中,终端设备在检测到图片上传成功后,删除终端设备上的原始图片,将云端标识添加至媒体库中,并保留与原始图片关联的本地标识,将云端标识与本地标识关联。在另一种可能的实现方式中,当终端设备检测到用户发出用于删除图片的操作指令时,删除存储于图库的原始图片,将云端标识添加至媒体库中,并保留与原始图片关联的本地标识,将云端标识与本地标识关联。
在一种可能的实现方式中,云盘服务器在获取到终端设备上传的原始图片后,生成与原始图片对应的压缩文件,即缩略图,当终端设备在删除图库中存储的原始图片后,从云盘服务器下载与删除的原始图片对应的缩略图,其中,缩略图的存储空间小于对应的原始 图片的存储空间。终端设备下载缩略图后,将缩略图保存在隐藏目录中,并将缩略图在隐藏目录中对应的存储路径与本地标识关联。因此,不管是缩略图还是原始图片,均与媒体库中的唯一一条存储记录关联,每条存储记录均包括与图片对应的本地标识、存储路径和云端标识。例如,媒体库中维护一个媒体元数据表,媒体元数据表中的字段包括本地标识、存储路径和云端标识,媒体元数据表中每一行存储记录均关联一张图片。对于终端设备上已经删除且存储于云盘服务器上的图片,存储路径为压缩文件的存储路径,云端标识与云盘服务器上的原始文件一一对应。对于只存储于终端设备,未上传至云盘服务器的图片,存储路径为终端设备上原始图片的存储路径,云端标识为空。对于已经上传至云盘服务器且终端设备未进行删除的图片,存储路径为终端设备上原始图片的存储路径,云端标识与云盘服务器上的原始文件一一对应。
在一种可能的实现方式中,终端设备将存储于终端设备上的图片和存储于云盘服务器且终端设备上已经删除的图片分别显示在不同的路径下。例如,用户通过打开媒体库中“本地图片”的文件夹访问存储于终端设备上的图片,通过打开媒体库中“云端图片”的文件夹访问存储于云盘服务器且终端设备上已经删除的图片,从而方便用户查看。需要说明的是,也可以将存储于终端设备上的图片和存储于云盘服务器且终端设备上已经删除的图片显示在相同的路径下。
本申请实施例提供的文件共享方法如图6所示,终端设备上安装第三方应用和媒体库,目标终端上也安装第三方应用。其中,媒体库包括媒体元数据表和媒体图片管理接口,媒体元数据表用于存储与原始文件对应的存储记录,媒体图片管理接口是用于管理存储于终端设备上以及存储于云盘服务器的文件,终端设备通过媒体图片管理接口实现对存储于云盘服务器的文件的读写操作。本申请实施例中,第三方应用根据用户的共享操作指令,通过媒体图片管理接口查询媒体元数据表中的存储记录,从存储记录中选中与共享操作指令对应的记录。媒体图片管理接口读取用户选中的记录,从云盘服务器下载与用户选中的记录对应的原始图片,下载成功后,将原始图片保存至终端设备并发送至第三方应用,第三方应用再将原始图片通过第三方服务器发送至目标分享终端,目标分享终端的第三方应用接收原始图片并展示。
下面对本申请实施例提供的文件共享方法进行详细说明。请参见图7,图7示出了本申请实施例中提供的文件共享方法的流程示意图,该方法执行主体为终端设备100,该方法包括:
S101:终端设备在检测到原始文件的共享操作指令后,获取与所述原始文件对应的云端标识,其中,一个云端标识对应云盘服务器上存储的至少一个原始文件。
具体地,当终端设备检测到用户用于共享原始文件的操作指令时,从原始文件对应的存储记录中获取云端标识。其中,原始文件可以为图片、视频或文档,原始文件存储于终端设备或者云端服务器。
在一种可能的实现方式中,终端设备从媒体库中获取云端标识。具体地,媒体库的媒体元数据表中存储与原始文件对应的存储记录,每条存储记录对应的字段包括本地标识、存储路径和云端标识。当终端设备检测到用户用于共享原始文件的操作指令时,根据共享原始文件的操作指令确定出与待共享的文件对应的本地标识,再通过媒体图片管理接口查找媒体元数据表中与该本地标识对应的存储记录,根据存储记录判断终端设备上是否存在 与本地标识对应的原始文件。例如,若本地标识对应的存储路径为终端设备上的图库的路径,则终端设备上存储有对应的原始文件,若本地标识对应的存储路径为压缩文件的路径,则终端设备上未存储对应的原始文件。若终端设备上不存在对应的原始文件,再从媒体元数据表中查找是否存在与原始文件对应的云端标识。例如,确认原始文件对应的存储记录中云端标识字段对应的记录是否为空,若不为空,则说明媒体元数据表中存在与原始文件对应的云端标识,获取该云端标识。
在一种可能的实现方式中,终端设备通过终端设备上安装的第三方应用获取原始文件的共享操作指令,根据原始文件的共享操作指令获取与原始文件对应的云端标识。其中,第三方应用可以是微信、QQ、钉钉、淘宝等。
例如,第三方应用为微信,在一种场景中,如图8所示,终端设备检测到用户打开媒体库,触摸“图片a”的操作时,选中“图片a”,即选中“图片a”对应的本地标识,当终端设备进一步检测到触摸“微信”的操作时,跳转至微信联系人的界面。如图9所示,当终端设备检测到用户触摸联系人界面中的联系人时,响应用户的共享“图片a”的操作指令。先通过预设的媒体图片管理接口查看终端设备上是否存在与本地标识对应的原始图片,若终端设备上不存在与本地标识对应的原始图片,再查找媒体库中的媒体元数据表中是否存在与本地标识对应的云端标识,即“图片a”的云端标识。若媒体元数据表中存在与本地标识对应的云端标识,获取该云端标识。
在另一种场景中,如图10所示,用户打开微信,选择联系人后,终端设备检测到用户触摸图片发送选项的操作后,打开媒体库。如图11所示,用户可以在媒体库中打开本地图片文件夹以选择存储于终端设备上的图片,也可以打开云端图片文件夹以选择终端设备上已经删除且存储于云盘服务器的图片。如图12所示,终端设备检测到用户触摸“云端图片”后,打开云端图片文件夹,当终端设备进一步检测到触摸“图片a”的操作时,选中“图片a”,即选中“图片a”对应的本地标识。当终端设备进一步检测到触摸“发送”的操作时,响应用户的共享“图片a”的操作指令,通过媒体图片管理接口,查找媒体库中的媒体元数据表中是否存在与本地标识对应的云端标识,即“图片a”的云端标识。若媒体元数据表中存在与本地标识对应的云端标识,获取该云端标识。
其中,对于终端设备上已经删除且存储于云盘服务器的图片,用户可以在终端设备上进行预览,例如,如图13所示,用户打开云端图片文件夹,并选中“图片a”,当终端设备检测到触摸“预览”的操作时,根据“图片a”的缩略图的路径打开“图片a”的缩略图,实现预览。
S102:终端设备从所述云盘服务器获取与所述云端标识对应的原始文件。
具体地,终端设备通过媒体图片管理接口调用云盘客户端,云盘客户端根据云端标识生成下载请求,将下载请求发送至云盘服务器,从云盘服务器下载原始文件,并通过预设的媒体图片管理接口将原始文件存储于终端设备上。
S103:终端设备将获取的所述云端标识对应的原始文件发送至目标分享终端。
在一种可能的实现方式中,原始文件存储于终端设备上后,第三方应用获取原始文件,将原始文件发送至第三方服务器,第三方服务器将原始文件发送至目标分享终端。目标分享终端通过目标分享终端上安装第三方应用,例如微信,即可获取原始文件,从而实现文件共享。
在一种可能的实现方式中,当终端设备接收到第三方服务器发送的文件发送成功的指示后,删除从云盘服务器下载的原始文件,以减少文件占用空间。
需要说明的是,在其它可能的实现方式中,若终端设备通过媒体图片管理接口查找到终端设备上存储有原始文件,例如,通过媒体图片管理接口查找媒体库中的媒体元数据表,媒体元数据表中的存储路径为终端设备上原始文件的存储路径,则根据原始文件的存储路径获取原始文件,将原始文件通过第三方应用发送至第三方服务器。
在一种可能的实现方式中,对于终端设备上已经删除,但仍存储于云盘服务器的文件,终端设备可以根据用户操作执行发送原始文件的操作或者执行发送压缩文件的操作。例如,在用户选中图片后,若检测到用户在终端设备上选择“发送原图”的操作,则根据用户选中的图片对应的本地标识获取云端标识,根据云端标识获取云盘服务器发送的原始文件,再将原始文件发送至第三方服务器;若检测到用户在终端设备上选择“发送缩略图”的操作,则根据用户选中的图片对应的本地标识获取终端设备上缩略图的存储路径,将缩略图发送至第三方服务器。
上述实施例中,当终端设备检测到文件的共享操作指令时,获取云端标识,将云端标识发送至云盘服务器,以获取云盘服务器发送的与云端标识对应的原始文件,将该原始文件发送至目标分享终端,由于目标分享终端获取的是原始文件,不是地址链接,从而不需要目标分享终端适配地址链接,通用性更好,提高用户体验。
请参见图14,图14示出了本申请实施例中提供的文件共享方法的另一流程示意图,该方法执行主体为云盘服务器200。如图14所示,该方法包括:
S201:云盘服务器在接收到终端设备发送的原始文件对应的云端标识时,获取所述云端标识对应的原始文件;其中,所述云端标识是所述终端设备在检测到原始文件的共享操作指令后触发的,一个云端标识对应所述云盘服务器上存储的至少一个原始文件。
具体地,云盘服务器中维护一个存储列表,存储列表中的字段包括云端标识和地址链接,存储列表中的每一条记录均对应至少一个原始文件,即一个云端标识对应至少一个原始文件。终端设备在检测到原始文件的共享操作指令后,将原始文件对应的云端标识发送至云盘服务器。云盘服务器在接收到云端标识时,查找存储列表中与云端标识对应的记录,根据该记录获取与云端标识对应的地址链接,根据该地址链接获取对应的原始文件。
S202:云盘服务器将所述云端标识对应的原始文件发送至所述终端设备,以触发所述终端设备将所述云端标识对应的原始文件发送至目标分享终端的操作。
具体地,云盘服务器将云端标识对应的原始文件发送至终端设备上的云盘客户端,终端设备通过云盘客户端将原始文件存储于媒体库中,以供第三方应用将原始文件发送至目标分享终端。
上述实施例中,原始文件存储于云盘服务器上,云盘服务器在获取到终端设备发送的云端标识时,获取与云端标识对应的原始文件,将云端标识对应的原始文件发送至终端设备,以使终端设备将原始文件发送至目标分享终端,实现文件共享,由于目标分享终端接收到的原始文件,不是地址链接,从而不需要目标分享终端适配地址链接,提高用户体验。
请参见图15,图15示出了本申请实施例中提供的文件共享方法的具体流程示意图, 如图15所示,该方法包括:
S301:终端设备在检测到原始文件的共享操作指令后,从所述终端设备的媒体库的媒体元数据表中查找是否存在与所述原始文件对应的云端标识。
例如,若终端设备检测到用户打开第三方应用,并进一步检测到用户向第三方应用添加图片的操作时,通过媒体图片管理接口打开媒体库。当终端设备检测到用户选中文件,并进一步检测到发送文件的操作时,查找媒体库中的媒体元数据表中是否存在与选中的文件对应的云端标识。
S302:若所述媒体元数据表中存在与所述原始文件对应的云端标识,终端设备获取与所述原始文件对应的云端标识。
具体地,若媒体元数据表中存在与原始文件对应的云端标识,说明云盘服务器中存储有原始文件,终端设备获取该云端标识。
S303:终端设备将所述云端标识发送至云盘服务器。
具体地,终端设备调用云盘客户端,云盘客户端根据云端标识生成文件下载请求,将文件下载请求发送至云盘服务器。
S304:云盘服务器将云端标识对应的原始文件发送至终端设备。
具体地,云盘服务器中存储的原始文件与云端标识对应,一个云端标识对应至少一个原始文件,当云盘服务器获取到下载请求后,解析出对应的云端标识,获取云端标识对应的地址链接,根据该地址链接获取原始文件,将获取的原始文件发送至终端设备上的云盘客户端。
S305:终端设备将云端标识对应的原始文件通过第三方应用发送至第三方服务器。
S306:第三方服务器发送原始文件至目标分享终端。
具体地,目标分享终端上安装有第三方应用,通过第三方应用向第三方服务器发送下载请求,从而获取原始文件。
上述实施例中,当终端设备检测到文件的共享操作指令时,获取云端标识,将云端标识发送至云盘服务器,以获取云盘服务器发送的与云端标识对应的原始文件,将该原始文件通过第三方应用发送至第三方服务器,另一终端设备通过第三方应用即可从第三方服务器下载原始文件,即不需要地址链接即可共享存储于云盘服务器的文件,从而不需要第三方应用适配地址链接,通用性更好,提高用户体验。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
对应于上文实施例所述的文件共享方法,图16示出了本申请实施例提供的文件共享装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。
如图16所示,为本申请一实施例提供的云盘服务器200的结构示意图。如图16所示,该实施例的云盘服务器200包括:至少一个处理器210(图16中仅示出一个处理器)、存储器220以及存储在所述存储器220中并可在所述至少一个处理器210上运行的计算机程序230,所述处理器210执行所述计算机程序230时实现上述文件共享方法实施例中云盘服务器执行的步骤。
本领域技术人员可以理解,图16仅仅是云盘服务器的举例,并不构成对云盘服务 器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。
所称处理器210可以是中央处理单元(Central Processing Unit,CPU),该处理器210还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述存储器220在一些实施例中可以是所述云盘服务器的内部存储单元,例如云盘服务器的硬盘或内存。所述存储器220在另一些实施例中也可以是所述云盘服务器的外部存储设备,例如所述云盘服务器上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器220还可以既包括所述云盘服务器的内部存储单元也包括外部存储设备。所述存储器220用于存储操作系统、应用程序、引导装载程序(BootLoader)、数据以及其他程序等,例如所述计算机程序的程序代码等。所述存储器220还可以用于暂时地存储已经输出或者将要输出的数据。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到 多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (15)

  1. 一种文件共享方法,应用于终端设备,其特征在于,所述文件共享方法包括:
    若检测到原始文件的共享操作指令,获取与所述原始文件对应的云端标识,其中,一个云端标识对应云盘服务器上存储的至少一个原始文件;
    从所述云盘服务器获取与所述云端标识对应的原始文件;
    将获取的所述云端标识对应的原始文件发送至目标分享终端。
  2. 如权利要求1所述的文件共享方法,其特征在于,所述获取与所述原始文件对应的云端标识,包括:
    从所述终端设备的媒体库的媒体元数据表中查找是否存在与所述原始文件对应的云端标识;
    若所述媒体元数据表中存在与所述原始文件对应的云端标识,则获取与所述原始文件对应的云端标识。
  3. 如权利要求2所述的文件共享方法,其特征在于,所述从所述终端设备的媒体库的媒体元数据表中查找是否存在与所述原始文件对应的云端标识,包括:
    若所述终端设备上不存在所述原始文件,则从所述终端设备的媒体库的媒体元数据表中查找是否存在与所述原始文件对应的云端标识。
  4. 如权利要求2或3所述的文件共享方法,其特征在于,所述从所述终端设备的媒体库的媒体元数据表中查找是否存在与所述原始文件对应的云端标识,包括:
    通过预设的媒体图片管理接口从所述终端设备的媒体库的媒体元数据表中查找是否存在与所述原始文件对应的云端标识。
  5. 如权利要求1至4任一项所述的文件共享方法,其特征在于,所述从所述云盘服务器获取与所述云端标识对应的原始文件,包括:
    通过预设的媒体图片管理接口从所述云盘服务器获取与所述云端标识对应的原始文件。
  6. 如权利要求1至5任一项所述的文件共享方法,其特征在于,在所述获取与所述原始文件对应的云端标识之前,所述方法还包括:
    获取原始文件;
    将所述原始文件通过云盘客户端上传至所述云盘服务器,其中,所述云盘客户端安装于所述终端设备上;
    接收所述云盘服务器发送的与所述原始文件对应的云端标识。
  7. 如权利要求6所述的文件共享方法,其特征在于,在所述将所述原始文件通过云盘客户端上传至所述云盘服务器之后,所述方法还包括:
    删除所述终端设备上的原始文件,并从所述云盘服务器获取与已删除的原始文件对应的压缩文件。
  8. 一种文件共享方法,应用于云盘服务器,其特征在于,所述文件共享方法包括:
    在接收到终端设备发送的原始文件对应的云端标识时,获取所述云端标识对应的原始文件;其中,所述云端标识是所述终端设备在检测到原始文件的共享操作指令后触发的,一个云端标识对应所述云盘服务器上存储的至少一个原始文件;
    将所述云端标识对应的原始文件发送至所述终端设备,以触发所述终端设备将所述云端标识对应的原始文件发送至目标分享终端的操作。
  9. 如权利要求8所述的文件共享方法,其特征在于,在所述获取所述云端标识对应的原始文件之前,所述方法还包括:
    获取所述终端设备通过云盘客户端上传的原始文件;
    生成与所述原始文件对应的云端标识,将所述原始文件对应的云端标识发送至所述终端设备。
  10. 如权利要求9所述的文件共享方法,其特征在于,在所述生成与所述原始文件对应的云端标识之后,所述方法还包括:
    生成与所述云端标识对应的地址链接;
    对应地,所述将所述云端标识对应的原始文件发送至所述终端设备,包括:
    根据所述云端标识对应的地址链接获取对应的原始文件,将所述原始文件发送至所述终端设备。
  11. 如权利要求9所述的文件共享方法,其特征在于,在所述生成与所述原始文件对应的云端标识之后,所述方法还包括:
    生成与所述原始文件对应的压缩文件。
  12. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至7任一项所述的文件共享方法。
  13. 一种云盘服务器,其特征在于,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求8至11任一项所述的文件共享方法。
  14. 一种文件共享系统,其特征在于,包括如权利要求12所述的终端设备以及如权利要求13所述的云盘服务器。
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述的文件共享方法或者如权利要求8至11任一项所述的文件共享方法。
PCT/CN2020/124761 2020-02-12 2020-10-29 文件共享方法、系统及相关设备 WO2021159746A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20918744.2A EP4086780A4 (en) 2020-02-12 2020-10-29 FILE SHARING METHOD AND SYSTEM AND RELATED DEVICE
US17/799,199 US20230070358A1 (en) 2020-02-12 2020-10-29 File Sharing Method, System, and Related Device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010089391.4 2020-02-12
CN202010089391.4A CN113254409B (zh) 2020-02-12 2020-02-12 文件共享方法、系统及相关设备

Publications (1)

Publication Number Publication Date
WO2021159746A1 true WO2021159746A1 (zh) 2021-08-19

Family

ID=77219764

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/124761 WO2021159746A1 (zh) 2020-02-12 2020-10-29 文件共享方法、系统及相关设备

Country Status (4)

Country Link
US (1) US20230070358A1 (zh)
EP (1) EP4086780A4 (zh)
CN (2) CN113254409B (zh)
WO (1) WO2021159746A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873044A (zh) * 2021-10-15 2021-12-31 阿里巴巴(中国)有限公司 数据传输方法、系统、设备及存储介质
CN115167785A (zh) * 2022-09-06 2022-10-11 天津联想协同科技有限公司 基于标签的网盘文件管理方法、装置、网盘及存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113849092A (zh) * 2021-09-18 2021-12-28 维沃移动通信有限公司 内容分享方法、装置和电子设备
CN114374690B (zh) * 2022-01-21 2023-10-31 荣耀终端有限公司 一种文件共享方法、通信系统和电子设备
CN115134322B (zh) * 2022-06-24 2023-06-30 天翼电信终端有限公司 文件安全传输方法、装置、云手机平台及存储介质
CN116055481B (zh) * 2023-04-03 2023-06-02 银河航天(北京)网络技术有限公司 一种共享文件的方法、系统、装置及存储介质
CN116775591B (zh) * 2023-08-25 2023-11-17 上海凯翔信息科技有限公司 一种用于不同版本的云端nas同步系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120278395A1 (en) * 2011-04-29 2012-11-01 David Harry Garcia Dynamic Tagging Recommendation
CN103179156A (zh) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 一种图片分享方法、系统及设备
CN103457998A (zh) * 2013-07-31 2013-12-18 北京小米科技有限责任公司 一种图片分享的方法和装置
CN104317932A (zh) * 2014-10-31 2015-01-28 小米科技有限责任公司 照片分享方法及装置
CN104410615A (zh) * 2014-11-20 2015-03-11 北京奇虎科技有限公司 对共享数据进行访问的方法、客户端、服务器及系统
CN104462128A (zh) * 2013-09-22 2015-03-25 腾讯科技(深圳)有限公司 多媒体文件处理的方法、装置和终端设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101981258B1 (ko) * 2013-01-04 2019-05-22 삼성전자주식회사 개인 클라우드 기기를 이용한 컨텐츠 공유 방법 및 이를 적용한 전자 기기, 그리고 개인 클라우드 시스템
CN105100223B (zh) * 2015-07-01 2019-10-15 北京奇虎科技有限公司 基于云端存储的文件分享方法、装置与系统
US10735493B2 (en) * 2015-11-23 2020-08-04 International Business Machines Corporation System, method and program product for managing mobile device operation
US10380075B2 (en) * 2017-02-14 2019-08-13 Microsoft Technology Licensing, Llc Limiting sharing of a stored file
CN106998329B (zh) * 2017-03-31 2022-06-14 腾讯科技(深圳)有限公司 文件共享方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120278395A1 (en) * 2011-04-29 2012-11-01 David Harry Garcia Dynamic Tagging Recommendation
CN103179156A (zh) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 一种图片分享方法、系统及设备
CN103457998A (zh) * 2013-07-31 2013-12-18 北京小米科技有限责任公司 一种图片分享的方法和装置
CN104462128A (zh) * 2013-09-22 2015-03-25 腾讯科技(深圳)有限公司 多媒体文件处理的方法、装置和终端设备
CN104317932A (zh) * 2014-10-31 2015-01-28 小米科技有限责任公司 照片分享方法及装置
CN104410615A (zh) * 2014-11-20 2015-03-11 北京奇虎科技有限公司 对共享数据进行访问的方法、客户端、服务器及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4086780A4

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873044A (zh) * 2021-10-15 2021-12-31 阿里巴巴(中国)有限公司 数据传输方法、系统、设备及存储介质
CN113873044B (zh) * 2021-10-15 2024-01-02 阿里巴巴(中国)有限公司 数据传输方法、系统、设备及存储介质
CN115167785A (zh) * 2022-09-06 2022-10-11 天津联想协同科技有限公司 基于标签的网盘文件管理方法、装置、网盘及存储介质

Also Published As

Publication number Publication date
EP4086780A1 (en) 2022-11-09
US20230070358A1 (en) 2023-03-09
CN113254409A (zh) 2021-08-13
CN113254409B (zh) 2024-04-26
CN118427176A (zh) 2024-08-02
EP4086780A4 (en) 2023-06-07

Similar Documents

Publication Publication Date Title
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
WO2020233553A1 (zh) 一种拍摄方法及终端
WO2020103764A1 (zh) 一种语音控制方法及电子设备
WO2021159746A1 (zh) 文件共享方法、系统及相关设备
WO2021000807A1 (zh) 一种应用程序中等待场景的处理方法和装置
WO2021253975A1 (zh) 应用程序的权限管理方法、装置和电子设备
WO2021258814A1 (zh) 视频合成方法、装置、电子设备及存储介质
CN113805797B (zh) 网络资源的处理方法、电子设备及计算机可读存储介质
WO2021218429A1 (zh) 应用窗口的管理方法、终端设备及计算机可读存储介质
CN113704205B (zh) 日志存储的方法、芯片、电子设备和可读存储介质
CN113170011A (zh) 一种电子设备在来电时呈现视频的方法和电子设备
WO2021073337A1 (zh) 安装插件的方法、装置和存储介质
WO2022143180A1 (zh) 协同显示方法、终端设备及计算机可读存储介质
WO2022206764A1 (zh) 一种显示方法、电子设备和系统
WO2023015963A1 (zh) 管理文件的方法、电子设备和计算机可读存储介质
WO2023273543A1 (zh) 一种文件夹管理方法及装置
CN113542574A (zh) 变焦下的拍摄预览方法、终端、存储介质及电子设备
WO2023051094A1 (zh) 内存回收方法、装置、电子设备及可读存储介质
WO2022179495A1 (zh) 一种隐私风险反馈方法、装置及第一终端设备
CN113590346B (zh) 处理业务请求的方法和电子设备
WO2022062902A1 (zh) 一种文件传输方法和电子设备
WO2021238376A1 (zh) 功能包的加载方法、装置、服务器和电子设备
CN114398108A (zh) 电子设备及其驱动加载方法、介质
CN114567871A (zh) 文件共享的方法、装置、电子设备以及可读存储介质
WO2023109569A1 (zh) 文件存储方法、文件访问方法、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20918744

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020918744

Country of ref document: EP

Effective date: 20220804

NENP Non-entry into the national phase

Ref country code: DE