WO2020207326A1 - Dialogue message sending method and electronic device - Google Patents

Dialogue message sending method and electronic device Download PDF

Info

Publication number
WO2020207326A1
WO2020207326A1 PCT/CN2020/083019 CN2020083019W WO2020207326A1 WO 2020207326 A1 WO2020207326 A1 WO 2020207326A1 CN 2020083019 W CN2020083019 W CN 2020083019W WO 2020207326 A1 WO2020207326 A1 WO 2020207326A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
contact
user
level
message
Prior art date
Application number
PCT/CN2020/083019
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2020207326A1 publication Critical patent/WO2020207326A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/30Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information
    • H04L63/308Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information retaining data, e.g. retaining successful, unsuccessful communication attempts, internet access, or e-mail, internet telephony, intercept related information or call content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/67Risk-dependent, e.g. selecting a security level depending on risk profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/80Arrangements enabling lawful interception [LI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Definitions

  • the embodiments of the present application relate to the field of terminal technologies, and in particular, to a method for sending a dialog message and an electronic device.
  • chat applications are installed in users' electronic devices, such as SMS APP, WeChat APP, and Weibo APP. Users can use these chat applications to send chat messages to corresponding contacts or groups to communicate and interact with the corresponding contacts.
  • the user can add multiple contacts or groups in the WeChat APP.
  • the user can open the chat interface of a contact or group to send chat messages with the corresponding contact.
  • the chat message may include content such as text, pictures, or videos.
  • the content of the chat messages is mostly information related to the privacy of the user, such as the user's private photo, address, contact information, or family information.
  • the embodiments of the present application provide a method and electronic device for sending dialog messages, which can prevent users from sending chat messages containing user privacy to unrelated contacts, thereby preventing user privacy from being leaked and improving the security of electronic devices.
  • an embodiment of the present application provides a method for sending a dialog message, including: an electronic device displays a dialog interface with a first contact; further, the electronic device can receive the first dialog message input by the user in the dialog interface; electronic The device can identify whether the first conversation message contains private content associated with the first level of intimacy.
  • the first level of intimacy refers to the level of intimacy between the first contact and the user; if it contains private content, it means that the first conversation message exists If the content exceeds the degree of intimacy between the user and the first contact, then, before sending the first conversation message to the first contact, the electronic device may prompt the user to send the first conversation message to the first contact as a security risk.
  • the mobile phone before the mobile phone sends the first conversation message to the contact, it can determine whether the contact has the authority to read the conversation message entered by the user this time according to the intimacy between the user and the contact. If the content in the conversation message is the privacy of the user to the contact, the mobile phone can remind the user of the security risk of sending the conversation message, so as to prevent the user from sending the private conversation message to irrelevant contacts and prevent user privacy Is leaked, improving the security of electronic equipment.
  • the electronic device recognizing that the first conversation message contains private content includes: the electronic device recognizing one or more sensitive information units contained in the first conversation message; The level determines whether the sensitive information unit is private content.
  • the definition of privacy content in the conversation message can be dynamically changed according to the intimacy level between the two parties participating in the chat. The higher the level of intimacy, the higher the degree of intimacy between the two parties in the chat, and the looser definition of the privacy content of the electronic device in the dialogue message; the lower the level of intimacy, the lower the degree of intimacy between the two parties in the chat.
  • the conditions for defining privacy content in conversation messages are more stringent.
  • the electronic device determines whether the sensitive information unit is private content according to the first intimacy level, which specifically includes: when the first intimacy level is the first level (that is, the degree of intimacy is high), the electronic device determines that the sensitive unit is not private Content; When the first level of intimacy is at the second level (that is, the level of intimacy is low), the electronic device determines that the sensitive unit is private content; among them, the user’s degree of intimacy with the first contact at the first level is higher than at The degree of intimacy between the user and the first contact in the second level.
  • the method further includes: the electronic device calculates the proportion of the private content in the first conversation message; wherein, The electronic device reminds the user of the security risks of sending the first conversation message to the first contact, including: when the proportion of private content in the first conversation message is greater than the threshold, it indicates that the first conversation message is sent to the first contact this time If the security risk is greater, the electronic device can prompt the user of the security risk of the sending operation.
  • the above threshold may be dynamically set according to the intimacy level between the user and the first contact.
  • the first intimacy level is the first level
  • the above threshold can be set to the first value with a larger value; that is, when the private content is in the first conversation message Only when the proportion of in is high, the user will be notified that there is a risk of privacy leakage
  • the first intimacy level is the second level
  • the above threshold can be set to a smaller value The second value; that is, when the private content in the first conversation message is relatively low, it will prompt the user that there is a risk of privacy leakage.
  • the electronic device prompting the user to send the first conversation message to the first contact of the security risk includes: the electronic device displays a prompt message in the conversation interface, and the prompt message is used to prompt the user to send the first conversation message to the first contact.
  • the security risk of the contact sending the first conversation message includes: the electronic device displays a prompt message in the conversation interface, and the prompt message is used to prompt the user to send the first conversation message to the first contact.
  • the electronic device may also remind the user of the security risk of sending the first conversation message to the first contact by means of voice, animation, or vibration.
  • the above prompt message includes a first prompt box and a second prompt box; the first prompt box is used to instruct to continue sending the first dialog message, and the second prompt box is used to instruct to cancel sending the first dialog.
  • the electronic device before the electronic device sends the first conversation message to the first contact, it further includes: the electronic device masks the private content in the first conversation message, and the masking process includes blurring and printing. Mosaic or generate one or more of the watermarks, so that the electronic device can shield the content related to the privacy of the contact when displaying the dialogue message sent by the contact, and improve the security of information interaction in the chat scene.
  • the first level of intimacy when the label of the first contact is a partner, the first level of intimacy is the first level with the highest degree of intimacy; or, when the label of the first contact is family, the first level of intimacy The second level of intimacy is the second next; or, when the label of the first contact is a friend, the first intimacy level is the third next to the degree of intimacy; or, when the label of the first contact is a colleague , The first level of intimacy is the fourth level with the lowest degree of intimacy.
  • the user’s intimacy with the first contact at the first level is higher than the user’s intimacy with the first contact at the second level;
  • the user’s intimacy with the first contact at the second level Is higher than the intimacy between the user and the first contact at the third level;
  • the intimacy between the user and the first contact at the third level is higher than the intimacy between the user and the first contact at the fourth level.
  • the foregoing first dialog message may include one or more of text, audio, numbers, letters, symbols, pictures, or videos.
  • an embodiment of the present application provides a method for sending a dialog message, including: an electronic device displays a dialog interface with a first contact; further, the electronic device can receive the first dialog message input by the user in the dialog interface, and Identify the sensitive information unit in the first conversation message, such as the user's address, phone number, ID number, etc.; before sending the first conversation message to the first contact, the electronic device can determine the identified sensitive information unit and the first intimacy level (That is, whether the degree of intimacy between the first contact and the user) matches; if the sensitive information unit does not match the first degree of intimacy, it means that there is content in the first conversation message that exceeds the degree of intimacy between the user and the first contact, then The electronic device can remind the user of the security risk of sending the first conversation message to the first contact this time, so as to prevent the user from sending a private conversation message to irrelevant contacts and improve the security of the electronic device; if the sensitive information unit is The first intimacy level matches, indicating that the content in the first conversation message is not considered user privacy for the
  • the first intimacy level when the first intimacy level is the first level with higher intimacy, the first intimacy level matches the first type of sensitive information; when the first intimacy level is the second with lower intimacy level When leveling, the first intimacy level matches the second type of sensitive information; among them, the first type of sensitive information is a subset of the second type of sensitive information. That is to say, when the user is more intimate with the first contact, the more sensitive information is allowed to be sent to the first contact, and when the user’s degree of closeness with the first contact is lower, the information sent to the first contact is allowed The less sensitive information is, the less sensitive information can be used to prevent users from sending private conversation messages to irrelevant contacts, the privacy of users is prevented from being leaked, and the security of electronic devices is improved.
  • the electronic device prompts the user to send the first conversation message to the first contact of the security risk, including: the electronic device displays a prompt message in the conversation interface, and the prompt message is used to prompt the user to contact the first contact.
  • the security risk of a person sending the first conversation message may also remind the user of the security risk of sending the first conversation message to the first contact by means of voice, animation, or vibration.
  • the above prompt message may include a first prompt box and a second prompt box; the first prompt box is used to instruct to continue sending the first dialog message, and the second prompt box is used to instruct to cancel sending the first dialog message.
  • Dialogue message after the electronic device displays the prompt message in the dialogue interface, it also includes: if the user is detected according to the first prompt box, the electronic device sends the first dialogue message to the first contact; In the second prompt box, the electronic device cancels sending the first conversation message to the first contact.
  • the method before the electronic device sends the first conversation message to the first contact, the method further includes: the electronic device performs masking processing on the sensitive information unit in the first conversation message, and the masking processing includes blurring, Mosaic or generate one or more of the watermarks, thereby shielding the content related to user privacy in the first conversation message when the conversation message is sent.
  • an embodiment of the present application provides an electronic device, including: a touch screen, a communication module, one or more processors, one or more memories, and one or more computer programs; wherein, the processor and the communication module, The touch screen and the memory are both coupled, and the above-mentioned one or more computer programs are stored in the memory.
  • the processor executes the one or more computer programs stored in the memory to make the electronic device execute any of the above-mentioned computer programs. The sending method of the conversation message described above.
  • an embodiment of the present application provides a computer storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the method for sending a dialog message as described in any one of the first aspect.
  • embodiments of the present application provide a computer program product, which when the computer program product runs on an electronic device, causes the electronic device to execute the method for sending a dialog message as described in any one of the first aspect.
  • the electronic equipment described in the third aspect, the computer storage medium described in the fourth aspect, and the computer program product described in the fifth aspect provided above are all used to execute the corresponding methods provided above.
  • the beneficial effects that can be achieved please refer to the beneficial effects in the corresponding method provided above, which will not be repeated here.
  • FIG. 1 is a first structural diagram of an electronic device according to an embodiment of the application
  • FIG. 2 is a schematic flowchart of a method for sending a dialog message provided by an embodiment of the application
  • FIG. 3 is a schematic diagram 1 of a scenario of a method for sending a dialog message provided by an embodiment of the application;
  • FIG. 4 is a schematic diagram of a second scenario of a method for sending a dialog message provided by an embodiment of the application
  • FIG. 5 is a schematic diagram three of a scenario of a method for sending a dialog message provided by an embodiment of the application
  • FIG. 6 is a fourth schematic diagram of a scenario of a method for sending a dialog message provided by an embodiment of this application.
  • FIG. 7 is a schematic diagram 5 of a scenario of a method for sending a dialog message provided by an embodiment of this application.
  • FIG. 8 is a sixth scenario diagram of a method for sending a dialog message according to an embodiment of the application.
  • FIG. 9 is a schematic diagram 7 of a method for sending a dialog message according to an embodiment of the application.
  • FIG. 10 is a schematic diagram eight of a scenario of a method for sending a dialog message provided by an embodiment of this application.
  • FIG. 11 is a schematic diagram 9 of a scenario of a method for sending a dialog message provided by an embodiment of the application.
  • FIG. 12 is a schematic diagram ten of a scenario of a method for sending a dialog message provided by an embodiment of this application;
  • FIG. 13 is a schematic eleventh scenario of a method for sending a dialog message provided by an embodiment of this application.
  • FIG. 14 is a schematic structural diagram of an operating system in an electronic device provided by an embodiment of this application.
  • FIG. 15 is a second structural diagram of an electronic device provided by an embodiment of this application.
  • the method for sending dialog messages can be applied to mobile phones, tablet computers, notebook computers, ultra-mobile personal computers (UMPC), handheld computers, netbooks, and personal digital assistants.
  • Electronic devices such as (personal digital assistant, PDA), wearable electronic devices, virtual reality devices, etc., are not limited in the embodiments of the present application.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100.
  • the electronic 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 structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, 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 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 (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • 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 electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic 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 can receive input from the battery 142 and/or the charging management module 140, and supply 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 be used to monitor performance parameters such as battery capacity, battery cycle times, battery charging voltage, battery discharging voltage, and battery health status (such as leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, 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 electronic 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 electronic 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 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include one or more filters, switches, power amplifiers, low noise amplifiers (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering and amplifying the received electromagnetic waves, and then transmitting them 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. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • 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 electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating one or more communication processing modules.
  • 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 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
  • the antenna 1 of the electronic 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 electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies 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 electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt 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 electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the electronic 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 transfers 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 projects it 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 transmits 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.
  • the electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
  • 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 electronic device 100 selects the 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 electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent cognition of the electronic device 100, 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, to expand the storage capacity of the electronic 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 one or more computer programs, and the one or more computer programs include instructions.
  • the processor 110 can run the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 100 to execute the methods for intelligently recommending contacts provided in some embodiments of the present application, as well as various functional applications and data processing.
  • the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more application programs (such as a gallery, contacts, etc.), etc.
  • the data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 101.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, universal flash storage (UFS), etc.
  • the processor 110 executes the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor to cause the electronic device 100 to execute the smart device provided in the embodiments of the present application. Recommended number method, as well as various functional applications and data processing.
  • the electronic 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 a “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic 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 electronic 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 approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with one or more microphones 170C.
  • the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals.
  • the electronic device 100 can 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 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 light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • 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 light sensor 180G a fingerprint sensor 180H
  • a temperature sensor 180J a temperature sensor 180J
  • a touch sensor 180K a touch sensor 180K
  • an ambient light sensor 180L bone conduction sensor 180M
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic 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 electronic device 100.
  • the electronic 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 electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • chat messages also called conversation messages
  • chat applications such as SMS APP, WeChat APP, and Weibo APP can be installed on the mobile phone.
  • the user can select the corresponding contact and enter the chat message that needs to be sent to the contact.
  • the mobile phone can send the chat message input by the user this time to the electronic device of the contact selected by the user through the mobile communication module 150 or the wireless communication module 160.
  • the mobile phone before user A uses the chat application on his mobile phone to send a chat message to contact B, the mobile phone can obtain the intimacy level between user A and contact B. For example, when user A and contact B are family relationships, the closeness level between user A and contact B is high; when user A and contact B are friends, the closeness between user A and contact B The level is intermediate; when user A and contact B are colleagues, the intimacy level between user A and contact B is low.
  • the mobile phone can determine whether the chat message sent by user A this time contains private content according to the intimacy level between user A and contact B. For example, the chat message sent by user A this time contains the ID number. If the intimacy level between user A and contact B is high, it means that the security risk of user A sending ID number to contact B is small, and the mobile phone It can be determined that the chat message does not contain private content. Correspondingly, if the intimacy level between the user A and the contact B is low, indicating that the security risk of the user A sending the ID number to the contact B is relatively high, the mobile phone can determine that the chat message contains private content.
  • the mobile phone can prompt the user to choose whether to continue to send the chat message before sending the chat message to contact B, so as to avoid user A's chat that contains private content by mistake
  • the message is sent to a contact with a lower level of intimacy, causing security issues such as leakage of user privacy.
  • the mobile phone can also perform coding, blurring, and mosaic processing on the privacy content in the chat message before sending it to contact B. The embodiment of the present application does not impose any restriction on this.
  • the mobile phone before user A uses a mobile phone to send a chat message to a contact (for example, contact B above), the mobile phone can determine the contact person according to the degree of intimacy between user A and contact B Does B have the authority to read the chat messages sent by user A this time? If the content of the chat message is user A's privacy to contact B, the mobile phone can remind user A of the security risk of sending the chat message, thereby preventing user A from sending chat messages containing privacy to unrelated contacts , To prevent user privacy from being leaked and improve the security of electronic equipment.
  • a method for sending a dialog message provided by an embodiment of the present application will be specifically introduced below with reference to the accompanying drawings.
  • a mobile phone is used as an example of the electronic device 100.
  • FIG. 2 is a schematic flowchart of a method for sending a dialog message according to an embodiment of the application. As shown in Figure 2, the method for sending the conversation message may include:
  • the mobile phone displays a chat interface between the user and the first contact, and the chat interface includes an input box and a send button for chat messages.
  • the chat application may be an application with a chat function, such as a short message APP and a WeChat APP. Take the WeChat APP as an example. After the user Jack opens the WeChat APP in the mobile phone, he can open a chat interface (also called a dialogue interface) of a certain contact (for example, contact Sam) in the WeChat APP.
  • a chat interface also called a dialogue interface
  • the mobile phone can display the chat interface 301 of the contact Sam in the WeChat APP.
  • the chat interface 301 includes a chat message input box 302, a chat message sending button 303, and a chat message display area 304.
  • the input box 302 is used to receive the chat message that needs to be sent this time input by the user Jack.
  • the send button 303 is used to instruct the mobile phone to send the chat message in the input box 302 to the corresponding contact Sam.
  • the display area 304 is used to display the chat messages sent between the user Jack and the contact Sam.
  • the mobile phone receives the chat message input by the user in the chat interface.
  • the user Jack can use an input method application or a stylus to input the chat message sent to the contact Sam this time into the input box 302.
  • the user can also use voice and other methods to input the chat message sent to contact Sam this time.
  • the chat message may include one or more of text, numbers, letters, symbols, audio, pictures, or videos, which is not limited in the embodiment of the present application.
  • the mobile phone can receive a chat message 401 input by the user Jack in the input box 302, and the chat message 401 is "Come to my house for dinner in the afternoon, Building 203, Happy Community". Furthermore, the user Jack can click the send button 303 in the chat interface 301 to instruct the mobile phone to send the chat message 401 to the contact Sam. After the mobile phone detects that the user has clicked the send button 303 in the chat interface 301, the following steps S203-S206 can be continued. Of course, the user can also select the send button 303 in the chat interface 301 by voice or other means. After detecting that the user selects the send button 303, the mobile phone can continue to perform the following steps S203-S206.
  • the mobile phone obtains the intimacy level between the user and the first contact.
  • the mobile phone may pre-mark the intimacy level between the user Jack and each contact in the WeChat APP.
  • the mobile phone can preset the intimacy level, including four intimacy levels descending A, B, C, and D in sequence.
  • the intimacy level is A, it indicates that the intimacy between the user Jack and the corresponding contact is the highest; when the intimacy level is D, it indicates that the intimacy between the user Jack and the corresponding contact is the lowest.
  • the user can manually set groups or tags for each contact in the WeChat APP.
  • the user Jack sets the label of the WeChat contact Sam to "spouse", then the mobile phone can determine the highest level of intimacy between the user Jack and the contact Sam according to the label: level A.
  • level A For another example, when the contact Sam is in the group named "family”, the mobile phone can mark the intimacy level between the user Jack and the contact Sam as A, indicating that the intimacy between the user Jack and the contact Sam is very high .
  • the contact Sam is in the group named "Stranger”
  • the mobile phone can mark the intimacy level between the user Jack and the contact Sam as D, indicating that the intimacy between the user Jack and the contact Sam is low.
  • the mobile phone may default to the intimacy level between the user Jack and the contact Sam as D, which is a lower intimacy.
  • the mobile phone can also automatically recognize the intimacy level between the user Jack and each contact in the WeChat APP. For example, the mobile phone can count the chat frequency between the user Jack and each contact in the WeChat APP in the recent period of time. If the chat frequency between the user Jack and the contact Sam is greater than the first preset value, the phone can mark the intimacy level between the user Jack and the contact Sam as level A; if the chat frequency between the user Jack and the contact Sam Is greater than the second preset value and less than the first preset value (the first preset value is greater than the second preset value), the mobile phone can mark the intimacy level between the user Jack and the contact Sam as B; If the chat frequency between contact Sam is less than the second preset value, the mobile phone can mark the intimacy level between user Jack and contact Sam as C level.
  • the mobile phone can also identify the chat content between the user Jack and each contact in the WeChat APP in the most recent period of time, and furthermore, the mobile phone can identify the intimacy level between the user Jack and each contact based on the chat content. There are no restrictions.
  • the mobile phone can also regularly update the intimacy level between the user Jack and each contact in the chat application.
  • the mobile phone can monitor the chat frequency or content between the user Jack and each contact in the WeChat APP over a period of time.
  • the intimacy level between user Jack and contact Sam is C level, when it is detected that the chat frequency between user Jack and contact Sam in the last month is greater than the second preset value and less than the first preset value Later, it is explained that the intimacy between the user Jack and the contact Sam has increased, and the mobile phone can update the intimacy level between the user Jack and the contact Sam to a higher level of intimacy B.
  • the mobile phone can monitor the chat content between the user Jack and each contact in the WeChat APP for a period of time, and there is a corresponding relationship between different chat content and different intimacy levels.
  • the mobile phone can update the intimacy level between the user Jack and the contact Sam to A-level, which is not limited in the embodiment of the application. .
  • the mobile phone may also record the intimacy level between the user Jack and each contact in the contact APP in the contacts APP (also referred to as the address book APP).
  • the contact APP stores basic information of the contact "Zhang San".
  • the basic information includes "Zhang San”'s work phone number, personal phone number, address, and group information.
  • the basic information of the contact "Zhang San” also records the social information of "Zhang San”.
  • the account of "Zhang San" in the WeChat APP is "Sam” 601, that is, contact "Zhang San” in the People APP corresponds to "Sam” in the WeChat APP.
  • the basic information of the contact "Zhang San” also records that the intimacy level 602 of the user Jack and "Zhang San” is B level.
  • the mobile phone can call the contact APP to query that the contact corresponding to the WeChat contact Sam in the contact APP is "Zhang San". Since the intimacy level 602 of the user Jack and the contact "Zhang San" is recorded in the contact APP as B level, the mobile phone can determine that the intimacy level between the user Jack and the contact Sam in the WeChat APP is also B level.
  • the mobile phone may also obtain the intimacy level between the user Jack and the contact Sam after detecting that the user opens the chat interface 301 of the contact Sam.
  • the mobile phone may also obtain the intimacy level between the user Jack and the contact Sam during the process of receiving the user's input of this chat message, and this embodiment of the application does not impose any limitation on this.
  • the mobile phone can default to the lowest level of intimacy between the user Jack and the first contact D at this time.
  • the mobile phone may obtain the intimacy level between the user Jack and each contact in the group, and use the lowest intimacy level as the intimacy level between the user Jack and the first contact this time.
  • the mobile phone may also send a request to the server to obtain the intimacy level between the user Jack and the contact Sam from the server, and this embodiment of the application does not impose any restriction on this. It should be noted that in the above embodiment, the mobile phone pre-divided the intimacy level into four levels A, B, C, and D for example. It is understandable that the number and specific names of the above-mentioned intimacy levels are not limited in the embodiments of the present application.
  • the mobile phone marks the privacy content in the chat message according to the intimacy level between the user and the first contact.
  • the definition of private content can be dynamically changed according to the intimacy level between the two parties participating in the chat. Take the information of the home address of the user Jack as an example. If the intimacy level between the user Jack and the contact Sam who is chatting is very high, indicating that the user Jack and the contact Sam are relatively close, then when Jack's home address appears in the chat message It does not mean that the privacy of user Jack has been leaked. At this time, the mobile phone can determine that Jack's home address appearing in the chat message does not belong to private content. Correspondingly, if the intimacy level between the user Jack and the contact Sam who is chatting is low, then the user Jack may leak the privacy of the user Jack when sending his home address to the contact Sam. At this time, the mobile phone can determine the chat message Jack's home address in the is private content.
  • the mobile phone can preset the correspondence between different intimacy levels and different privacy contents.
  • the intimacy level is divided into four levels: A, B, C, and D from high to low.
  • the higher the level of intimacy the higher the degree of intimacy between the two parties in the chat.
  • the definition condition of is more relaxed; when the level of intimacy is lower, it means that the intimacy of both parties in the chat is lower, and the definition condition of mobile phone in defining the privacy content of chat messages is more strict.
  • the phone when the intimacy level is the lowest level D, if the contact information, work unit, home address, hobbies and habits, family member information, ID number, account number of user Jack appear in this chat message Password or private image, the phone can mark this information as private content.
  • the mobile phone When the intimacy level is C, if the contact information, work unit, home address, or hobbies of user Jack appear in this chat message, the mobile phone will not mark this information as private content. However, if the chat message is If user Jack's family member information, ID number, account password or private image appears, the mobile phone can mark these information as private content.
  • the mobile phone When the intimacy level is B, if the contact information, work unit, home address, hobbies and habits, family member information or ID number of user Jack appear in this chat message, the mobile phone will not mark these information as private content, but , If user Jack’s account password or private image appears in this chat message, the phone can mark this information as private content.
  • the mobile phone When the intimacy level is A, if the user Jack’s contact information, work unit, home address, hobbies and habits, family member information, ID number, account password or private image appear in this chat message, the mobile phone will not send these information Mark as private content.
  • the user can also manually set the correspondence between different intimacy levels and different privacy content in the mobile phone, that is, set to open different privacy permissions to contacts of different intimacy levels, and this embodiment of the application does not impose any restriction on this.
  • the chat message 401 is "Come to my house for dinner in the afternoon, Building 203, Happy Community".
  • the mobile phone can use algorithms such as semantic analysis to divide the chat message 401 into one or more information units (also called sensitive information units). For example, the mobile phone may regard each sentence in the chat message 401 as an information unit according to punctuation. For another example, the mobile phone can divide the chat message 401 into multiple information units such as time, location, and person based on semantics and grammar. Each information unit in the chat message is an expression carrier of a complete information.
  • the mobile phone can identify whether each information unit in the chat message 401 is private content according to the intimacy level between the user Jack and the contact Sam. For example, if the intimacy level between the user Jack and the contact Sam is level D, since the information unit 3 in the chat message 401 (ie "Building No. 203 in Happy Community") is the home address of the user Jack, the mobile phone can The information unit 3 in the chat message 401 is marked as private content, while the information unit 1 and the information unit 2 are not private content. In other words, the three information units in the chat message 401 include one piece of private content.
  • the mobile phone can use a preset image processing algorithm to divide the picture 1001 into one or more information units.
  • the picture 1001 includes information units 1002 to 1005.
  • the information unit 1002 reflects the facial information of the user Jack
  • the information unit 1003 reflects the facial information of other users
  • the information unit 1004 reflects the car information of the user Jack
  • the information unit 1005 reflects the address information of the user Jack.
  • the mobile phone can recognize whether each information unit in the picture 1001 is private content according to the intimacy level between the user Jack and the contact Sam. For example, if the intimacy level between the user Jack and the contact Sam is A, indicating that the relationship between the user Jack and the contact Sam is very good, the mobile phone can determine the above information unit 1002 to information unit 1005 as normal information, without marking Private content. In other words, none of the four information units in the picture 1001 are private content.
  • the phone can judge the longitude and latitude of the group photo based on background vegetation, sunlight characteristics, starry sky location, weather characteristics, etc. The information is then compared with the street view information provided by Google Street View or Tencent Street View to determine the location of the user Jack in the group photo, thereby predicting the area where the user often activities. At this time, the mobile phone can also mark the group photo image as private content.
  • the mobile phone may also send a request to the server to request the server to mark the privacy content in the chat message according to the intimacy level between the user Jack and the contact Sam, and the embodiment of the application does not impose any restriction on this.
  • the mobile phone can dynamically determine whether the chat message sent each time includes private content and how much private content is specifically included according to the intimacy of the two parties participating in the chat.
  • the method of defining privacy content is determined based on the intimacy of both parties in the chat, so that the mobile phone can more accurately determine whether each chat message sent will leak the sender’s user privacy, causing security risks such as privacy leakage.
  • the mobile phone may prompt the user that there is a security risk in this sending process.
  • the mobile phone can determine how much private content is included in the chat message sent by user Jack to contact Sam this time. If the proportion of private content in the chat messages sent this time is greater than the threshold, it means that the chat messages sent by the user Jack to the contact Sam this time may leak Jack’s privacy and the security risk is high. Therefore, the mobile phone is in contact with Before the person Sam sends the chat message, he can remind the user that there is a security risk in the sending process.
  • the picture 1001 includes 4 information units (that is, the information unit 1002 to the information unit 1005). If the above threshold is 50%, when the above 4 information units contain When there are more than two information units marked as private content, it means that the proportion of private content in this chat message is greater than the threshold.
  • the mobile phone can display a prompt box 1101 before sending the above picture 1001 to the contact Sam.
  • the prompt box 1101 can prompt the user that the chat message sent this time contains a lot of privacy, and ask the user whether Continue to send the chat message.
  • the mobile phone can display the prompt box 1101 when it detects that the user clicks the send button in the chat interface; or the mobile phone can also display the prompt box 1101 when the user enters the chat message this time. There are no restrictions.
  • the mobile phone can continue to send the above picture 1001 to the contact Sam.
  • the mobile phone can discard the picture 1001 sent to the contact Sam this time, and give up sending this chat message.
  • the above threshold can be set to 0, that is to say, once the chat message sent this time contains marked private content, indicating that the content in the chat message does not match the intimacy of both parties in the chat, the mobile phone can prompt the user There are security risks in this sending process.
  • step S206 if the proportion of private content in the chat message sent this time is less than or equal to the above threshold, it indicates that the private content contained in the chat message sent by user Jack to contact Sam this time Less, the security risk of this sending process is smaller, therefore, the mobile phone can normally send the chat message input by the user Jack to the contact Sam.
  • the chat message 401 in the chat message 401, Jack's home address "Building No. 203, Happy Community" is marked as private content.
  • the proportion of this private content in the chat message 401 is less than the threshold, in order to avoid user privacy leakage, as shown in Figure 12, when the mobile phone sends the chat message 401 to the contact Sam, the chat message 401 can be marked
  • the private content of is subjected to processing such as coding, blurring or covering, so that the marked private content will not be publicly displayed in the display area 304 of the chat message. In this way, even if the contact Sam receives the chat message 401 sent by the user Jack, Jack's home address in the chat message 401 will not be disclosed, thereby preventing the user's privacy from being leaked, and improving the information security during the chat.
  • the recipient of the chat message (for example, the mobile phone of the aforementioned contact Sam) can also determine whether the chat message contains private content according to the intimacy of the two parties in the chat, and then according to the private content in the current chat message The ratio of determines whether to receive or display the chat message.
  • the mobile phone can obtain the intimacy level between the user Sam and the contact Jack.
  • the intimacy level between user Sam and contact Jack marks the privacy content in the chat message received this time. If the proportion of the marked privacy content in the chat messages is greater than the threshold, it means that the chat message sent by the contact Jack contains a lot of user privacy, and the phone can discard the chat message received this time. Or, as shown in FIG.
  • the chat message 1302 can be marked Encoding, blurring, or adding watermarks to the privacy content of the mobile phone enables the mobile phone to screen out the content related to the privacy of the contact when displaying the chat message sent by the contact, and improves the security of information interaction in the chat scene.
  • the mobile phone can determine whether the recipient of the chat message has the authority to read the chat message sent by the sender this time according to the intimacy of both parties in the chat scene. If the content in the chat message does not match the intimacy of both parties in the chat, sending the chat message to the recipient this time is a security risk. Therefore, the mobile phone can remind the user of the security risk of sending the chat message before sending this chat message, thereby avoiding the user from sending a private chat message to irrelevant contacts, preventing user privacy from being leaked, and improving the security of electronic devices .
  • dialog message sending method described in steps S201-S206 can be applied to the operating system shown in FIG. 14.
  • Figure 14 shows a block diagram of the software structure of a mobile phone.
  • the Android system can be divided into four layers, from top to bottom, they are the application layer, the application framework layer, the Android runtime and system library, and the kernel layer. Each layer has clear roles and division of labor. Communication between layers through software interface.
  • the application layer can include a series of application packages.
  • the application package may include APP (application) such as call, contact, camera, gallery, calendar, map, navigation, Bluetooth, music, video, short message, etc.
  • APP application
  • an APP with a chat function (may be called a chat APP) can be installed in the application layer.
  • the chat APP may be an SMS APP, WeChat APP, Facebook APP, etc.
  • the user can add one or more contacts (also called friends) to the chat APP, and receive chat messages from the contacts, or send the chat messages entered this time to the contacts.
  • the application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a contact service and a privacy management module.
  • the contact service can be used to manage contacts in the address book, such as creating new contacts in the address book, deleting contacts, or modifying various information in the contacts.
  • the contact service can also be used to manage the intimacy level between the user and each contact.
  • the contact service can mark the intimacy level between the user and the contact Sam as A, indicating that the user and the contact Sam The degree of intimacy is high.
  • the contact service can obtain information such as chat content or chat time between the user and each contact from the chat APP, and then automatically set the intimacy between the user and each contact based on this information.
  • the aforementioned privacy management module can obtain the chat message entered by the user this time from the chat APP, and can also obtain the intimacy level between the user and the contact from the contact service. Furthermore, before the user sends a chat message to a contact (for example, Sam), the privacy management module may mark the privacy content in the chat message according to the intimacy level between the user and the contact Sam. Exemplarily, the higher the level of intimacy, the higher the degree of intimacy between the two parties in the chat, and the more relaxed definition conditions of the privacy management module when defining the privacy content in the chat message; the lower the level of intimacy, the greater the degree of intimacy between the chatting parties Low, the privacy management module defines more stringent conditions when defining privacy content in chat messages.
  • the chat APP when the user chats with a certain contact (for example, Sam) in the chat APP, the chat APP can call the contact service to obtain the intimacy level between the user and the contact Sam. Furthermore, after the chat APP receives the to-be-sent chat message input by the user this time, the chat APP can call the privacy management module to determine the privacy content in the chat message. For example, the privacy management module may obtain the intimacy level between the user and the contact Sam from the chat APP, and then determine which content in the current chat message is private content according to the intimacy level. If the proportion of private content in the entire chat message is higher than the threshold, it means that the chat message sent to the contact Sam this time is likely to leak the user's privacy, and the security risk is high. Then, the chat APP can prompt the user that there is a security risk in the sending process before sending the chat message, so as to prevent the user from sending a private chat message to irrelevant contacts and prevent the user's privacy from being leaked.
  • the chat APP can prompt the user that there is a
  • the chat APP can also request the corresponding server to obtain the intimacy level between the user and the contact Sam, and then determine the intimacy level in this chat message according to the intimacy level.
  • the embodiments of this application do not impose any restrictions on what content is private content.
  • the application framework layer can also include an activity manager, window manager, content provider, view system, resource manager, notification manager, etc.
  • the activity manager can be used to manage the life cycle of each application.
  • Applications usually run in the operating system in the form of activity.
  • the activity manager can be used to manage the running state of each activity.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, 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 video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text and controls that display pictures.
  • 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 resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
  • 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 disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify that the download is complete, message reminders, and so on.
  • 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 the application framework layer can 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 realize 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 includes at least a display driver, a camera driver, an audio driver, a sensor driver, etc., which are not limited in the embodiment of the present application.
  • an embodiment of the present application discloses an electronic device, including: a touch screen 1501, the touch screen 1501 includes a touch-sensitive surface 1506 and a display screen 1507; one or more processors 1502; a memory 1503; a communication module 1508 One or more application programs (not shown); and one or more computer programs 1504.
  • the above-mentioned devices may be connected through one or more communication buses 1505.
  • the one or more computer programs 1504 are stored in the aforementioned memory 1503 and configured to be executed by the one or more processors 1502, and the one or more computer programs 1504 include instructions, and the aforementioned instructions can be used to execute the aforementioned The steps S201-S206 in the embodiment should be applied.
  • the foregoing processor 1502 may specifically be the processor 110 shown in FIG. 1
  • the foregoing memory 1503 may specifically be the internal memory 121 and/or the external memory 120 shown in FIG. 1
  • the foregoing display screen 1507 may specifically be FIG.
  • the communication module 1508 may be the mobile communication module 150 and/or the wireless communication module 160 shown in FIG. 1
  • the touch-sensitive surface 1506 may be the touch sensor in the sensor module 180 shown in FIG.
  • the sensor is 180K, and the embodiment of the present application does not impose any limitation on this.
  • the functional units in the various embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • 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.
  • a computer readable storage medium includes a number of instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application.
  • the aforementioned storage media include: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Technology Law (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiments of the present application provide a dialogue message sending method and an electronic device, relating to the field of terminal technology, being able to prevent a user from sending a chat message containing the user's private content to an irrelevant contact, thereby preventing the user's private content from being leaked, and improving the security of an electronic device. Said method comprises: an electronic device displaying a dialogue interface with a first contact; the electronic device receiving a first dialogue message inputted by a user in the dialogue interface; the electronic device identifying that the first dialogue message contains private content; the private content being associated with a first level of affinity, the first level of affinity being a level of affinity between the first contact and the user; and the electronic device prompting the user of the security risk of sending the first dialogue message to the first contact.

Description

一种对话消息的发送方法及电子设备Method and electronic device for sending dialogue messages
本申请要求在2019年4月10日提交中国国家知识产权局、申请号为201910286091.2、发明名称为“一种对话消息的发送方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office of China, the application number is 201910286091.2, and the invention title is "a method and electronic device for sending dialogue messages" on April 10, 2019, the entire content of which is by reference Incorporated in this application.
技术领域Technical field
本申请实施例涉及终端技术领域,尤其涉及一种对话消息的发送方法及电子设备。The embodiments of the present application relate to the field of terminal technologies, and in particular, to a method for sending a dialog message and an electronic device.
背景技术Background technique
一般,用户的电子设备中均安装有各类聊天应用(APP),例如,短信APP、微信APP以及微博APP等。用户可使用这些聊天应用向相应的联系人或群组发送聊天消息,从而与相应的联系人进行交流和互动。Generally, various types of chat applications (APP) are installed in users' electronic devices, such as SMS APP, WeChat APP, and Weibo APP. Users can use these chat applications to send chat messages to corresponding contacts or groups to communicate and interact with the corresponding contacts.
以用户在手机中安装微信APP举例,用户可在微信APP中添加多个联系人或群组。用户可打开某一个联系人或群组的聊天界面与相应的联系人发送聊天消息。该聊天消息可以包括文字、图片或视频等内容。聊天消息中的内容大多是涉及用户隐私的信息,例如,用户的私人照片、住址、联系方式或家庭信息等。一旦用户错将涉及用户隐私的聊天消息误发给不相关的联系人或群组,则会造成用户隐私的泄露,增加了手机的安全风险。Taking the example of a user installing a WeChat APP in a mobile phone, the user can add multiple contacts or groups in the WeChat APP. The user can open the chat interface of a contact or group to send chat messages with the corresponding contact. The chat message may include content such as text, pictures, or videos. The content of the chat messages is mostly information related to the privacy of the user, such as the user's private photo, address, contact information, or family information. Once a user mistakenly sends a chat message involving user privacy to an unrelated contact or group, it will cause the leakage of user privacy and increase the security risk of the mobile phone.
发明内容Summary of the invention
本申请实施例提供一种对话消息的发送方法及电子设备,可避免用户将包含用户隐私的聊天消息发送给不相关的联系人,从而防止用户隐私被泄露,提高电子设备的安全性。The embodiments of the present application provide a method and electronic device for sending dialog messages, which can prevent users from sending chat messages containing user privacy to unrelated contacts, thereby preventing user privacy from being leaked and improving the security of electronic devices.
为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the foregoing objectives, the following technical solutions are adopted in the embodiments of this application:
第一方面,本申请实施例提供一种对话消息的发送方法,包括:电子设备显示与第一联系人的对话界面;进而,电子设备可接收用户在对话界面中输入的第一对话消息;电子设备可识别第一对话消息中是否包含与第一亲密等级关联的隐私内容,第一亲密等级是指第一联系人与用户之间的亲密等级;如果包含隐私内容,说明第一对话消息中存在超出用户与第一联系人亲密程度的内容,那么,在向第一联系人发送第一对话消息之前,电子设备可提示用户向第一联系人发送第一对话消息的安全风险。In a first aspect, an embodiment of the present application provides a method for sending a dialog message, including: an electronic device displays a dialog interface with a first contact; further, the electronic device can receive the first dialog message input by the user in the dialog interface; electronic The device can identify whether the first conversation message contains private content associated with the first level of intimacy. The first level of intimacy refers to the level of intimacy between the first contact and the user; if it contains private content, it means that the first conversation message exists If the content exceeds the degree of intimacy between the user and the first contact, then, before sending the first conversation message to the first contact, the electronic device may prompt the user to send the first conversation message to the first contact as a security risk.
也就是说,手机在向联系人发送第一对话消息前,可根据用户与该联系人之间的亲密程度,确定该联系人是否有权限阅读本次用户输入的对话消息。如果对话消息中的内容对联系人而言为用户的隐私内容,则手机可提醒用户发送该对话消息的安全风险,从而避免用户将包含隐私的对话消息发送给不相关的联系人,防止用户隐私被泄露,提高电子设备的安全性。That is, before the mobile phone sends the first conversation message to the contact, it can determine whether the contact has the authority to read the conversation message entered by the user this time according to the intimacy between the user and the contact. If the content in the conversation message is the privacy of the user to the contact, the mobile phone can remind the user of the security risk of sending the conversation message, so as to prevent the user from sending the private conversation message to irrelevant contacts and prevent user privacy Is leaked, improving the security of electronic equipment.
在一种可能的实现方式中,电子设备识别第一对话消息中包含隐私内容,包括:电子设备识别第一对话消息中包含的一个或多个敏感信息单元;进而,电子设备可根据第一亲密等级确定该敏感信息单元是否为隐私内容。也就是说,对对话消息中隐私内容的界定可以根据参与聊天的双方之间的亲密等级动态变化。当亲密等级越高时说明聊天双方的亲密程度越高,电子设备在界定对话消息中隐私内容时的界定条件更为宽松;当亲密等级越低时说明聊天双方的亲密程度越低,电子设备在界定对话消息中隐私内容时的界定条件更为严格。In a possible implementation, the electronic device recognizing that the first conversation message contains private content includes: the electronic device recognizing one or more sensitive information units contained in the first conversation message; The level determines whether the sensitive information unit is private content. In other words, the definition of privacy content in the conversation message can be dynamically changed according to the intimacy level between the two parties participating in the chat. The higher the level of intimacy, the higher the degree of intimacy between the two parties in the chat, and the looser definition of the privacy content of the electronic device in the dialogue message; the lower the level of intimacy, the lower the degree of intimacy between the two parties in the chat. The conditions for defining privacy content in conversation messages are more stringent.
示例性的,电子设备根据第一亲密等级确定该敏感信息单元是否为隐私内容,具体包括:当第一亲密等级为第一级别(即亲密程度较高)时,电子设备确定该敏感单元不是隐私内容; 当第一亲密等级为第二级别(即亲密程度较低)时,电子设备确定该敏感单元是隐私内容;其中,在第一级别下用户与第一联系人的亲密程度,高于在第二级别下用户与第一联系人的亲密程度。Exemplarily, the electronic device determines whether the sensitive information unit is private content according to the first intimacy level, which specifically includes: when the first intimacy level is the first level (that is, the degree of intimacy is high), the electronic device determines that the sensitive unit is not private Content; When the first level of intimacy is at the second level (that is, the level of intimacy is low), the electronic device determines that the sensitive unit is private content; among them, the user’s degree of intimacy with the first contact at the first level is higher than at The degree of intimacy between the user and the first contact in the second level.
在一种可能的实现方式中,在电子设备提示用户向第一联系人发送第一对话消息的安全风险之前,还包括:电子设备计算隐私内容在第一对话消息中所占的比例;其中,电子设备提示用户向第一联系人发送第一对话消息的安全风险,包括:当隐私内容在第一对话消息中所占的比例大于阈值时,说明本次向第一联系人发送第一对话消息的安全风险较大,则电子设备可提示用户本次发送操作的安全风险。In a possible implementation manner, before the electronic device prompts the user to send the first conversation message to the first contact about the security risk, the method further includes: the electronic device calculates the proportion of the private content in the first conversation message; wherein, The electronic device reminds the user of the security risks of sending the first conversation message to the first contact, including: when the proportion of private content in the first conversation message is greater than the threshold, it indicates that the first conversation message is sent to the first contact this time If the security risk is greater, the electronic device can prompt the user of the security risk of the sending operation.
示例性的,上述阈值可以根据用户与第一联系人之间的亲密等级进行动态设置。例如,当第一亲密等级为第一级别时,说明用户与第一联系人较为亲密,上述阈值可设置为取值较大的第一取值;也就是说,当隐私内容在第一对话消息中的占比较高时,才会提示用户存在隐私泄露风险;而当第一亲密等级为第二级别时,说明用户与第一联系人不是很亲密,上述阈值可设置为取值为较小的第二取值;也就是说,当隐私内容在第一对话消息中的占比较低时,便会提示用户存在隐私泄露风险。Exemplarily, the above threshold may be dynamically set according to the intimacy level between the user and the first contact. For example, when the first intimacy level is the first level, it means that the user is relatively close to the first contact, and the above threshold can be set to the first value with a larger value; that is, when the private content is in the first conversation message Only when the proportion of in is high, the user will be notified that there is a risk of privacy leakage; when the first intimacy level is the second level, it means that the user is not very close to the first contact. The above threshold can be set to a smaller value The second value; that is, when the private content in the first conversation message is relatively low, it will prompt the user that there is a risk of privacy leakage.
在一种可能的实现方式中,电子设备提示用户向第一联系人发送第一对话消息的安全风险,包括:电子设备在该对话界面中显示提示消息,该提示消息用于提示用户向第一联系人发送第一对话消息的安全风险。当然,电子设备也可以通过语音、动画或震动等等方式提示用户向第一联系人发送第一对话消息的安全风险。In a possible implementation manner, the electronic device prompting the user to send the first conversation message to the first contact of the security risk includes: the electronic device displays a prompt message in the conversation interface, and the prompt message is used to prompt the user to send the first conversation message to the first contact. The security risk of the contact sending the first conversation message. Of course, the electronic device may also remind the user of the security risk of sending the first conversation message to the first contact by means of voice, animation, or vibration.
在一种可能的实现方式中,上述提示消息中包括第一提示框和第二提示框;第一提示框用于指示继续发送第一对话消息,第二提示框用于指示取消发送第一对话消息;在电子设备在对话界面中显示上述提示消息之后,还包括:若检测到用户根据第一提示框的操作,说明用户在获知安全风险的情况下仍要求发送第一对话消息,则电子设备可响应该操作向第一联系人发送第一对话消息;若检测到用户根据第二提示框的操作,则电子设备可取消向第一联系人发送第一对话消息。In a possible implementation, the above prompt message includes a first prompt box and a second prompt box; the first prompt box is used to instruct to continue sending the first dialog message, and the second prompt box is used to instruct to cancel sending the first dialog. Message; after the electronic device displays the above prompt message in the dialog interface, it also includes: if it detects that the user operates according to the first prompt box, indicating that the user is still required to send the first dialog message when the security risk is known, the electronic device The first dialog message can be sent to the first contact in response to the operation; if the user's operation according to the second prompt box is detected, the electronic device can cancel sending the first dialog message to the first contact.
在一种可能的实现方式中,在电子设备向第一联系人发送第一对话消息之前,还包括:电子设备对第一对话消息中的隐私内容进行遮盖处理,该遮盖处理包括虚化、打马赛克或生成水印中的一项或多项,使得电子设备在显示联系人发来的对话消息时能够屏蔽掉涉及联系人隐私的内容,提高聊天场景下信息交互的安全性。In a possible implementation manner, before the electronic device sends the first conversation message to the first contact, it further includes: the electronic device masks the private content in the first conversation message, and the masking process includes blurring and printing. Mosaic or generate one or more of the watermarks, so that the electronic device can shield the content related to the privacy of the contact when displaying the dialogue message sent by the contact, and improve the security of information interaction in the chat scene.
在一种可能的实现方式中,当第一联系人的标签为伴侣时,第一亲密等级为亲密程度最高的第一级别;或,当第一联系人的标签为家人时,第一亲密等级为亲密程度次之的第二级别;或,当第一联系人的标签为朋友时,第一亲密等级为亲密程度更次之的第三级别;或,当第一联系人的标签为同事时,第一亲密等级为亲密程度最低的第四级别。In a possible implementation, when the label of the first contact is a partner, the first level of intimacy is the first level with the highest degree of intimacy; or, when the label of the first contact is family, the first level of intimacy The second level of intimacy is the second next; or, when the label of the first contact is a friend, the first intimacy level is the third next to the degree of intimacy; or, when the label of the first contact is a colleague , The first level of intimacy is the fourth level with the lowest degree of intimacy.
也就是说,在第一级别下用户与第一联系人的亲密程度,高于在第二级别下用户与第一联系人的亲密程度;在第二级别下用户与第一联系人的亲密程度,高于在第三级别下用户与第一联系人的亲密程度;在第三级别下用户与第一联系人的亲密程度,高于在第四级别下用户与第一联系人的亲密程度。In other words, the user’s intimacy with the first contact at the first level is higher than the user’s intimacy with the first contact at the second level; the user’s intimacy with the first contact at the second level , Is higher than the intimacy between the user and the first contact at the third level; the intimacy between the user and the first contact at the third level is higher than the intimacy between the user and the first contact at the fourth level.
在一种可能的实现方式中,上述第一对话消息可以包括文字、音频、数字、字母、符号、图片或视频中的一项或多项。In a possible implementation manner, the foregoing first dialog message may include one or more of text, audio, numbers, letters, symbols, pictures, or videos.
第二方面,本申请实施例提供一种对话消息的发送方法,包括:电子设备显示与第一联系人的对话界面;进而,电子设备可接收用户在对话界面中输入的第一对话消息,并识别第一对话消息中的敏感信息单元,例如用户的住址、电话、证件号码等;在向第一联系人发送 第一对话消息之前,电子设备可确定识别出的敏感信息单元与第一亲密等级(即第一联系人与该用户之间的亲密程度)是否匹配;如果敏感信息单元与第一亲密等级不匹配,说明第一对话消息中存在超出用户与第一联系人亲密程度的内容,则电子设备可提示用户本次向第一联系人发送第一对话消息的安全风险,从而避免用户将包含隐私的对话消息发送给不相关的联系人,提高电子设备的安全性;如果敏感信息单元与第一亲密等级匹配,说明第一对话消息中的内容对第一联系人而言并不算用户隐私,则电子设备可正常向第一联系人发送第一对话消息。In a second aspect, an embodiment of the present application provides a method for sending a dialog message, including: an electronic device displays a dialog interface with a first contact; further, the electronic device can receive the first dialog message input by the user in the dialog interface, and Identify the sensitive information unit in the first conversation message, such as the user's address, phone number, ID number, etc.; before sending the first conversation message to the first contact, the electronic device can determine the identified sensitive information unit and the first intimacy level (That is, whether the degree of intimacy between the first contact and the user) matches; if the sensitive information unit does not match the first degree of intimacy, it means that there is content in the first conversation message that exceeds the degree of intimacy between the user and the first contact, then The electronic device can remind the user of the security risk of sending the first conversation message to the first contact this time, so as to prevent the user from sending a private conversation message to irrelevant contacts and improve the security of the electronic device; if the sensitive information unit is The first intimacy level matches, indicating that the content in the first conversation message is not considered user privacy for the first contact, and the electronic device can normally send the first conversation message to the first contact.
在一种可能的实现方式中,当第一亲密等级为亲密程度较高的第一级别时,第一亲密等级与第一类敏感信息匹配;当第一亲密等级为密程度较低的第二级别时,第一亲密等级与第二类敏感信息匹配;其中,第一类敏感信息为第二类敏感信息中的子集。也就是说,当用户与第一联系人越亲密时,允许向第一联系人发送的敏感信息越多,当用户与第一联系人的亲密程度越低时,允许向第一联系人发送的敏感信息越少,从而避免用户将包含隐私的对话消息发送给不相关的联系人,防止用户隐私被泄露,提高电子设备的安全性。In a possible implementation, when the first intimacy level is the first level with higher intimacy, the first intimacy level matches the first type of sensitive information; when the first intimacy level is the second with lower intimacy level When leveling, the first intimacy level matches the second type of sensitive information; among them, the first type of sensitive information is a subset of the second type of sensitive information. That is to say, when the user is more intimate with the first contact, the more sensitive information is allowed to be sent to the first contact, and when the user’s degree of closeness with the first contact is lower, the information sent to the first contact is allowed The less sensitive information is, the less sensitive information can be used to prevent users from sending private conversation messages to irrelevant contacts, the privacy of users is prevented from being leaked, and the security of electronic devices is improved.
在一种可能的实现方式中,电子设备提示用户向第一联系人发送第一对话消息的安全风险,包括:电子设备在对话界面中显示提示消息,该提示消息用于提示用户向第一联系人发送第一对话消息的安全风险。当然,电子设备也可以通过语音、动画或震动等等方式提示用户向第一联系人发送第一对话消息的安全风险。In a possible implementation, the electronic device prompts the user to send the first conversation message to the first contact of the security risk, including: the electronic device displays a prompt message in the conversation interface, and the prompt message is used to prompt the user to contact the first contact. The security risk of a person sending the first conversation message. Of course, the electronic device may also remind the user of the security risk of sending the first conversation message to the first contact by means of voice, animation, or vibration.
在一种可能的实现方式中,上述提示消息中可包括第一提示框和第二提示框;第一提示框用于指示继续发送第一对话消息,第二提示框用于指示取消发送第一对话消息;在电子设备在对话界面中显示提示消息之后,还包括:若检测到用户根据第一提示框的操作,则电子设备向第一联系人发送第一对话消息;若检测到用户根据第二提示框的操作,则电子设备取消向第一联系人发送第一对话消息。In a possible implementation, the above prompt message may include a first prompt box and a second prompt box; the first prompt box is used to instruct to continue sending the first dialog message, and the second prompt box is used to instruct to cancel sending the first dialog message. Dialogue message; after the electronic device displays the prompt message in the dialogue interface, it also includes: if the user is detected according to the first prompt box, the electronic device sends the first dialogue message to the first contact; In the second prompt box, the electronic device cancels sending the first conversation message to the first contact.
在一种可能的实现方式中,在电子设备向第一联系人发送第一对话消息之前,还包括:电子设备对第一对话消息中的敏感信息单元进行遮盖处理,该遮盖处理包括虚化、打马赛克或生成水印中的一项或多项,从而在发送对话消息时屏蔽掉第一对话消息中涉及用户隐私的内容。In a possible implementation manner, before the electronic device sends the first conversation message to the first contact, the method further includes: the electronic device performs masking processing on the sensitive information unit in the first conversation message, and the masking processing includes blurring, Mosaic or generate one or more of the watermarks, thereby shielding the content related to user privacy in the first conversation message when the conversation message is sent.
第三方面,本申请实施例提供一种电子设备,包括:触摸屏、通信模块、一个或多个处理器、一个或多个存储器、以及一个或多个计算机程序;其中,处理器与通信模块、触摸屏和存储器均耦合,上述一个或多个计算机程序被存储在存储器中,当电子设备运行时,该处理器执行该存储器存储的一个或多个计算机程序,以使电子设备执行上述任一项所述的对话消息的发送方法。In a third aspect, an embodiment of the present application provides an electronic device, including: a touch screen, a communication module, one or more processors, one or more memories, and one or more computer programs; wherein, the processor and the communication module, The touch screen and the memory are both coupled, and the above-mentioned one or more computer programs are stored in the memory. When the electronic device is running, the processor executes the one or more computer programs stored in the memory to make the electronic device execute any of the above-mentioned computer programs. The sending method of the conversation message described above.
第四方面,本申请实施例提供一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如第一方面中任一项所述的对话消息的发送方法。In a fourth aspect, an embodiment of the present application provides a computer storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the method for sending a dialog message as described in any one of the first aspect.
第五方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行如第一方面中任一项所述的对话消息的发送方法。In a fifth aspect, embodiments of the present application provide a computer program product, which when the computer program product runs on an electronic device, causes the electronic device to execute the method for sending a dialog message as described in any one of the first aspect.
可以理解地,上述提供的第三方面所述的电子设备、第四方面所述的计算机存储介质,以及第五方面所述的计算机程序产品均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Understandably, the electronic equipment described in the third aspect, the computer storage medium described in the fourth aspect, and the computer program product described in the fifth aspect provided above are all used to execute the corresponding methods provided above. For the beneficial effects that can be achieved, please refer to the beneficial effects in the corresponding method provided above, which will not be repeated here.
附图说明Description of the drawings
图1为本申请实施例提供的一种电子设备的结构示意图一;FIG. 1 is a first structural diagram of an electronic device according to an embodiment of the application;
图2为本申请实施例提供的一种对话消息的发送方法的流程示意图;2 is a schematic flowchart of a method for sending a dialog message provided by an embodiment of the application;
图3为本申请实施例提供的一种对话消息的发送方法的场景示意图一;FIG. 3 is a schematic diagram 1 of a scenario of a method for sending a dialog message provided by an embodiment of the application;
图4为本申请实施例提供的一种对话消息的发送方法的场景示意图二;4 is a schematic diagram of a second scenario of a method for sending a dialog message provided by an embodiment of the application;
图5为本申请实施例提供的一种对话消息的发送方法的场景示意图三;FIG. 5 is a schematic diagram three of a scenario of a method for sending a dialog message provided by an embodiment of the application;
图6为本申请实施例提供的一种对话消息的发送方法的场景示意图四;FIG. 6 is a fourth schematic diagram of a scenario of a method for sending a dialog message provided by an embodiment of this application;
图7为本申请实施例提供的一种对话消息的发送方法的场景示意图五;FIG. 7 is a schematic diagram 5 of a scenario of a method for sending a dialog message provided by an embodiment of this application;
图8为本申请实施例提供的一种对话消息的发送方法的场景示意图六;FIG. 8 is a sixth scenario diagram of a method for sending a dialog message according to an embodiment of the application;
图9为本申请实施例提供的一种对话消息的发送方法的场景示意图七;FIG. 9 is a schematic diagram 7 of a method for sending a dialog message according to an embodiment of the application;
图10为本申请实施例提供的一种对话消息的发送方法的场景示意图八;FIG. 10 is a schematic diagram eight of a scenario of a method for sending a dialog message provided by an embodiment of this application;
图11为本申请实施例提供的一种对话消息的发送方法的场景示意图九;FIG. 11 is a schematic diagram 9 of a scenario of a method for sending a dialog message provided by an embodiment of the application;
图12为本申请实施例提供的一种对话消息的发送方法的场景示意图十;12 is a schematic diagram ten of a scenario of a method for sending a dialog message provided by an embodiment of this application;
图13为本申请实施例提供的一种对话消息的发送方法的场景示意图十一;FIG. 13 is a schematic eleventh scenario of a method for sending a dialog message provided by an embodiment of this application;
图14为本申请实施例提供的一种电子设备中操作系统的结构示意图;14 is a schematic structural diagram of an operating system in an electronic device provided by an embodiment of this application;
图15为本申请实施例提供的一种电子设备的结构示意图二。FIG. 15 is a second structural diagram of an electronic device provided by an embodiment of this application.
具体实施方式detailed description
下面将结合附图对本实施例的实施方式进行详细描述。The implementation of this embodiment will be described in detail below with reference to the accompanying drawings.
示例性的,本申请实施例提供的一种对话消息的发送方法可应用于手机、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴电子设备、虚拟现实设备等电子设备,本申请实施例对此不做任何限制。Exemplarily, the method for sending dialog messages provided by the embodiments of the present application can be applied to mobile phones, tablet computers, notebook computers, ultra-mobile personal computers (UMPC), handheld computers, netbooks, and personal digital assistants. Electronic devices such as (personal digital assistant, PDA), wearable electronic devices, virtual reality devices, etc., are not limited in the embodiments of the present application.
示例性的,图1示出了电子设备100的结构示意图。Exemplarily, FIG. 1 shows a schematic structural diagram of an electronic device 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等。The electronic 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.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请实施例另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the embodiments of the present application, the electronic device 100 may include more or fewer components than shown, 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.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, 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. Among them, 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 and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, 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.
在一些实施例中,处理器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)接口等。In some embodiments, 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 (universal asynchronous) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141可接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。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 can receive input from the battery 142 and/or the charging management module 140, and supply power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
电源管理模块141可用于监测电池容量,电池循环次数,电池充电电压,电池放电电压,电池健康状态(例如漏电,阻抗)等性能参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 can be used to monitor performance parameters such as battery capacity, battery cycle times, battery charging voltage, battery discharging voltage, and battery health status (such as leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic 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.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括一个或多个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100. The mobile communication module 150 may include one or more filters, switches, power amplifiers, low noise amplifiers (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering and amplifying the received electromagnetic waves, and then transmitting them 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. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, 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.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, 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. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed to the application processor. 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. In some embodiments, the modem processor may be an independent device. In other embodiments, 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.
无线通信模块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转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic 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 (frequency modulation, FM), near field communication technology (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 one or more communication processing modules. 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 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 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)。In some embodiments, the antenna 1 of the electronic 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 electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technologies 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).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
显示屏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 dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt 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). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic 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.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。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 transfers 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. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits 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. In some embodiments, the electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。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 electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组 (moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information and can continuously learn by itself. The NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic 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.
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备100执行本申请实施例一些实施例中所提供的联系人智能推荐的方法,以及各种功能应用和数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用程序(比如图库、联系人等)等。存储数据区可存储电子设备101使用过程中所创建的数据(比如照片,联系人等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。在另一些实施例中,处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,来使得电子设备100执行本申请实施例中所提供的智能推荐号码的方法,以及各种功能应用和数据处理。The internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions. The processor 110 can run the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 100 to execute the methods for intelligently recommending contacts provided in some embodiments of the present application, as well as various functional applications and data processing. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more application programs (such as a gallery, contacts, etc.), etc. The data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 101. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, universal flash storage (UFS), etc. In other embodiments, the processor 110 executes the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor to cause the electronic device 100 to execute the smart device provided in the embodiments of the present application. Recommended number method, as well as various functional applications and data processing.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic 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.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。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. In some embodiments, 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.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置一个或多个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C. The electronic device 100 may be provided with one or more microphones 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。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.
传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等,本申请实施例对此不做任何限制。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 light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an ambient light sensor 180L, bone conduction sensor 180M, etc. The embodiments of this application do not impose any limitation on this.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。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. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) 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.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。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.
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分离。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 electronic device 100. The electronic 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 electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
以手机为上述电子设备100举例,手机可通过移动通信模块150或无线通信模块160向其他电子设备发送聊天消息(也可称为对话消息)。例如,手机上可安装短信APP、微信APP、微博APP等聊天应用。用户在这些聊天应用中可以选择相应的联系人并输入需要向该联系人发送的聊天消息。后续,如果检测到用户执行发送该聊天消息的操作,手机可通过移动通信模块150或无线通信模块160向用户选中的联系人的电子设备发送用户本次输入的聊天消息。Taking a mobile phone as an example of the aforementioned electronic device 100, the mobile phone can send chat messages (also called conversation messages) to other electronic devices through the mobile communication module 150 or the wireless communication module 160. For example, chat applications such as SMS APP, WeChat APP, and Weibo APP can be installed on the mobile phone. In these chat applications, the user can select the corresponding contact and enter the chat message that needs to be sent to the contact. Subsequently, if it is detected that the user performs the operation of sending the chat message, the mobile phone can send the chat message input by the user this time to the electronic device of the contact selected by the user through the mobile communication module 150 or the wireless communication module 160.
在本申请实施例中,用户A使用其手机上的聊天应用向联系人B发送聊天消息前,手机可获取用户A与联系人B之间的亲密等级。例如,当用户A与联系人B为家人关系时,用户A与联系人B之间的亲密等级为高级;当用户A与联系人B为朋友关系时,用户A与联系人B之间的亲密等级为中级;当用户A与联系人B为同事关系时,用户A与联系人B之间的亲密等级为低级。In the embodiment of the present application, before user A uses the chat application on his mobile phone to send a chat message to contact B, the mobile phone can obtain the intimacy level between user A and contact B. For example, when user A and contact B are family relationships, the closeness level between user A and contact B is high; when user A and contact B are friends, the closeness between user A and contact B The level is intermediate; when user A and contact B are colleagues, the intimacy level between user A and contact B is low.
进而,手机可根据用户A与联系人B之间的亲密等级确定用户A本次发送的聊天消息中是否包含隐私内容。例如,用户A本次发送的聊天消息中包含身份证号码,如果用户A与联系人B之间的亲密等级为高级,说明用户A向联系人B发送身份证号码的安全风险较小,则手机可确定该聊天消息中不包含隐私内容。相应的,如果用户A与联系人B之间的亲密等级为低级,说明用户A向联系人B发送身份证号码的安全风险较大,则手机可确定该聊天消息中包含隐私内容。Furthermore, the mobile phone can determine whether the chat message sent by user A this time contains private content according to the intimacy level between user A and contact B. For example, the chat message sent by user A this time contains the ID number. If the intimacy level between user A and contact B is high, it means that the security risk of user A sending ID number to contact B is small, and the mobile phone It can be determined that the chat message does not contain private content. Correspondingly, if the intimacy level between the user A and the contact B is low, indicating that the security risk of the user A sending the ID number to the contact B is relatively high, the mobile phone can determine that the chat message contains private content.
那么,如果确定出用户A本次发送的聊天消息中包含隐私内容,手机可在向联系人B发送该聊天消息前提示用户选择是否继续发送该聊天消息,避免用户A错将包含隐私内容的聊天消息发送给亲密等级较低的联系人,造成用户隐私泄露等安全问题。当然,手机也可以将聊天消息中的隐私内容进行打码、虚化、马赛克等遮盖处理后再发送给联系人B,本申请实施例对此不做任何限制。Then, if it is determined that the chat message sent by user A this time contains private content, the mobile phone can prompt the user to choose whether to continue to send the chat message before sending the chat message to contact B, so as to avoid user A's chat that contains private content by mistake The message is sent to a contact with a lower level of intimacy, causing security issues such as leakage of user privacy. Of course, the mobile phone can also perform coding, blurring, and mosaic processing on the privacy content in the chat message before sending it to contact B. The embodiment of the present application does not impose any restriction on this.
也就是说,在本申请实施例中,用户A使用手机向某一联系人(例如上述联系人B)发送聊天消息前,手机可根据用户A与联系人B之间的亲密程度,确定联系人B是否有权限阅 读用户A本次发送的聊天消息。如果该聊天消息中的内容对联系人B而言为用户A的隐私,则手机可提醒用户A发送该聊天消息的安全风险,从而避免用户A将包含隐私的聊天消息发送给不相关的联系人,防止用户隐私被泄露,提高电子设备的安全性。That is to say, in this embodiment of the application, before user A uses a mobile phone to send a chat message to a contact (for example, contact B above), the mobile phone can determine the contact person according to the degree of intimacy between user A and contact B Does B have the authority to read the chat messages sent by user A this time? If the content of the chat message is user A's privacy to contact B, the mobile phone can remind user A of the security risk of sending the chat message, thereby preventing user A from sending chat messages containing privacy to unrelated contacts , To prevent user privacy from being leaked and improve the security of electronic equipment.
为了便于理解,以下结合附图对本申请实施例提供的一种对话消息的发送方法进行具体介绍。以下实施例中均以手机作为电子设备100举例说明。For ease of understanding, a method for sending a dialog message provided by an embodiment of the present application will be specifically introduced below with reference to the accompanying drawings. In the following embodiments, a mobile phone is used as an example of the electronic device 100.
图2为本申请实施例提供的一种对话消息的发送方法的流程示意图。如图2所示,该对话消息的发送方法可以包括:FIG. 2 is a schematic flowchart of a method for sending a dialog message according to an embodiment of the application. As shown in Figure 2, the method for sending the conversation message may include:
S201、手机显示用户与第一联系人的聊天界面,聊天界面中包括聊天消息的输入框和发送按钮。S201. The mobile phone displays a chat interface between the user and the first contact, and the chat interface includes an input box and a send button for chat messages.
一般,用户(例如Jack)使用手机需要与某一联系人聊天时,可打开相应的聊天应用。例如,该聊天应用可以为短信APP、微信APP等具有聊天功能的应用。以微信APP举例,用户Jack打开手机中的微信APP后,可打开微信APP中的某一联系人(例如联系人Sam)的聊天界面(也可称为对话界面)。Generally, when a user (such as Jack) needs to chat with a contact using a mobile phone, he can open the corresponding chat application. For example, the chat application may be an application with a chat function, such as a short message APP and a WeChat APP. Take the WeChat APP as an example. After the user Jack opens the WeChat APP in the mobile phone, he can open a chat interface (also called a dialogue interface) of a certain contact (for example, contact Sam) in the WeChat APP.
此时,如图3所示,手机可显示微信APP中联系人Sam的聊天界面301。聊天界面301中包括聊天消息的输入框302、聊天消息的发送按钮303以及聊天消息的显示区域304。输入框302用于接收用户Jack输入的本次需要发送的聊天消息。发送按钮303用于指示手机将输入框302中的聊天消息发送给对应的联系人Sam。显示区域304用于显示用户Jack与联系人Sam之间已发送的聊天消息。At this time, as shown in Figure 3, the mobile phone can display the chat interface 301 of the contact Sam in the WeChat APP. The chat interface 301 includes a chat message input box 302, a chat message sending button 303, and a chat message display area 304. The input box 302 is used to receive the chat message that needs to be sent this time input by the user Jack. The send button 303 is used to instruct the mobile phone to send the chat message in the input box 302 to the corresponding contact Sam. The display area 304 is used to display the chat messages sent between the user Jack and the contact Sam.
S202、手机接收用户在聊天界面中输入的聊天消息。S202. The mobile phone receives the chat message input by the user in the chat interface.
仍以联系人Sam的聊天界面301举例,用户Jack可使用输入法应用或手写笔向输入框302内输入本次向联系人Sam发送的聊天消息。当然,用户也可以使用语音等方式输入本次向联系人Sam发送的聊天消息。其中,该聊天消息可以包括文字、数字、字母、符号、音频、图片或视频中的一项或多项,本申请实施例对此不做任何限制。Still taking the chat interface 301 of the contact Sam as an example, the user Jack can use an input method application or a stylus to input the chat message sent to the contact Sam this time into the input box 302. Of course, the user can also use voice and other methods to input the chat message sent to contact Sam this time. Wherein, the chat message may include one or more of text, numbers, letters, symbols, audio, pictures, or videos, which is not limited in the embodiment of the present application.
如图4所示,手机可接收用户Jack在输入框302中输入的聊天消息401,该聊天消息401为“下午来我家吃饭,幸福小区1号楼203”。进而,用户Jack可点击聊天界面301中的发送按钮303,指示手机将聊天消息401发送给联系人Sam。手机检测到用户点击聊天界面301中的发送按钮303后,可继续执行下述步骤S203-S206。当然,用户也可以通过语音等方式选中聊天界面301中的发送按钮303。当检测到用户选中发送按钮303后,手机可继续执行下述步骤S203-S206。As shown in FIG. 4, the mobile phone can receive a chat message 401 input by the user Jack in the input box 302, and the chat message 401 is "Come to my house for dinner in the afternoon, Building 203, Happy Community". Furthermore, the user Jack can click the send button 303 in the chat interface 301 to instruct the mobile phone to send the chat message 401 to the contact Sam. After the mobile phone detects that the user has clicked the send button 303 in the chat interface 301, the following steps S203-S206 can be continued. Of course, the user can also select the send button 303 in the chat interface 301 by voice or other means. After detecting that the user selects the send button 303, the mobile phone can continue to perform the following steps S203-S206.
S203、手机获取用户与第一联系人之间的亲密等级。S203. The mobile phone obtains the intimacy level between the user and the first contact.
示例性的,手机可预先标记用户Jack与微信APP中各个联系人之间的亲密等级。例如,手机可预先设置该亲密等级包括等级依次下降A、B、C、D四个亲密等级。当亲密等级为A级时,说明用户Jack与对应联系人之间的亲密程度最高;当亲密等级为D级时,说明用户Jack与对应联系人之间的亲密程度最低。Exemplarily, the mobile phone may pre-mark the intimacy level between the user Jack and each contact in the WeChat APP. For example, the mobile phone can preset the intimacy level, including four intimacy levels descending A, B, C, and D in sequence. When the intimacy level is A, it indicates that the intimacy between the user Jack and the corresponding contact is the highest; when the intimacy level is D, it indicates that the intimacy between the user Jack and the corresponding contact is the lowest.
在一些实施例中,用户可手动对微信APP中的各个联系人设置分组或标签。如图5所示,用户Jack将微信联系人Sam的标签设置为“配偶”,那么,手机可根据该标签确定用户Jack与联系人Sam之间的亲密等级为最高等级:A级。又例如,当联系人Sam位于名称为“家人”的分组内时,手机可标记用户Jack与联系人Sam之间的亲密等级为A级,说明用户Jack与联系人Sam之间的亲密程度很高。当联系人Sam位于名称为“陌生人”的分组内时,手机可标记用户Jack与联系人Sam之间的亲密等级为D级,说明用户Jack与联系人Sam之间的亲密程度较低。又例如,如果用户没有为联系人Sam设置分组或标签,则手机可默认用户Jack 与联系人Sam之间的亲密等级为亲密程度较低的D级。In some embodiments, the user can manually set groups or tags for each contact in the WeChat APP. As shown in Figure 5, the user Jack sets the label of the WeChat contact Sam to "spouse", then the mobile phone can determine the highest level of intimacy between the user Jack and the contact Sam according to the label: level A. For another example, when the contact Sam is in the group named "family", the mobile phone can mark the intimacy level between the user Jack and the contact Sam as A, indicating that the intimacy between the user Jack and the contact Sam is very high . When the contact Sam is in the group named "Stranger", the mobile phone can mark the intimacy level between the user Jack and the contact Sam as D, indicating that the intimacy between the user Jack and the contact Sam is low. For another example, if the user does not set a group or label for the contact Sam, the mobile phone may default to the intimacy level between the user Jack and the contact Sam as D, which is a lower intimacy.
在一些实施例中,手机还可以自动识别用户Jack与微信APP中的各个联系人之间的亲密等级。例如,手机可统计最近一段时间内用户Jack与微信APP中的各个联系人的聊天频率。如果用户Jack与联系人Sam之间的聊天频率大于第一预设值,则手机可标记用户Jack与联系人Sam之间的亲密等级为A级;如果用户Jack与联系人Sam之间的聊天频率大于第二预设值且小于第一预设值(第一预设值大于第二预设值),则手机可标记用户Jack与联系人Sam之间的亲密等级为B级;如果用户Jack与联系人Sam之间的聊天频率小于第二预设值,则手机可标记用户Jack与联系人Sam之间的亲密等级为C级。或者,手机还可以识别最近一段时间内用户Jack与微信APP中的各个联系人的聊天内容,进而,手机根据聊天内容识别出用户Jack与各个联系人之间的亲密等级,本申请实施例对此不做任何限制。In some embodiments, the mobile phone can also automatically recognize the intimacy level between the user Jack and each contact in the WeChat APP. For example, the mobile phone can count the chat frequency between the user Jack and each contact in the WeChat APP in the recent period of time. If the chat frequency between the user Jack and the contact Sam is greater than the first preset value, the phone can mark the intimacy level between the user Jack and the contact Sam as level A; if the chat frequency between the user Jack and the contact Sam Is greater than the second preset value and less than the first preset value (the first preset value is greater than the second preset value), the mobile phone can mark the intimacy level between the user Jack and the contact Sam as B; If the chat frequency between contact Sam is less than the second preset value, the mobile phone can mark the intimacy level between user Jack and contact Sam as C level. Alternatively, the mobile phone can also identify the chat content between the user Jack and each contact in the WeChat APP in the most recent period of time, and furthermore, the mobile phone can identify the intimacy level between the user Jack and each contact based on the chat content. There are no restrictions.
另外,手机还可以定期更新用户Jack与聊天应用中各个联系人之间的亲密等级。例如,手机可以监测一段时间内用户Jack与微信APP中的各个联系人的聊天频率或内容。以联系人Sam举例,用户Jack与联系人Sam之间的亲密等级为C级,当检测到最近一个月用户Jack与联系人Sam的聊天频率大于上述第二预设值且小于第一预设值后,说明用户Jack与联系人Sam的亲密程度增加,则手机可将用户Jack与联系人Sam之间的亲密等级更新为亲密程度更高的B级。又例如,手机可以监测一段时间内用户Jack与微信APP中的各个联系人的聊天内容,不同的聊天内容与不同的亲密等级之间具有对应关系。当检测到用户Jack与联系人Sam的聊天内容与A级的亲密等级对应时,手机可将用户Jack与联系人Sam之间的亲密等级更新为A级,本申请实施例对此不做任何限制。In addition, the mobile phone can also regularly update the intimacy level between the user Jack and each contact in the chat application. For example, the mobile phone can monitor the chat frequency or content between the user Jack and each contact in the WeChat APP over a period of time. Taking contact Sam as an example, the intimacy level between user Jack and contact Sam is C level, when it is detected that the chat frequency between user Jack and contact Sam in the last month is greater than the second preset value and less than the first preset value Later, it is explained that the intimacy between the user Jack and the contact Sam has increased, and the mobile phone can update the intimacy level between the user Jack and the contact Sam to a higher level of intimacy B. For another example, the mobile phone can monitor the chat content between the user Jack and each contact in the WeChat APP for a period of time, and there is a corresponding relationship between different chat content and different intimacy levels. When it is detected that the chat content between the user Jack and the contact Sam corresponds to the A-level intimacy level, the mobile phone can update the intimacy level between the user Jack and the contact Sam to A-level, which is not limited in the embodiment of the application. .
在一些实施例中,手机还可以在联系人APP(也可称为通讯录APP)中记录用户Jack与联系人APP中各个联系人之间的亲密等级。如图6所示,联系人APP中存储有联系人“张三”的基本信息。例如,该基本信息中包括“张三”的工作电话、私人电话、住址以及群组信息等。在本申请实施例中,联系人“张三”的基本信息中还记录有“张三”的社交资料,例如“张三”在微信APP中的账号为“Sam”601,也就是说,联系人APP中的“张三”在微信APP中对应的联系人为“Sam”。并且,仍如图6所示,联系人“张三”的基本信息中还记录有用户Jack与“张三”的亲密等级602为B级。In some embodiments, the mobile phone may also record the intimacy level between the user Jack and each contact in the contact APP in the contacts APP (also referred to as the address book APP). As shown in Figure 6, the contact APP stores basic information of the contact "Zhang San". For example, the basic information includes "Zhang San"'s work phone number, personal phone number, address, and group information. In the embodiment of this application, the basic information of the contact "Zhang San" also records the social information of "Zhang San". For example, the account of "Zhang San" in the WeChat APP is "Sam" 601, that is, contact "Zhang San" in the People APP corresponds to "Sam" in the WeChat APP. Also, as shown in FIG. 6, the basic information of the contact "Zhang San" also records that the intimacy level 602 of the user Jack and "Zhang San" is B level.
那么,如果检测到用户Jack在上述聊天界面301中点击了发送按钮303,则手机可调用联系人APP查询在联系人APP中与微信联系人Sam对应的联系人为“张三”。由于在联系人APP中记录有用户Jack与联系人“张三”的亲密等级602为B级,因此,手机可以确定用户Jack与微信APP中联系人Sam之间的亲密等级也为B级。Then, if it is detected that the user Jack has clicked the send button 303 in the above-mentioned chat interface 301, the mobile phone can call the contact APP to query that the contact corresponding to the WeChat contact Sam in the contact APP is "Zhang San". Since the intimacy level 602 of the user Jack and the contact "Zhang San" is recorded in the contact APP as B level, the mobile phone can determine that the intimacy level between the user Jack and the contact Sam in the WeChat APP is also B level.
或者,手机也可以在检测到用户打开联系人Sam的聊天界面301后,获取用户Jack与联系人Sam之间的亲密等级。又或者,手机也可以在接收用户输入本次聊天消息的过程中获取用户Jack与联系人Sam之间的亲密等级,本申请实施例对此不做任何限制。Alternatively, the mobile phone may also obtain the intimacy level between the user Jack and the contact Sam after detecting that the user opens the chat interface 301 of the contact Sam. Alternatively, the mobile phone may also obtain the intimacy level between the user Jack and the contact Sam during the process of receiving the user's input of this chat message, and this embodiment of the application does not impose any limitation on this.
在另一些实施例中,如图7所示,如果检测到用户Jack在某一群组的聊天界面701中点击发送按钮702发送本次输入的聊天消息703,则此时上述第一联系人可以包括群组中的所有联系人。为了避免用户Jack将包含隐私内容的聊天消息703公开在群组中,手机可默认此时用户Jack与第一联系人之间的亲密等级为最低等级D级。或者,手机可以获取用户Jack与群组中每个联系人之间的亲密等级,并将最低的亲密等级作为本次用户Jack与第一联系人之间的亲密等级。In other embodiments, as shown in FIG. 7, if it is detected that the user Jack clicks the send button 702 in the chat interface 701 of a certain group to send the chat message 703 entered this time, then the first contact can be Include all contacts in the group. In order to prevent the user Jack from disclosing the chat message 703 containing private content in the group, the mobile phone can default to the lowest level of intimacy between the user Jack and the first contact D at this time. Alternatively, the mobile phone may obtain the intimacy level between the user Jack and each contact in the group, and use the lowest intimacy level as the intimacy level between the user Jack and the first contact this time.
或者,手机也可以向服务器发送请求,以便从服务器中获取用户Jack与联系人Sam之间的亲密等级,本申请实施例对此不做任何限制。需要说明的是,上述实施例中是以手机预先 将亲密等级划分为A、B、C、D四个等级举例说明的。可以理解的是,本申请实施例中对上述亲密等级被划分的个数和具体名称不作任何限定。Alternatively, the mobile phone may also send a request to the server to obtain the intimacy level between the user Jack and the contact Sam from the server, and this embodiment of the application does not impose any restriction on this. It should be noted that in the above embodiment, the mobile phone pre-divided the intimacy level into four levels A, B, C, and D for example. It is understandable that the number and specific names of the above-mentioned intimacy levels are not limited in the embodiments of the present application.
S204、手机根据用户与第一联系人之间的亲密等级标记上述聊天消息中的隐私内容。S204. The mobile phone marks the privacy content in the chat message according to the intimacy level between the user and the first contact.
在本申请实施例中,对隐私内容的界定可以根据参与聊天的双方之间的亲密等级动态变化。以用户Jack的家庭住址这一信息举例,如果用户Jack与正在聊天的联系人Sam之间的亲密等级很高,说明用户Jack与联系人Sam较为亲密,那么,聊天消息中出现Jack的家庭住址时并不意味着泄露了用户Jack的隐私。此时,手机可确定聊天消息中出现的Jack的家庭住址并不属于隐私内容。相应的,如果用户Jack与正在聊天的联系人Sam之间的亲密等级较低,则用户Jack向联系人Sam发送其家庭住址时很可能会泄露用户Jack的隐私,此时,手机可确定聊天消息中出现的Jack的家庭住址属于隐私内容。In the embodiment of the present application, the definition of private content can be dynamically changed according to the intimacy level between the two parties participating in the chat. Take the information of the home address of the user Jack as an example. If the intimacy level between the user Jack and the contact Sam who is chatting is very high, indicating that the user Jack and the contact Sam are relatively close, then when Jack's home address appears in the chat message It does not mean that the privacy of user Jack has been leaked. At this time, the mobile phone can determine that Jack's home address appearing in the chat message does not belong to private content. Correspondingly, if the intimacy level between the user Jack and the contact Sam who is chatting is low, then the user Jack may leak the privacy of the user Jack when sending his home address to the contact Sam. At this time, the mobile phone can determine the chat message Jack's home address in the is private content.
示例性的,手机可预先设置不同亲密等级与不同隐私内容之间的对应关系。如图8所示,亲密等级由高至低被划分为A、B、C、D四个等级,当亲密等级越高时说明聊天双方的亲密程度越高,手机在界定聊天消息中隐私内容时的界定条件更为宽松;当亲密等级越低时说明聊天双方的亲密程度越低,手机在界定聊天消息中隐私内容时的界定条件更为严格。Exemplarily, the mobile phone can preset the correspondence between different intimacy levels and different privacy contents. As shown in Figure 8, the intimacy level is divided into four levels: A, B, C, and D from high to low. The higher the level of intimacy, the higher the degree of intimacy between the two parties in the chat. When the mobile phone defines the privacy content of the chat message The definition condition of is more relaxed; when the level of intimacy is lower, it means that the intimacy of both parties in the chat is lower, and the definition condition of mobile phone in defining the privacy content of chat messages is more strict.
例如,仍如图8所示,当亲密等级为等级最低的D级时,如果本次聊天消息中出现用户Jack的联系方式、工作单位、家庭住址、爱好习惯、家庭成员信息、证件号码、账号密码或私人图像,则手机均可将这些信息标记为隐私内容。For example, as shown in Figure 8, when the intimacy level is the lowest level D, if the contact information, work unit, home address, hobbies and habits, family member information, ID number, account number of user Jack appear in this chat message Password or private image, the phone can mark this information as private content.
当亲密等级为C级时,如果本次聊天消息中出现用户Jack的联系方式、工作单位、家庭住址或爱好习惯,则手机不会将这些信息标记为隐私内容,但是,如果本次聊天消息中出现用户Jack的家庭成员信息、证件号码、账号密码或私人图像,则手机可将这些信息标记为隐私内容。When the intimacy level is C, if the contact information, work unit, home address, or hobbies of user Jack appear in this chat message, the mobile phone will not mark this information as private content. However, if the chat message is If user Jack's family member information, ID number, account password or private image appears, the mobile phone can mark these information as private content.
当亲密等级为B级时,如果本次聊天消息中出现用户Jack的联系方式、工作单位、家庭住址、爱好习惯、家庭成员信息或证件号码,则手机不会将这些信息标记为隐私内容,但是,如果本次聊天消息中出现用户Jack的账号密码或私人图像,则手机可将这些信息标记为隐私内容。When the intimacy level is B, if the contact information, work unit, home address, hobbies and habits, family member information or ID number of user Jack appear in this chat message, the mobile phone will not mark these information as private content, but , If user Jack’s account password or private image appears in this chat message, the phone can mark this information as private content.
当亲密等级为A级时,如果本次聊天消息中出现用户Jack的联系方式、工作单位、家庭住址、爱好习惯、家庭成员信息、证件号码、账号密码或私人图像,手机均不会将这些信息标记为隐私内容。当然,用户也可以手动在手机中设置向不同亲密等级与不同隐私内容之间的对应关系,即设置向不同亲密等级的联系人开放不同的隐私权限,本申请实施例对此不做任何限制。When the intimacy level is A, if the user Jack’s contact information, work unit, home address, hobbies and habits, family member information, ID number, account password or private image appear in this chat message, the mobile phone will not send these information Mark as private content. Of course, the user can also manually set the correspondence between different intimacy levels and different privacy content in the mobile phone, that is, set to open different privacy permissions to contacts of different intimacy levels, and this embodiment of the application does not impose any restriction on this.
仍以用户Jack本次向联系人Sam发送上述聊天消息401举例,如图9所示,聊天消息401为“下午来我家吃饭,幸福小区1号楼203”。手机可使用语义分析等算法将聊天消息401划分为一个或多个信息单元(也可称为敏感信息单元)。例如,手机可将按照标点符号将聊天消息401中的每句话作为一个信息单元。又例如,手机可根据语义和语法将聊天消息401划分为时间、地点、人物等多个信息单元。聊天消息中的每个信息单元均为某一完整信息的表达载体。Still taking the example of the user Jack sending the above-mentioned chat message 401 to the contact Sam this time. As shown in FIG. 9, the chat message 401 is "Come to my house for dinner in the afternoon, Building 203, Happy Community". The mobile phone can use algorithms such as semantic analysis to divide the chat message 401 into one or more information units (also called sensitive information units). For example, the mobile phone may regard each sentence in the chat message 401 as an information unit according to punctuation. For another example, the mobile phone can divide the chat message 401 into multiple information units such as time, location, and person based on semantics and grammar. Each information unit in the chat message is an expression carrier of a complete information.
进而,仍如图9所示,手机可根据用户Jack与联系人Sam之间的亲密等级识别聊天消息401中的每个信息单元是否为隐私内容。例如,如果用户Jack与联系人Sam之间的亲密等级为D级,由于聊天消息401中的信息单元3(即“幸福小区1号楼203”)为用户Jack的家庭住址,因此,手机可将聊天消息401中的信息单元3标记为隐私内容,而信息单元1和信息单元2不是隐私内容。也就是说,聊天消息401内的3个信息单元中包括一条隐私内容。Furthermore, as shown in FIG. 9, the mobile phone can identify whether each information unit in the chat message 401 is private content according to the intimacy level between the user Jack and the contact Sam. For example, if the intimacy level between the user Jack and the contact Sam is level D, since the information unit 3 in the chat message 401 (ie "Building No. 203 in Happy Community") is the home address of the user Jack, the mobile phone can The information unit 3 in the chat message 401 is marked as private content, while the information unit 1 and the information unit 2 are not private content. In other words, the three information units in the chat message 401 include one piece of private content.
又例如,如图10所示,如果用户Jack本次向联系人Sam发送的聊天消息为图片1001,则手机可使用预设的图像处理算法将图片1001划分为一个或多个信息单元。示例性的,图片1001中包括信息单元1002至信息单元1005。信息单元1002反映了用户Jack的面部信息,信息单元1003反映了其他用户的面部信息,信息单元1004反映了用户Jack的汽车信息,信息单元1005反映了用户Jack的住址信息。For another example, as shown in FIG. 10, if the chat message sent by the user Jack to the contact Sam this time is a picture 1001, the mobile phone can use a preset image processing algorithm to divide the picture 1001 into one or more information units. Exemplarily, the picture 1001 includes information units 1002 to 1005. The information unit 1002 reflects the facial information of the user Jack, the information unit 1003 reflects the facial information of other users, the information unit 1004 reflects the car information of the user Jack, and the information unit 1005 reflects the address information of the user Jack.
进而,仍如图10所示,手机可根据用户Jack与联系人Sam之间的亲密等级识别上述图片1001中的每个信息单元是否为隐私内容。例如,如果用户Jack与联系人Sam之间的亲密等级为A级,说明用户Jack与联系人Sam的关系非常要好,则手机可将上述信息单元1002至信息单元1005均确定为普通信息,无需标记隐私内容。也就是说,图片1001内的4个信息单元均不是隐私内容。Furthermore, as shown in FIG. 10, the mobile phone can recognize whether each information unit in the picture 1001 is private content according to the intimacy level between the user Jack and the contact Sam. For example, if the intimacy level between the user Jack and the contact Sam is A, indicating that the relationship between the user Jack and the contact Sam is very good, the mobile phone can determine the above information unit 1002 to information unit 1005 as normal information, without marking Private content. In other words, none of the four information units in the picture 1001 are private content.
又或者,如果用户Jack本次向联系人Sam发送的聊天消息为用户Jack在某个建筑物旁的合影时,手机可通过背景植被、日照特点、星空位置、气象特征等被判断合影中的经纬度信息,然后通过与谷歌街景或者腾讯街景提供的街景信息对比,确定出用户Jack在合影中的位置,从而预测出用户经常活动的地区。此时,手机也可将该合影图像标记为隐私内容。Or, if the chat message sent by user Jack to contact Sam this time is a group photo of user Jack next to a building, the phone can judge the longitude and latitude of the group photo based on background vegetation, sunlight characteristics, starry sky location, weather characteristics, etc. The information is then compared with the street view information provided by Google Street View or Tencent Street View to determine the location of the user Jack in the group photo, thereby predicting the area where the user often activities. At this time, the mobile phone can also mark the group photo image as private content.
当然,手机也可以向服务器发送请求,以请求服务器根据用户Jack与联系人Sam之间的亲密等级标记本次聊天消息中的隐私内容,本申请实施例对此不做任何限制。Of course, the mobile phone may also send a request to the server to request the server to mark the privacy content in the chat message according to the intimacy level between the user Jack and the contact Sam, and the embodiment of the application does not impose any restriction on this.
可以看出,在本申请实施例中,手机可根据参与聊天双方的亲密程度,动态确定每次发送的聊天消息中是否包含隐私内容以及具体包含多少隐私内容。隐私内容的界定方式是依据聊天双方的亲密程度确定的,这样手机可以更加准确的判断出每次发送的聊天消息是否会泄露发送方的用户隐私,造成隐私泄露等安全风险。It can be seen that in this embodiment of the application, the mobile phone can dynamically determine whether the chat message sent each time includes private content and how much private content is specifically included according to the intimacy of the two parties participating in the chat. The method of defining privacy content is determined based on the intimacy of both parties in the chat, so that the mobile phone can more accurately determine whether each chat message sent will leak the sender’s user privacy, causing security risks such as privacy leakage.
S205、若隐私内容在聊天消息中所占的比例大于阈值,则手机可提示用户本次发送过程存在安全风险。S205. If the proportion of the private content in the chat message is greater than the threshold, the mobile phone may prompt the user that there is a security risk in this sending process.
通过步骤S201-S204,手机可确定出本次用户Jack向联系人Sam发送的聊天消息中包括多少隐私内容。如果隐私内容在本次发送的聊天消息中所占的比例大于阈值,说明用户Jack本次向联系人Sam发送的聊天消息很可能会泄露Jack的隐私,安全风险较大,因此,手机在向联系人Sam发送该聊天消息前,可提示用户本次发送过程存在安全风险。Through steps S201-S204, the mobile phone can determine how much private content is included in the chat message sent by user Jack to contact Sam this time. If the proportion of private content in the chat messages sent this time is greater than the threshold, it means that the chat messages sent by the user Jack to the contact Sam this time may leak Jack’s privacy and the security risk is high. Therefore, the mobile phone is in contact with Before the person Sam sends the chat message, he can remind the user that there is a security risk in the sending process.
仍以用户Jack向联系人Sam发送上述图片1001举例,上述图片1001中包括4个信息单元(即信息单元1002至信息单元1005),如果上述阈值为50%,则当上述4个信息单元中包含两个以上被标记为隐私内容的信息单元时,说明隐私内容在本次聊天消息中所占的比例大于阈值。此时,如图11所示,手机可在向联系人Sam发送上述图片1001前,可显示提示框1101,提示框1101中可提示用户本次发送的聊天消息中包含大量隐私,并询问用户是否继续发送该聊天消息。例如,手机可以在检测到用户点击聊天界面中的发送按钮时,显示上述提示框1101;或者,手机也可以在用户本次输入聊天消息的过程中显示上述提示框1101,本申请实施例对此不做任何限制。Still taking the example of the user Jack sending the above picture 1001 to the contact Sam, the picture 1001 includes 4 information units (that is, the information unit 1002 to the information unit 1005). If the above threshold is 50%, when the above 4 information units contain When there are more than two information units marked as private content, it means that the proportion of private content in this chat message is greater than the threshold. At this time, as shown in Figure 11, the mobile phone can display a prompt box 1101 before sending the above picture 1001 to the contact Sam. The prompt box 1101 can prompt the user that the chat message sent this time contains a lot of privacy, and ask the user whether Continue to send the chat message. For example, the mobile phone can display the prompt box 1101 when it detects that the user clicks the send button in the chat interface; or the mobile phone can also display the prompt box 1101 when the user enters the chat message this time. There are no restrictions.
如果用户选择继续发送该聊天消息的选项1102,说明用户在已经获知本次发送聊天消息的安全风险后仍要求继续发送,则手机可继续向联系人Sam发送上述图片1001。相应的,如果用户选择取消发送该聊天消息的选项1103,则手机可丢弃本次向联系人Sam发送的图片1001,放弃发送本次聊天消息。If the user selects the option 1102 to continue sending the chat message, indicating that the user still requests to continue sending the chat message after knowing the security risk of sending the chat message this time, the mobile phone can continue to send the above picture 1001 to the contact Sam. Correspondingly, if the user selects the option 1103 to cancel sending the chat message, the mobile phone can discard the picture 1001 sent to the contact Sam this time, and give up sending this chat message.
需要说明的是,本领域技术人员可以根据实际经验或实际应用场景设置上述阈值的具体取值,本申请实施例对此不做任何限制。例如,可以将上述阈值设置为0,也就是说,一旦本次发送的聊天消息中包含被标记的隐私内容,说明该聊天消息中的内容与聊天双方的亲密 程度不匹配,则手机可提示用户本次发送过程存在安全风险。It should be noted that those skilled in the art can set the specific value of the above threshold according to actual experience or actual application scenarios, and the embodiment of the present application does not impose any limitation on this. For example, the above threshold can be set to 0, that is to say, once the chat message sent this time contains marked private content, indicating that the content in the chat message does not match the intimacy of both parties in the chat, the mobile phone can prompt the user There are security risks in this sending process.
S206、若隐私内容在聊天消息中所占的比例小于或等于阈值,则手机向第一联系人发送该聊天消息。S206: If the proportion of the private content in the chat message is less than or equal to the threshold, the mobile phone sends the chat message to the first contact.
与步骤S205对应的,在步骤S206中,如果隐私内容在本次发送的聊天消息中所占的比例小于或等于上述阈值,说明用户Jack本次向联系人Sam发送的聊天消息中包含的隐私内容较少,本次发送过程的安全风险较小,因此,手机可正常在向联系人Sam发送用户Jack输入的聊天消息。Corresponding to step S205, in step S206, if the proportion of private content in the chat message sent this time is less than or equal to the above threshold, it indicates that the private content contained in the chat message sent by user Jack to contact Sam this time Less, the security risk of this sending process is smaller, therefore, the mobile phone can normally send the chat message input by the user Jack to the contact Sam.
在一些实施例中,仍以用户Jack向联系人Sam发送上述聊天消息401举例,聊天消息401中Jack的家庭住址“幸福小区1号楼203”被标记为隐私内容。虽然该隐私内容在聊天消息401中所占的比例小于阈值,但是,为了避免用户隐私泄露,如图12所示,手机在向联系人Sam发送聊天消息401时,可对聊天消息401中被标记的隐私内容进行打码、虚化或遮盖等处理,使得被标记的隐私内容不会公开显示在聊天消息的显示区域304中。这样,即使联系人Sam接收到用户Jack发来的聊天消息401,也不会泄露聊天消息401中Jack的家庭住址,从而防止用户隐私被泄露,提高聊天过程中的信息安全性。In some embodiments, still taking the example of the user Jack sending the aforementioned chat message 401 to the contact Sam, in the chat message 401, Jack's home address "Building No. 203, Happy Community" is marked as private content. Although the proportion of this private content in the chat message 401 is less than the threshold, in order to avoid user privacy leakage, as shown in Figure 12, when the mobile phone sends the chat message 401 to the contact Sam, the chat message 401 can be marked The private content of is subjected to processing such as coding, blurring or covering, so that the marked private content will not be publicly displayed in the display area 304 of the chat message. In this way, even if the contact Sam receives the chat message 401 sent by the user Jack, Jack's home address in the chat message 401 will not be disclosed, thereby preventing the user's privacy from being leaked, and improving the information security during the chat.
在另一些实施例中,聊天消息的接收方(例如上述联系人Sam的手机)也可以根据聊天双方的亲密程度确定聊天消息中是否包含隐私内容,进而根据隐私内容在本次聊天消息中所占的比例确定是否接收或显示该聊天消息。In other embodiments, the recipient of the chat message (for example, the mobile phone of the aforementioned contact Sam) can also determine whether the chat message contains private content according to the intimacy of the two parties in the chat, and then according to the private content in the current chat message The ratio of determines whether to receive or display the chat message.
例如,用户Sam使用手机上的微信APP接收联系人Jack发来的聊天消息时,与上述步骤S203-S204类似的,手机可获取用户Sam与联系人Jack之间的亲密等级,进而,手机可根据用户Sam与联系人Jack之间的亲密等级标记本次接收到的聊天消息中的隐私内容。如果被标记的隐私内容在聊天消息中所占的比例大于阈值,说明联系人Jack发来的聊天消息中包含大量用户隐私,手机可丢弃本次接收到的聊天消息。或者,如图13所示,如果被标记的隐私内容在聊天消息中所占的比例大于阈值,则手机在联系人Jack的聊天界面1301中显示聊天消息1302时,可对聊天消息1302中被标记的隐私内容进行打码、虚化或添加水印等遮盖处理,使得手机在显示联系人发来的聊天消息时能够屏蔽掉涉及联系人隐私的内容,提高聊天场景下信息交互的安全性。For example, when the user Sam uses the WeChat APP on the mobile phone to receive a chat message from the contact Jack, similar to the above steps S203-S204, the mobile phone can obtain the intimacy level between the user Sam and the contact Jack. The intimacy level between user Sam and contact Jack marks the privacy content in the chat message received this time. If the proportion of the marked privacy content in the chat messages is greater than the threshold, it means that the chat message sent by the contact Jack contains a lot of user privacy, and the phone can discard the chat message received this time. Or, as shown in FIG. 13, if the proportion of the marked private content in the chat message is greater than the threshold, when the mobile phone displays the chat message 1302 in the chat interface 1301 of the contact Jack, the chat message 1302 can be marked Encoding, blurring, or adding watermarks to the privacy content of the mobile phone enables the mobile phone to screen out the content related to the privacy of the contact when displaying the chat message sent by the contact, and improves the security of information interaction in the chat scene.
可以看出,在本申请实施例中,手机可在聊天场景下根据聊天双方的亲密程度,确定聊天消息的接收方是否有权限阅读发送方本次发送的聊天消息。如果聊天消息中的内容与聊天双方的亲密程度不相符,则本次向接收方发送聊天消息是有安全风险的。因此,手机可在发送本次聊天消息前提醒用户发送该聊天消息的安全风险,从而避免用户将包含隐私的聊天消息发送给不相关的联系人,防止用户隐私被泄露,提高电子设备的安全性。It can be seen that in the embodiment of the present application, the mobile phone can determine whether the recipient of the chat message has the authority to read the chat message sent by the sender this time according to the intimacy of both parties in the chat scene. If the content in the chat message does not match the intimacy of both parties in the chat, sending the chat message to the recipient this time is a security risk. Therefore, the mobile phone can remind the user of the security risk of sending the chat message before sending this chat message, thereby avoiding the user from sending a private chat message to irrelevant contacts, preventing user privacy from being leaked, and improving the security of electronic devices .
在一些实施例中,上述步骤S201-S206所述的对话消息的发送方法可应用在图14所示的操作系统中。In some embodiments, the dialog message sending method described in steps S201-S206 can be applied to the operating system shown in FIG. 14.
以Android系统为例,图14示出了一种手机的软件结构框图。示例性的,可以将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。每一层都有清晰的角色和分工。层与层之间通过软件接口通信。Taking the Android system as an example, Figure 14 shows a block diagram of the software structure of a mobile phone. Exemplarily, the Android system can be divided into four layers, from top to bottom, they are the application layer, the application framework layer, the Android runtime and system library, and the kernel layer. Each layer has clear roles and division of labor. Communication between layers through software interface.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图14所示,应用程序包可以包括通话,联系人,相机,图库,日历,地图,导航,蓝牙,音乐,视频,短信息等APP(应用,application)。As shown in FIG. 14, the application package may include APP (application) such as call, contact, camera, gallery, calendar, map, navigation, Bluetooth, music, video, short message, etc.
在本申请实施例中,可以在应用程序层中安装具有聊天功能的APP(可称为聊天APP)。例如,该聊天APP可以为短信APP、微信APP、Facebook APP等。用户可在聊天APP中添 加一个或多个联系人(也可称为好友),并接收联系人发来的聊天消息,或向联系人发送本次输入的聊天消息等。In the embodiment of the present application, an APP with a chat function (may be called a chat APP) can be installed in the application layer. For example, the chat APP may be an SMS APP, WeChat APP, Facebook APP, etc. The user can add one or more contacts (also called friends) to the chat APP, and receive chat messages from the contacts, or send the chat messages entered this time to the contacts.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.
如图14所示,在本申请实施例中,应用程序框架层可以包括联系人服务和隐私管理模块。As shown in Figure 14, in this embodiment of the application, the application framework layer may include a contact service and a privacy management module.
其中,联系人服务可用于管理通讯录中的联系人,例如在通讯录中创建新的联系人、删除联系人或修改联系人中的各项信息等。在本申请实施例中,联系人服务还可用于管理用户与各个联系人之间的亲密等级。Among them, the contact service can be used to manage contacts in the address book, such as creating new contacts in the address book, deleting contacts, or modifying various information in the contacts. In this embodiment of the application, the contact service can also be used to manage the intimacy level between the user and each contact.
例如,如果检测到用户在聊天APP中为联系人Sam设置了“家人”的标签,则联系人服务可标记用户与联系人Sam之间的亲密等级为A级,说明用户与联系人Sam之间的亲密程度很高。又例如,联系人服务可从聊天APP中获取用户与各个联系人之间的聊天内容或聊天时间等信息,进而根据这些信息自动设置用户与各个联系人之间的亲密程度。For example, if it is detected that the user has set a "family" label for the contact Sam in the chat app, the contact service can mark the intimacy level between the user and the contact Sam as A, indicating that the user and the contact Sam The degree of intimacy is high. For another example, the contact service can obtain information such as chat content or chat time between the user and each contact from the chat APP, and then automatically set the intimacy between the user and each contact based on this information.
上述隐私管理模块可以从聊天APP中获取用户本次输入的聊天消息,还可以从联系人服务中获取用户与联系人之间的亲密等级。进而,在用户向某一联系人(例如Sam)发送聊天消息之前,隐私管理模块可根据用户与联系人Sam之间的亲密等级,标记该聊天消息中的隐私内容。示例性的,当亲密等级越高时说明聊天双方的亲密程度越高,隐私管理模块在界定聊天消息中隐私内容时的界定条件更为宽松;当亲密等级越低时说明聊天双方的亲密程度越低,隐私管理模块在界定聊天消息中隐私内容时的界定条件更为严格。The aforementioned privacy management module can obtain the chat message entered by the user this time from the chat APP, and can also obtain the intimacy level between the user and the contact from the contact service. Furthermore, before the user sends a chat message to a contact (for example, Sam), the privacy management module may mark the privacy content in the chat message according to the intimacy level between the user and the contact Sam. Exemplarily, the higher the level of intimacy, the higher the degree of intimacy between the two parties in the chat, and the more relaxed definition conditions of the privacy management module when defining the privacy content in the chat message; the lower the level of intimacy, the greater the degree of intimacy between the chatting parties Low, the privacy management module defines more stringent conditions when defining privacy content in chat messages.
在本申请实施例中,当用户与聊天APP中的某一联系人(例如Sam)聊天时,聊天APP可调用联系人服务获取用户与联系人Sam之间的亲密等级。进而,当聊天APP接收到用户本次输入的待发送的聊天消息后,聊天APP可调用隐私管理模块确定该聊天消息中的隐私内容。例如,隐私管理模块可从聊天APP中获取用户与联系人Sam之间的亲密等级,进而根据该亲密等级确定本次聊天消息中的哪些内容为隐私内容。如果隐私内容在整个聊天消息中的比例高于阈值,说明本次向联系人Sam发送的聊天消息很可能会泄露用户的隐私,安全风险较大。那么,聊天APP在发送该聊天消息前可提示用户本次发送过程存在安全风险,从而避免用户将包含隐私的聊天消息发送给不相关的联系人,防止用户隐私被泄露。In the embodiment of the present application, when the user chats with a certain contact (for example, Sam) in the chat APP, the chat APP can call the contact service to obtain the intimacy level between the user and the contact Sam. Furthermore, after the chat APP receives the to-be-sent chat message input by the user this time, the chat APP can call the privacy management module to determine the privacy content in the chat message. For example, the privacy management module may obtain the intimacy level between the user and the contact Sam from the chat APP, and then determine which content in the current chat message is private content according to the intimacy level. If the proportion of private content in the entire chat message is higher than the threshold, it means that the chat message sent to the contact Sam this time is likely to leak the user's privacy, and the security risk is high. Then, the chat APP can prompt the user that there is a security risk in the sending process before sending the chat message, so as to prevent the user from sending a private chat message to irrelevant contacts and prevent the user's privacy from being leaked.
或者,聊天APP接收到用户本次输入的待发送的聊天消息后,聊天APP也可请求对应的服务器获取用户与联系人Sam之间的亲密等级,进而根据该亲密等级确定本次聊天消息中的哪些内容为隐私内容,本申请实施例对此不做任何限制。Or, after the chat APP receives the chat message to be sent by the user this time, the chat APP can also request the corresponding server to obtain the intimacy level between the user and the contact Sam, and then determine the intimacy level in this chat message according to the intimacy level. The embodiments of this application do not impose any restrictions on what content is private content.
另外,应用程序框架层中还可以包括活动管理器,窗口管理器,内容提供器,视图系统,资源管理器,通知管理器等。In addition, the application framework layer can also include an activity manager, window manager, content provider, view system, resource manager, notification manager, etc.
其中,活动管理器可用于管理每个应用的生命周期。应用通常以activity的形式运行在操作系统中。活动管理器可用于管理每个activity的运行状态。窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完 成,消息提醒等。Among them, the activity manager can be used to manage the life cycle of each application. Applications usually run in the operating system in the form of activity. The activity manager can be used to manage the running state of each activity. The window manager is used to manage window programs. The window manager can obtain the size of the display, 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 video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc. The view system includes visual controls, such as controls that display text and controls that display pictures. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures. The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc. 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 disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify that the download is complete, message reminders, and so on.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。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.
应用程序层和应用程序框架层可运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer can 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.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。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.
其中,表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。Among them, 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 realize 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 includes at least a display driver, a camera driver, an audio driver, a sensor driver, etc., which are not limited in the embodiment of the present application.
如图15所示,本申请实施例公开了一种电子设备,包括:触摸屏1501,所述触摸屏1501包括触敏表面1506和显示屏1507;一个或多个处理器1502;存储器1503;通信模块1508;一个或多个应用程序(未示出);以及一个或多个计算机程序1504。上述各器件可以通过一个或多个通信总线1505连接。其中,该一个或多个计算机程序1504被存储在上述存储器1503中并被配置为被该一个或多个处理器1502执行,该一个或多个计算机程序1504包括指令,上述指令可以用于执行上述应实施例中步骤S201-S206中的各个步骤。As shown in FIG. 15, an embodiment of the present application discloses an electronic device, including: a touch screen 1501, the touch screen 1501 includes a touch-sensitive surface 1506 and a display screen 1507; one or more processors 1502; a memory 1503; a communication module 1508 One or more application programs (not shown); and one or more computer programs 1504. The above-mentioned devices may be connected through one or more communication buses 1505. Wherein, the one or more computer programs 1504 are stored in the aforementioned memory 1503 and configured to be executed by the one or more processors 1502, and the one or more computer programs 1504 include instructions, and the aforementioned instructions can be used to execute the aforementioned The steps S201-S206 in the embodiment should be applied.
示例性的,上述处理器1502具体可以为图1所示的处理器110,上述存储器1503具体可以为图1所示的内部存储器121和/或外部存储器120,上述显示屏1507具体可以为图1所示的显示屏194,上述通信模块1508具体可以为图1所示的移动通信模块150和/或无线通信模块160,上述触敏表面1506具体可以为图1所示的传感器模块180中的触摸传感器180K,本申请实施例对此不做任何限制。Exemplarily, the foregoing processor 1502 may specifically be the processor 110 shown in FIG. 1, the foregoing memory 1503 may specifically be the internal memory 121 and/or the external memory 120 shown in FIG. 1, and the foregoing display screen 1507 may specifically be FIG. As shown in the display 194, the communication module 1508 may be the mobile communication module 150 and/or the wireless communication module 160 shown in FIG. 1, and the touch-sensitive surface 1506 may be the touch sensor in the sensor module 180 shown in FIG. The sensor is 180K, and the embodiment of the present application does not impose any limitation on this.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated as needed. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the system, device, and unit described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not repeated here.
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。The functional units in the various embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请实施例各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If 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. Based on this understanding, the technical solutions of the embodiments of the present application essentially or the part that contributes to the prior art or all or part of the technical solutions can be embodied in the form of software products, and the computer software products are stored in a storage The medium includes a number of instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage media include: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited to this. Any changes or substitutions within the technical scope disclosed in the embodiments of the present application shall be covered by this Within the protection scope of the application embodiments. Therefore, the protection scope of the embodiments of the present application should be subject to the protection scope of the claims.

Claims (29)

  1. 一种对话消息的发送方法,其特征在于,包括:A method for sending dialog messages, which is characterized in that it includes:
    电子设备显示与第一联系人的对话界面;The electronic device displays a dialogue interface with the first contact;
    所述电子设备接收用户在所述对话界面中输入的第一对话消息;Receiving, by the electronic device, a first dialogue message input by a user in the dialogue interface;
    所述电子设备识别到所述第一对话消息中包含隐私内容;所述隐私内容与第一亲密等级关联,所述第一亲密等级为所述第一联系人与用户之间的亲密等级;The electronic device recognizes that the first conversation message includes private content; the private content is associated with a first intimacy level, and the first intimacy level is the intimacy level between the first contact and the user;
    所述电子设备提示用户向所述第一联系人发送所述第一对话消息的安全风险。The electronic device prompts the user to send the security risk of the first conversation message to the first contact.
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备识别所述第一对话消息中包含隐私内容,包括:The method according to claim 1, wherein the electronic device recognizing that the first conversation message contains private content includes:
    所述电子设备识别所述第一对话消息中包含的一个或多个敏感信息单元;The electronic device identifies one or more sensitive information units included in the first conversation message;
    所述电子设备根据所述第一亲密等级确定所述敏感信息单元是否为隐私内容。The electronic device determines whether the sensitive information unit is private content according to the first intimacy level.
  3. 根据权利要求2所述的方法,其特征在于,所述电子设备根据所述第一亲密等级确定所述敏感信息单元是否为隐私内容,包括:The method according to claim 2, wherein the electronic device determining whether the sensitive information unit is private content according to the first intimacy level comprises:
    当所述第一亲密等级为第一级别时,所述电子设备确定所述敏感单元不是隐私内容;When the first intimacy level is the first level, the electronic device determines that the sensitive unit is not private content;
    当所述第一亲密等级为第二级别时,所述电子设备确定所述敏感单元是隐私内容;其中,在所述第一级别下用户与所述第一联系人的亲密程度,高于在所述第二级别下用户与所述第一联系人的亲密程度。When the first level of intimacy is the second level, the electronic device determines that the sensitive unit is private content; wherein, the user’s degree of intimacy with the first contact at the first level is higher than at The degree of intimacy between the user and the first contact in the second level.
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,在所述电子设备提示用户向所述第一联系人发送所述第一对话消息的安全风险之前,还包括:The method according to any one of claims 1 to 3, wherein before the electronic device prompts the user to send the first conversation message to the first contact about a security risk, the method further comprises:
    所述电子设备计算所述隐私内容在所述第一对话消息中所占的比例;Calculating the proportion of the private content in the first conversation message by the electronic device;
    其中,所述电子设备提示用户向所述第一联系人发送所述第一对话消息的安全风险,包括:Wherein, the electronic device prompting the user to send the security risk of the first conversation message to the first contact includes:
    当所述比例大于阈值时,所述电子设备提示用户向所述第一联系人发送所述第一对话消息的安全风险。When the ratio is greater than the threshold, the electronic device prompts the user to send the first conversation message to the first contact for a security risk.
  5. 根据权利要求4所述的方法,其特征在于,当所述第一亲密等级为第一级别时,所述阈值的取值为第一取值;当所述第一亲密等级为第二级别时,所述阈值的取值为第二取值;其中,所述第一取值小于所述第二取值,在所述第一级别下用户与所述第一联系人的亲密程度,高于在所述第二级别下用户与所述第一联系人的亲密程度。The method of claim 4, wherein when the first intimacy level is a first level, the threshold value is a first value; when the first intimacy level is a second level , The threshold value is a second value; wherein, the first value is less than the second value, and the degree of intimacy between the user and the first contact at the first level is higher than The degree of intimacy between the user and the first contact in the second level.
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述电子设备提示用户向所述第一联系人发送所述第一对话消息的安全风险,包括:The method according to any one of claims 1-5, wherein the electronic device prompts the user to send the first conversation message to the first contact of the security risk, comprising:
    所述电子设备在所述对话界面中显示提示消息,所述提示消息用于提示用户向所述第一联系人发送所述第一对话消息的安全风险。The electronic device displays a prompt message in the dialogue interface, and the prompt message is used to prompt the user of the security risk of sending the first dialogue message to the first contact.
  7. 根据权利要求6所述的方法,其特征在于,所述提示消息中包括第一提示框和第二提示框;所述第一提示框用于指示继续发送所述第一对话消息,所述第二提示框用于指示取消发送所述第一对话消息;The method according to claim 6, wherein the prompt message includes a first prompt box and a second prompt box; the first prompt box is used to instruct to continue sending the first dialog message, and the first prompt box The second prompt box is used to instruct to cancel sending the first dialog message;
    在所述电子设备在所述对话界面中显示提示消息之后,还包括:After the electronic device displays the prompt message in the dialogue interface, the method further includes:
    若检测到用户根据第一提示框的操作,则所述电子设备向所述第一联系人发送所述第一对话消息;If detecting the user's operation according to the first prompt box, the electronic device sends the first conversation message to the first contact;
    若检测到用户根据第二提示框的操作,则所述电子设备取消向所述第一联系人发送所述第一对话消息。If the user's operation according to the second prompt box is detected, the electronic device cancels sending the first conversation message to the first contact.
  8. 根据权利要求7所述的方法,其特征在于,在所述电子设备向所述第一联系人发送所述第一对话消息之前,还包括:8. The method according to claim 7, wherein before the electronic device sends the first conversation message to the first contact, the method further comprises:
    所述电子设备对所述第一对话消息中的隐私内容进行遮盖处理,所述遮盖处理包括虚化、打马赛克或生成水印中的一项或多项。The electronic device performs masking processing on the private content in the first conversation message, and the masking processing includes one or more of blurring, mosaicing, or generating a watermark.
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,The method according to any one of claims 1-8, wherein:
    当所述第一联系人的标签为伴侣时,所述第一亲密等级为第一级别;或,When the label of the first contact is a partner, the first intimacy level is the first level; or,
    当所述第一联系人的标签为家人时,所述第一亲密等级为第二级别;或,When the label of the first contact is family, the first intimacy level is the second level; or,
    当所述第一联系人的标签为朋友时,所述第一亲密等级为第三级别;或,When the tag of the first contact is a friend, the first intimacy level is the third level; or,
    当所述第一联系人的标签为同事时,所述第一亲密等级为第四级别;When the label of the first contact is a colleague, the first intimacy level is the fourth level;
    其中,在所述第一级别下用户与所述第一联系人的亲密程度,高于在所述第二级别下用户与所述第一联系人的亲密程度;在所述第二级别下用户与所述第一联系人的亲密程度,高于在所述第三级别下用户与所述第一联系人的亲密程度;在所述第三级别下用户与所述第一联系人的亲密程度,高于在所述第四级别下用户与所述第一联系人的亲密程度。Wherein, the degree of intimacy between the user and the first contact under the first level is higher than the degree of intimacy between the user and the first contact under the second level; and the user under the second level The degree of intimacy with the first contact person is higher than the degree of intimacy between the user and the first contact person at the third level; the degree of intimacy between the user and the first contact person at the third level , Higher than the degree of intimacy between the user and the first contact in the fourth level.
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述第一对话消息包括文字、音频、数字、字母、符号、图片或视频中的一项或多项。The method according to any one of claims 1-9, wherein the first dialog message includes one or more of text, audio, numbers, letters, symbols, pictures, or videos.
  11. 一种对话消息的发送方法,其特征在于,包括:A method for sending dialog messages, which is characterized in that it includes:
    电子设备显示与第一联系人的对话界面;The electronic device displays a dialogue interface with the first contact;
    所述电子设备接收用户在所述对话界面中输入的第一对话消息;Receiving, by the electronic device, a first dialogue message input by a user in the dialogue interface;
    所述电子设备识别所述第一对话消息中的敏感信息单元;Identifying the sensitive information unit in the first conversation message by the electronic device;
    确定所述敏感信息单元与第一亲密等级不匹配时,所述电子设备提示用户向所述第一联系人发送所述第一对话消息的安全风险;When it is determined that the sensitive information unit does not match the first intimacy level, the electronic device prompts the user to send the security risk of the first conversation message to the first contact;
    确定所述敏感信息单元与所述第一亲密等级匹配时,所述电子设备向所述第一联系人发送所述第一对话消息,其中,所述第一亲密等级为所述第一联系人与所述用户之间的亲密程度。When it is determined that the sensitive information unit matches the first intimacy level, the electronic device sends the first conversation message to the first contact, wherein the first intimacy level is the first contact The degree of intimacy with the user.
  12. 根据权利要求11所述的方法,其特征在于,The method according to claim 11, wherein:
    当所述第一亲密等级为第一级别时,所述第一亲密等级与第一类敏感信息匹配;When the first intimacy level is the first level, the first intimacy level matches the first type of sensitive information;
    当所述第一亲密等级为第二级别时,所述第一亲密等级与第二类敏感信息匹配;When the first intimacy level is the second level, the first intimacy level matches the second type of sensitive information;
    其中,在所述第一级别下用户与所述第一联系人的亲密程度,高于在所述第二级别下用户与所述第一联系人的亲密程度;所述第一类敏感信息为所述第二类敏感信息中的子集。Wherein, the degree of intimacy between the user and the first contact under the first level is higher than the degree of intimacy between the user and the first contact under the second level; and the first type of sensitive information is A subset of the second type of sensitive information.
  13. 根据权利要求11或12所述的方法,其特征在于,所述电子设备提示用户向所述第一联系人发送所述第一对话消息的安全风险,包括:The method according to claim 11 or 12, wherein the electronic device prompts the user to send the security risk of the first conversation message to the first contact, comprising:
    所述电子设备在所述对话界面中显示提示消息,所述提示消息用于提示用户向所述第一联系人发送所述第一对话消息的安全风险。The electronic device displays a prompt message in the dialogue interface, and the prompt message is used to prompt the user of the security risk of sending the first dialogue message to the first contact.
  14. 根据权利要求13所述的方法,其特征在于,所述提示消息中包括第一提示框和第二提示框;所述第一提示框用于指示继续发送所述第一对话消息,所述第二提示框用于指示取消发送所述第一对话消息;The method according to claim 13, wherein the prompt message includes a first prompt box and a second prompt box; the first prompt box is used to instruct to continue sending the first dialog message, and the first prompt box The second prompt box is used to instruct to cancel sending the first dialog message;
    在所述电子设备在所述对话界面中显示提示消息之后,还包括:After the electronic device displays the prompt message in the dialogue interface, the method further includes:
    若检测到用户根据第一提示框的操作,则所述电子设备向所述第一联系人发送所述第一对话消息;If detecting the user's operation according to the first prompt box, the electronic device sends the first conversation message to the first contact;
    若检测到用户根据第二提示框的操作,则所述电子设备取消向所述第一联系人发送所述 第一对话消息。If the user's operation according to the second prompt box is detected, the electronic device cancels sending the first conversation message to the first contact.
  15. 根据权利要求11-14中任一项所述的方法,其特征在于,在所述电子设备向所述第一联系人发送所述第一对话消息之前,还包括:The method according to any one of claims 11-14, wherein before the electronic device sends the first conversation message to the first contact, the method further comprises:
    所述电子设备对所述第一对话消息中的敏感信息单元进行遮盖处理,所述遮盖处理包括虚化、打马赛克或生成水印中的一项或多项。The electronic device performs masking processing on the sensitive information unit in the first dialog message, and the masking processing includes one or more of blurring, mosaicing, or generating a watermark.
  16. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    触摸屏,所述触摸屏包括触敏表面和显示屏;A touch screen, the touch screen including a touch-sensitive surface and a display screen;
    通信模块;Communication module
    一个或多个处理器;One or more processors;
    一个或多个存储器;One or more memories;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述一个或多个存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行以下步骤:And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions, when the instructions are executed by the electronic device When the time, the electronic device is caused to perform the following steps:
    显示与第一联系人的对话界面;Display the dialogue interface with the first contact;
    接收用户在所述对话界面中输入的第一对话消息;Receiving the first dialogue message input by the user in the dialogue interface;
    识别到所述第一对话消息中包含隐私内容;所述隐私内容与第一亲密等级关联,所述第一亲密等级为所述第一联系人与用户之间的亲密等级;It is recognized that the first conversation message includes private content; the private content is associated with a first intimacy level, and the first intimacy level is the intimacy level between the first contact and the user;
    提示用户向所述第一联系人发送所述第一对话消息的安全风险。The user is prompted to send the security risk of the first conversation message to the first contact.
  17. 根据权利要求16所述的电子设备,其特征在于,所述电子设备识别所述第一对话消息中包含隐私内容,具体包括:The electronic device of claim 16, wherein the electronic device recognizing that the first conversation message contains private content specifically includes:
    识别所述第一对话消息中包含的一个或多个敏感信息单元;Identifying one or more sensitive information units included in the first conversation message;
    根据所述第一亲密等级确定所述敏感信息单元是否为隐私内容。Determine whether the sensitive information unit is private content according to the first intimacy level.
  18. 根据权利要求17所述的电子设备,其特征在于,所述电子设备根据所述第一亲密等级确定所述敏感信息单元是否为隐私内容,具体包括:The electronic device according to claim 17, wherein the electronic device determines whether the sensitive information unit is private content according to the first intimacy level, which specifically comprises:
    当所述第一亲密等级为第一级别时,确定所述敏感单元不是隐私内容;When the first intimacy level is the first level, determining that the sensitive unit is not private content;
    当所述第一亲密等级为第二级别时,确定所述敏感单元是隐私内容;其中,在所述第一级别下用户与所述第一联系人的亲密程度,高于在所述第二级别下用户与所述第一联系人的亲密程度。When the first level of intimacy is at the second level, it is determined that the sensitive unit is private content; wherein, the degree of intimacy between the user and the first contact at the first level is higher than that at the second level. The level of intimacy between the user and the first contact person.
  19. 根据权利要求16-18中任一项所述的电子设备,其特征在于,在所述电子设备提示用户向所述第一联系人发送所述第一对话消息的安全风险之前,所述电子设备还用于执行:The electronic device according to any one of claims 16-18, wherein before the electronic device prompts the user to send the first conversation message to the first contact about the security risk, the electronic device Also used to perform:
    计算所述隐私内容在所述第一对话消息中所占的比例;Calculating the proportion of the private content in the first conversation message;
    其中,所述电子设备提示用户向所述第一联系人发送所述第一对话消息的安全风险,具体包括:Wherein, the electronic device prompts the user to send the security risk of the first conversation message to the first contact, specifically including:
    当所述比例大于阈值时,提示用户向所述第一联系人发送所述第一对话消息的安全风险。When the ratio is greater than the threshold, the user is prompted for a security risk of sending the first conversation message to the first contact.
  20. 根据权利要求16-19中任一项所述的电子设备,其特征在于,所述电子设备提示用户向所述第一联系人发送所述第一对话消息的安全风险,具体包括:The electronic device according to any one of claims 16-19, wherein the electronic device prompts the user to send the first conversation message to the first contact of a security risk, which specifically includes:
    在所述对话界面中显示提示消息,所述提示消息用于提示用户向所述第一联系人发送所述第一对话消息的安全风险。A prompt message is displayed in the dialogue interface, and the prompt message is used to prompt the user to send the first dialogue message to the first contact for a security risk.
  21. 根据权利要求20所述的电子设备,其特征在于,所述提示消息中包括第一提示框和第二提示框;所述第一提示框用于指示继续发送所述第一对话消息,所述第二提示框用于指 示取消发送所述第一对话消息;The electronic device according to claim 20, wherein the prompt message includes a first prompt box and a second prompt box; the first prompt box is used to instruct to continue sending the first dialog message, the The second prompt box is used to instruct to cancel sending the first dialog message;
    在所述电子设备在所述对话界面中显示提示消息之后,所述电子设备还用于执行:After the electronic device displays the prompt message in the dialog interface, the electronic device is further configured to execute:
    若检测到用户根据第一提示框的操作,则向所述第一联系人发送所述第一对话消息;If it is detected that the user operates according to the first prompt box, sending the first conversation message to the first contact;
    若检测到用户根据第二提示框的操作,则取消向所述第一联系人发送所述第一对话消息。If it is detected that the user operates according to the second prompt box, cancel sending the first conversation message to the first contact.
  22. 根据权利要求21所述的电子设备,其特征在于,在所述电子设备向所述第一联系人发送所述第一对话消息之前,所述电子设备还用于执行:The electronic device of claim 21, wherein before the electronic device sends the first conversation message to the first contact, the electronic device is further configured to execute:
    对所述第一对话消息中的隐私内容进行遮盖处理,所述遮盖处理包括虚化、打马赛克或生成水印中的一项或多项。Masking processing is performed on the private content in the first dialog message, and the masking processing includes one or more of blurring, mosaicing, or generating a watermark.
  23. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    触摸屏,所述触摸屏包括触敏表面和显示屏;A touch screen, the touch screen including a touch-sensitive surface and a display screen;
    通信模块;Communication module
    一个或多个处理器;One or more processors;
    一个或多个存储器;One or more memories;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述一个或多个存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行以下步骤:And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions, when the instructions are executed by the electronic device When the time, the electronic device is caused to perform the following steps:
    显示与第一联系人的对话界面;Display the dialogue interface with the first contact;
    接收用户在所述对话界面中输入的第一对话消息;Receiving the first dialogue message input by the user in the dialogue interface;
    识别所述第一对话消息中的敏感信息单元;Identifying the sensitive information unit in the first conversation message;
    确定所述敏感信息单元与第一亲密等级不匹配时,提示用户向所述第一联系人发送所述第一对话消息的安全风险;When it is determined that the sensitive information unit does not match the first intimacy level, prompting the user to send the first conversation message to the first contact is a security risk;
    确定所述敏感信息单元与所述第一亲密等级匹配时,向所述第一联系人发送所述第一对话消息,其中,所述第一亲密等级为所述第一联系人与所述用户之间的亲密程度。When it is determined that the sensitive information unit matches the first intimacy level, the first conversation message is sent to the first contact, where the first intimacy level is that the first contact and the user The degree of intimacy between.
  24. 根据权利要求23所述的电子设备,其特征在于,The electronic device according to claim 23, wherein:
    当所述第一亲密等级为第一级别时,所述第一亲密等级与第一类敏感信息匹配;When the first intimacy level is the first level, the first intimacy level matches the first type of sensitive information;
    当所述第一亲密等级为第二级别时,所述第一亲密等级与第二类敏感信息匹配;When the first intimacy level is the second level, the first intimacy level matches the second type of sensitive information;
    其中,在所述第一级别下用户与所述第一联系人的亲密程度,高于在所述第二级别下用户与所述第一联系人的亲密程度;所述第一类敏感信息为所述第二类敏感信息中的子集。Wherein, the degree of intimacy between the user and the first contact under the first level is higher than the degree of intimacy between the user and the first contact under the second level; and the first type of sensitive information is A subset of the second type of sensitive information.
  25. 根据权利要求23或24所述的电子设备,其特征在于,所述电子设备提示用户向所述第一联系人发送所述第一对话消息的安全风险,具体包括:The electronic device according to claim 23 or 24, wherein the electronic device prompts the user to send a security risk of the first conversation message to the first contact, specifically comprising:
    在所述对话界面中显示提示消息,所述提示消息用于提示用户向所述第一联系人发送所述第一对话消息的安全风险。A prompt message is displayed in the dialogue interface, and the prompt message is used to prompt the user to send the first dialogue message to the first contact for a security risk.
  26. 根据权利要求25所述的电子设备,其特征在于,所述提示消息中包括第一提示框和第二提示框;所述第一提示框用于指示继续发送所述第一对话消息,所述第二提示框用于指示取消发送所述第一对话消息;The electronic device according to claim 25, wherein the prompt message includes a first prompt box and a second prompt box; the first prompt box is used to instruct to continue sending the first dialog message, the The second prompt box is used to instruct to cancel sending the first dialog message;
    在所述电子设备在所述对话界面中显示提示消息之后,所述电子设备还用于执行:After the electronic device displays the prompt message in the dialog interface, the electronic device is further configured to execute:
    若检测到用户根据第一提示框的操作,则向所述第一联系人发送所述第一对话消息;If it is detected that the user operates according to the first prompt box, sending the first conversation message to the first contact;
    若检测到用户根据第二提示框的操作,则取消向所述第一联系人发送所述第一对话消息。If it is detected that the user operates according to the second prompt box, cancel sending the first conversation message to the first contact.
  27. 根据权利要求23-26中任一项所述的电子设备,其特征在于,在所述电子设备向所述第一联系人发送所述第一对话消息之前,所述电子设备还用于执行:26. The electronic device according to any one of claims 23-26, wherein before the electronic device sends the first conversation message to the first contact, the electronic device is further configured to execute:
    对所述第一对话消息中的敏感信息单元进行遮盖处理,所述遮盖处理包括虚化、打马赛克或生成水印中的一项或多项。Masking processing is performed on the sensitive information unit in the first dialog message, and the masking processing includes one or more of blurring, mosaicing, or generating watermark.
  28. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-10或权利要求11-15中任一项所述的对话消息的发送方法。A computer-readable storage medium having instructions stored in the computer-readable storage medium, characterized in that, when the instructions are executed on an electronic device, the electronic device is caused to execute as claimed in claims 1-10 or The dialog message sending method described in any one of 11-15.
  29. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-10或权利要求11-15中任一项所述的对话消息的发送方法。A computer program product containing instructions, characterized in that, when the computer program product runs on an electronic device, the electronic device is caused to execute any one of claims 1-10 or 11-15. The method of sending conversation messages.
PCT/CN2020/083019 2019-04-10 2020-04-02 Dialogue message sending method and electronic device WO2020207326A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910286091.2 2019-04-10
CN201910286091.2A CN110177074B (en) 2019-04-10 2019-04-10 Method for sending conversation message and electronic equipment

Publications (1)

Publication Number Publication Date
WO2020207326A1 true WO2020207326A1 (en) 2020-10-15

Family

ID=67689697

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/083019 WO2020207326A1 (en) 2019-04-10 2020-04-02 Dialogue message sending method and electronic device

Country Status (2)

Country Link
CN (1) CN110177074B (en)
WO (1) WO2020207326A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110177074B (en) * 2019-04-10 2021-02-12 华为技术有限公司 Method for sending conversation message and electronic equipment
CN110737916A (en) * 2019-09-30 2020-01-31 青岛海信移动通信技术股份有限公司 Communication terminal and processing method
CN110765502B (en) * 2019-10-30 2022-02-18 Oppo广东移动通信有限公司 Information processing method and related product
CN112596907B (en) 2019-12-31 2021-12-03 华为技术有限公司 Method for occupying equipment and electronic equipment
CN113328923B (en) * 2020-02-28 2023-04-18 阿里巴巴集团控股有限公司 Presentation method, server, client, electronic device and computer readable medium
CN111600847A (en) * 2020-04-22 2020-08-28 维沃移动通信有限公司 Information processing method and electronic equipment
CN112003781B (en) * 2020-08-26 2022-08-16 维沃移动通信(深圳)有限公司 Chat message sending method and device and electronic equipment
CN112287691B (en) * 2020-11-10 2024-02-13 深圳市天彦通信股份有限公司 Conference recording method and related equipment
CN115150172B (en) * 2022-07-01 2023-08-11 北京百度网讯科技有限公司 Data processing method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150312197A1 (en) * 2014-04-25 2015-10-29 International Business Machines Corporation Prevention of sending messages by mistake
CN105472118A (en) * 2014-09-09 2016-04-06 北京金山安全软件有限公司 Method and device for delaying information sending of terminal and mobile terminal
US20160301646A1 (en) * 2015-04-07 2016-10-13 International Business Machines Corporation Social conversation management
CN107889070A (en) * 2017-11-08 2018-04-06 广东欧珀移动通信有限公司 Image processing method, device, terminal and computer-readable recording medium
CN108039995A (en) * 2017-10-25 2018-05-15 努比亚技术有限公司 Message sending control method, terminal and computer-readable recording medium
CN110177074A (en) * 2019-04-10 2019-08-27 华为技术有限公司 A kind of sending method and electronic equipment of conversation message

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4566474B2 (en) * 2001-07-30 2010-10-20 パナソニック株式会社 Image processing apparatus and image processing method
US20150235289A1 (en) * 2012-05-17 2015-08-20 Leo Jeremias Computer system and methods for chat enabled online search
CN105095366B (en) * 2015-06-26 2018-05-08 小米科技有限责任公司 Word message treating method and apparatus
CN104992096B (en) * 2015-06-30 2019-08-13 Oppo广东移动通信有限公司 A kind of data guard method and mobile terminal
CN105955566A (en) * 2016-04-21 2016-09-21 深圳市金立通信设备有限公司 Method for information prompt, and terminal
WO2018052856A1 (en) * 2016-09-18 2018-03-22 Alibaba Group Holding Limited Method and system for private communication

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150312197A1 (en) * 2014-04-25 2015-10-29 International Business Machines Corporation Prevention of sending messages by mistake
CN105472118A (en) * 2014-09-09 2016-04-06 北京金山安全软件有限公司 Method and device for delaying information sending of terminal and mobile terminal
US20160301646A1 (en) * 2015-04-07 2016-10-13 International Business Machines Corporation Social conversation management
CN108039995A (en) * 2017-10-25 2018-05-15 努比亚技术有限公司 Message sending control method, terminal and computer-readable recording medium
CN107889070A (en) * 2017-11-08 2018-04-06 广东欧珀移动通信有限公司 Image processing method, device, terminal and computer-readable recording medium
CN110177074A (en) * 2019-04-10 2019-08-27 华为技术有限公司 A kind of sending method and electronic equipment of conversation message

Also Published As

Publication number Publication date
CN110177074A (en) 2019-08-27
CN110177074B (en) 2021-02-12

Similar Documents

Publication Publication Date Title
WO2020207326A1 (en) Dialogue message sending method and electronic device
AU2019385366B2 (en) Voice control method and electronic device
US11722449B2 (en) Notification message preview method and electronic device
CN110910872B (en) Voice interaction method and device
EP3923274A1 (en) Voice interaction method and electronic device
US20240179237A1 (en) Screenshot Generating Method, Control Method, and Electronic Device
CN110825469A (en) Voice assistant display method and device
US11837217B2 (en) Message playing method and terminal
US20210390171A1 (en) Method for Managing Application Permission and Electronic Device
WO2020259554A1 (en) Learning-based keyword search method, and electronic device
WO2021223681A1 (en) Intelligent reminding method and device
CN113170019A (en) Caller identification method based on application and terminal equipment
US20230418630A1 (en) Operation sequence adding method, electronic device, and system
WO2023273543A1 (en) Folder management method and apparatus
WO2020216144A1 (en) Method for adding mail contact, and electronic device
US20230308604A1 (en) Video call making method, terminal device, and storage medium
CN111339513B (en) Data sharing method and device
CN114664306A (en) Method, electronic equipment and system for editing text
CN117273687B (en) Card punching recommendation method and electronic equipment
EP4290375A1 (en) Display method, electronic device and system
EP4287014A1 (en) Display method, electronic device, and system
CN115883710A (en) Identification method and device for incoming call number

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: 20786752

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20786752

Country of ref document: EP

Kind code of ref document: A1