Method for providing secure call function and electronic device therefor

The dual execution environment system in electronic devices authenticates users and restricts unauthorized data transmission during calls, addressing deepfake threats by ensuring secure and trusted data exchange.

WO2026245604A1PCT designated stage Publication Date: 2026-11-26SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2026/005791
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-07-02
Filing Date
2026-04-30
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing technologies struggle to prevent deepfake data manipulation during voice or video calls, leading to security threats such as identity impersonation and data theft, as they fail to effectively authenticate users and restrict unauthorized data transmission.

Method used

An electronic device employs a dual execution environment system, where a secure call function is established using a trusted execution environment (TEE) to authenticate users and restrict access to hardware functions, ensuring only trusted data is transmitted during calls.

Benefits of technology

This approach enhances call security by preventing unauthorized data transmission and ensuring only trusted data is shared, thereby mitigating risks associated with deepfake technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2026005791_26112026_PF_FP_ABST
    Figure KR2026005791_26112026_PF_FP_ABST
Patent Text Reader

Abstract

An electronic device according to an embodiment disclosed in the present document may comprise: a communication circuit; at least one processor; and a memory for storing instructions and a plurality of execution environments including a first execution environment and a second execution environment. The instructions may cause, when executed by the at least one processor, the electronic device to: when a call connection request for an external electronic device is identified using a first application executed in a first execution environment, execute a second application executed in a second execution environment in response to execution of the first application; transmit, to a first designated server, a first signal including the call connection request while the second application is being executed; and in response to receiving, from a second designated server, a second signal indicating that the call connection request is accepted by the external electronic device, establish a call connection with the external electronic device, wherein, while the call connection with the external electronic device is established, access of an application, which is unrelated to the call, to one or more hardware functions related to the call is restricted by the second execution environment, and the first designated server and the second designated server are either the same server or different servers. Various other embodiments identified through the present document are also possible.
Need to check novelty before this filing date? Find Prior Art

Description

Method for providing a secure calling function and the electronic device thereof

[0001] The present disclosure relates to a method for providing a secure calling function and an electronic device thereof.

[0002] Recently, as deep learning-based deepfake technology has become more sophisticated, crimes involving the use of deepfake data to deceive others during voice or video calls are on the rise. For example, damages such as demands for money or theft of personal information are occurring by impersonating identities through real-time video manipulation or voice synthesis. To prevent these security threats, there is a growing need for technology capable of user authentication or detecting forgery during calls.

[0003] The information described above may be provided as related art for the purpose of aiding understanding of the present disclosure. No claim or determination is made as to whether any of the foregoing may be applied as prior art related to the present disclosure.

[0004] An electronic device according to one embodiment of the present disclosure may include a communication circuit, at least one processor, and a memory that stores a plurality of execution environments, including a first execution environment and a second execution environment, and stores instructions. The instructions may be executed by the at least one processor so that when the electronic device confirms a call connection request to an external electronic device using a first application executed in the first execution environment, it executes a second application executed in the second execution environment in correspondence with the execution of the first application. The instructions may be executed by the at least one processor so that the electronic device transmits a first signal including the call connection request using the communication circuit while the second application is executed to a first designated server. The instructions may be executed by the at least one processor so that the electronic device establishes a call connection with the external electronic device in response to receiving a second signal from a second designated server indicating acceptance of the call connection request from the external electronic device. The above instructions are executed by the at least one processor, and while the electronic device is establishing a call connection with the external electronic device, access by an application unrelated to the call to one or more hardware functions related to the call is restricted by the second execution environment, and the first designated server and the second designated server may be the same or different servers.

[0005] A method according to one embodiment of the present disclosure may include an operation of confirming a call connection request to an external electronic device using a first application executed in the first execution environment, in an electronic device capable of operating a plurality of execution environments including a first execution environment and a second execution environment. The method may include an operation of executing a second application in the second execution environment corresponding to the execution of the first application. The method may include an operation of transmitting a first signal including the call connection request to a first designated server while the second application is executed. The method may include an operation of receiving a second signal from the second designated server indicating that the external electronic device accepts the call connection request. The method may include an operation of establishing a call connection with the external electronic device in response to the reception of the second signal. The method may restrict access by an application unrelated to the call to one or more hardware functions related to the call by the second execution environment while the call connection with the external electronic device is established, and the first designated server and the second designated server may be the same or different servers.

[0006] A computer-readable recording medium according to one embodiment of the present disclosure may include programs executable on a computer. The programs may perform an operation of confirming a call connection request to an external electronic device using a first application executed in the first execution environment in an electronic device capable of operating a plurality of execution environments including a first execution environment and a second execution environment. The programs may perform an operation of executing a second application in the second execution environment corresponding to the execution of the first application. The programs may perform an operation of transmitting a first signal including the call connection request to a first designated server while the second application is executed. The programs may perform an operation of receiving a second signal from the second designated server indicating acceptance of the call connection request from the external electronic device. The programs may perform an operation of establishing a call connection with the external electronic device in response to the reception of the second signal.

[0007] FIG. 1 is a block diagram of an electronic device in a network environment according to one embodiment.

[0008] FIG. 2 is a drawing illustrating a program according to various embodiments.

[0009] FIG. 3 is a diagram illustrating the configuration of an electronic device according to one embodiment.

[0010] FIG. 4 is a diagram illustrating a plurality of execution environments operated in an electronic device according to one embodiment.

[0011] FIG. 5 is a diagram illustrating a method for establishing a secure call according to one embodiment.

[0012] FIG. 6 is a diagram illustrating a method for establishing a secure call when a secure call application is installed on both the first electronic device and the second electronic device according to one embodiment.

[0013] FIG. 7 is a diagram illustrating a method for establishing a secure call when a secure call application is installed only on a first electronic device that sends a call request, according to one embodiment.

[0014] FIG. 8 is a diagram illustrating a method for establishing a secure call when a secure call application is installed only on a second electronic device that receives a call request, according to one embodiment.

[0015] FIG. 9 is a flowchart illustrating a method of operation of an electronic device according to one embodiment.

[0016] FIG. 10 is a diagram illustrating a method of providing a user interface while a secure call connection is established in an electronic device according to one embodiment.

[0017] In relation to the description of the drawings, the same or similar reference numerals may be used for identical or similar components.

[0018] Hereinafter, various embodiments of the present disclosure are described with reference to the attached drawings. It should be understood that the various embodiments of the present disclosure are not intended to limit the present disclosure to a specific form and include various modifications, equivalents, and / or alternatives of the present disclosure.

[0019] With the recent increase in crimes involving deceiving others using video or voice calls, various methods are being attempted to protect users from such criminal acts. For example, electronic devices may provide a user interface that allows users to report and register phone numbers associated with fraud (e.g., spam, voice phishing, etc.), or provide a user interface that displays a notification and allows users to reject incoming calls if the incoming number is identified as being associated with fraud. However, it remains difficult to identify acts of transmitting manipulated data (e.g., deepfake video or audio) during a call regardless of the caller ID, so countermeasures are required.

[0020] In various embodiments of the present disclosure, an electronic device provides a secure call function through a designated application utilizing a security system, and while a secure call is established with an external electronic device, the electronic device may process and transmit only data obtained from a trusted device or from components included in the calling electronic device (e.g., camera, microphone) to the external electronic device. Additionally, various embodiments of the present disclosure may provide various embodiments for preventing damage caused by manipulated data by restricting the transmission of data obtained through another application (or program) while the secure call connection with the external electronic device is maintained.

[0021] The technical problems to be solved in this disclosure are not limited to those mentioned above, and other technical problems not mentioned will be clearly understood by those skilled in the art to which this disclosure pertains.

[0022] FIG. 1 is a drawing illustrating an electronic device in a network environment (100) according to one embodiment.

[0023] Referring to FIG. 1, in a network environment (100), an electronic device (101) may communicate with an electronic device (102) through a first network (198) (e.g., a short-range wireless communication network) or with at least one of an electronic device (104) or a server (108) through a second network (199) (e.g., a long-range wireless communication network). According to one embodiment, the electronic device (101) may communicate with the electronic device (104) through a server (108). According to one embodiment, the electronic device (101) may include a processor (120), memory (130), input module (150), sound output module (155), display module (160), audio module (170), sensor module (176), interface (177), connection terminal (178), haptic module (179), camera module (180), power management module (188), battery (189), communication module (190), subscriber identification module (196), or antenna module (197). In some embodiments, at least one of these components (e.g., connection terminal (178)) may be omitted from the electronic device (101), or one or more other components may be added. In some embodiments, some of these components (e.g., sensor module (176), camera module (180), or antenna module (197)) may be integrated into a single component (e.g., display module (160)).

[0024] The processor (120) can control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) by executing software (e.g., a program (140)), and can perform various data processing or operations. According to one embodiment, as at least part of the data processing or operations, the processor (120) can store commands or data received from other components (e.g., a sensor module (176) or a communication module (190)) in volatile memory (132), process the commands or data stored in volatile memory (132), and store the resulting data in non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or an auxiliary processor (123) that can operate independently or together with it (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, if the electronic device (101) includes a main processor (121) and an auxiliary processor (123), the auxiliary processor (123) may be configured to use lower power than the main processor (121) or to be specialized for a designated function. The auxiliary processor (123) may be implemented separately from the main processor (121) or as part thereof.

[0025] The auxiliary processor (123) may control at least some of the functions or states associated with at least one component of the electronic device (101) (e.g., display module (160), sensor module (176), or communication module (190)) on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. According to one embodiment, the auxiliary processor (123) (e.g., image signal processor or communication processor) may be implemented as part of another functionally related component (e.g., camera module (180) or communication module (190)). According to one embodiment, the auxiliary processor (123) (e.g., neural network processing unit) may include a hardware structure specialized for processing an artificial intelligence model. The artificial intelligence model may be generated through machine learning. Such learning may be performed, for example, on the electronic device (101) itself where the artificial intelligence model is executed, or through a separate server (e.g., server (108)). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model may include a plurality of artificial neural network layers.An artificial neural network may be a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to the hardware structure, the artificial intelligence model may include a software structure, either additionally or substantially.

[0026] The memory (130) can store various data used by at least one component of the electronic device (101) (e.g., processor (120) or sensor module (176)). The data may include, for example, input data or output data for software (e.g., program (140)) and related commands. The memory (130) may include volatile memory (132) or non-volatile memory (134).

[0027] The program (140) may be stored as software in memory (130) and may include, for example, an operating system (142), middleware (144), or an application (146).

[0028] The input module (150) can receive commands or data to be used for a component of the electronic device (101) (e.g., processor (120)) from outside the electronic device (101) (e.g., user). The input module (150) may include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).

[0029] The sound output module (155) can output a sound signal to the outside of the electronic device (101). The sound output module (155) may include, for example, a speaker or a receiver. The speaker may be used for general purposes, such as multimedia playback or recording playback. The receiver may be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from the speaker or as part thereof.

[0030] The display module (160) can visually provide information to an external (e.g., user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling said device. According to one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of the force generated by said touch.

[0031] The audio module (170) can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150) or output sound through the sound output module (155) or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphones) connected directly or wirelessly to the electronic device (101).

[0032] The sensor module (176) can detect the operating state of the electronic device (101) (e.g., power or temperature) or the external environmental state (e.g., user state) and generate an electrical signal or data value corresponding to the detected state. According to one embodiment, the sensor module (176) may include, for example, a gesture sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an accelerometer sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biosensor, a temperature sensor, a humidity sensor, or an illuminance sensor.

[0033] The interface (177) may support one or more specified protocols that can be used for the electronic device (101) to be connected directly or wirelessly to an external electronic device (e.g., electronic device (102)). According to one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

[0034] The connection terminal (178) may include a connector through which the electronic device (101) can be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0035] The haptic module (179) can convert an electrical signal into a mechanical stimulus (e.g., vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic senses. According to one embodiment, the haptic module (179) may include, for example, a motor, a piezoelectric element, or an electric stimulation device.

[0036] The camera module (180) can capture still images and video. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.

[0037] The power management module (188) can manage power supplied to the electronic device (101). According to one embodiment, the power management module (188) can be implemented, for example, as at least part of a power management integrated circuit (PMIC).

[0038] The battery (189) can supply power to at least one component of the electronic device (101). According to one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

[0039] The communication module (190) can support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between an electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may include one or more communication processors that operate independently of the processor (120) (e.g., application processor) and support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., cellular communication module, short-range wireless communication module, or GNSS (global navigation satellite system) communication module) or a wired communication module (194) (e.g., LAN (local area network) communication module, or power line communication module). The corresponding communication module among these communication modules can communicate with an external electronic device (104) through a first network (198) (e.g., a short-range communication network such as Bluetooth, Wi-Fi (wireless fidelity) direct or IrDA (infrared data association)) or a second network (199) (e.g., a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules may be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) can identify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) using subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module (196).

[0040] The wireless communication module (192) can support 5G networks and next-generation communication technologies following 4G networks, for example, new radio access technology. NR access technology can support high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and connection of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low-latency communications (URLLC)). The wireless communication module (192) can support a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate, for example. The wireless communication module (192) can support various technologies for securing performance in the high-frequency band, such as beamforming, massive MIMO (multiple-input and multiple-output), full-dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large-scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), external electronic device (e.g., electronic device (104)), or network system (e.g., second network (199)). According to one embodiment, the wireless communication module (192) can support a Peak data rate (e.g., 20 Gbps or more) for realizing eMBB, loss coverage (e.g., 164 dB or less) for realizing mMTC, or U-plane latency (e.g., downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less) for realizing URLLC.

[0041] An antenna module (197) can transmit a signal or power to an external source (e.g., an external electronic device) or receive it from an external source. According to one embodiment, the antenna module (197) may include an antenna comprising a radiator made of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). According to one embodiment, the antenna module (197) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as a first network (198) or a second network (199), may be selected from the plurality of antennas, for example, by a communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device through the selected at least one antenna. According to some embodiments, in addition to the radiator, other components (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as part of the antenna module (197).

[0042] According to various embodiments, the antenna module (197) may form a mmWave antenna module. According to one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent to a first surface (e.g., bottom surface) of the printed circuit board and capable of supporting a specified high frequency band (e.g., mmWave band), and a plurality of antennas (e.g., array antennas) disposed on or adjacent to a second surface (e.g., top surface or side surface) of the printed circuit board and capable of transmitting or receiving a signal of the specified high frequency band.

[0043] At least some of the above components can be connected to each other via a communication method between peripheral devices (e.g., bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)) and exchange signals (e.g., commands or data) with each other.

[0044] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) through a server (108) connected to a second network (199). Each of the external electronic devices (102, or 104) may be the same or different type of device as the electronic device (101). According to one embodiment, all or part of the operations performed on the electronic device (101) may be performed on one or more of the external electronic devices (102, 104, or 108). For example, if the electronic device (101) needs to perform a function or service automatically or in response to a request from a user or another device, the electronic device (101) may request one or more external electronic devices to perform at least part of the function or service instead of performing the function or service itself or additionally. One or more external electronic devices that receive the above request may execute at least part of the requested function or service, or additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may provide the result as is or additionally processed as at least part of the response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device (101) may provide ultra-low latency services using, for example, distributed computing or mobile edge computing. In one embodiment, the external electronic device (104) may include an Internet of Things (IoT) device. The server (108) may be an intelligent server using machine learning and / or neural networks. According to one embodiment, the external electronic device (104) or the server (108) may be included within the second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

[0045] FIG. 2 is a block diagram (200) illustrating a program (140) according to various embodiments. According to one embodiment, the program (140) may include an operating system (142), middleware (144), or an application (146) executable on the operating system (142) for controlling one or more resources of an electronic device (101). The operating system (142) is, for example, Android TM , iOS TM , Windows TM , Symbian TM , Tizen TM , or Bada TM It may include. At least some of the programs (140) may be preloaded into the electronic device (101) at manufacturing time, for example, or downloaded or updated from an external electronic device (e.g., electronic device (102 or 104), or server (108)) when used by a user.

[0046] The operating system (142) can control the management (e.g., allocation or reclamation) of one or more system resources (e.g., processes, memory, or power) of the electronic device (101). The operating system (142) may additionally or substantially include one or more driver programs for driving other hardware devices of the electronic device (101), e.g., an input module (150), an audio output module (155), a display module (160), an audio module (170), a sensor module (176), an interface (177), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197).

[0047] Middleware (144) may provide various functions to an application (146) so that functions or information provided from one or more resources of an electronic device (101) can be used by the application (146). Middleware (144) may include, for example, an application manager (201), a window manager (203), a multimedia manager (205), a resource manager (207), a power manager (209), a database manager (211), a package manager (213), a connectivity manager (215), a notification manager (217), a location manager (219), a graphics manager (221), a security manager (223), a call manager (225), or a voice recognition manager (227).

[0048] The application manager (201) can, for example, manage the life cycle of the application (146). The window manager (203) can, for example, manage one or more GUI resources used on the screen. The multimedia manager (205) can, for example, identify one or more formats required for the playback of media files and perform encoding or decoding of the corresponding media files among the media files using a codec that matches the selected corresponding format. The resource manager (207) can, for example, manage the source code of the application (146) or the memory space of the memory (130). The power manager (209) can, for example, manage the capacity, temperature, or power of the battery (189) and, using the relevant information, determine or provide relevant information required for the operation of the electronic device (101). According to one embodiment, the power manager (209) can interact with the BIOS (basic input / output system) (not shown) of the electronic device (101).

[0049] The database manager (211) can, for example, create, search, or modify a database to be used by the application (146). The package manager (213) can, for example, manage the installation or update of the application distributed in the form of a package file. The connectivity manager (215) can, for example, manage a wireless or direct connection between the electronic device (101) and an external electronic device. The notification manager (217) can, for example, provide a function to notify the user of the occurrence of a specified event (e.g., an incoming call, a message, or an alarm). The location manager (219) can, for example, manage location information of the electronic device (101). The graphics manager (221) can, for example, manage one or more graphic effects or related user interfaces to be provided to the user.

[0050] The security manager (223) may, for example, provide system security or user authentication. The telephony manager (225) may, for example, manage voice call functions or video call functions provided by the electronic device (101). The voice recognition manager (227) may, for example, transmit user voice data to the server (108) and receive from the server (108) a command corresponding to a function to be performed on the electronic device (101) based on at least part of the voice data, or text data converted based on at least part of the voice data. According to one embodiment, the middleware (144) may dynamically delete some existing components or add new components. According to one embodiment, at least part of the middleware (144) may be included as part of the operating system (142) or implemented as separate software different from the operating system (142).

[0051] The application (146) may include, for example, a home (251), a dialer (253), an SMS / MMS (255), an IM (instant message) (257), a browser (259), a camera (261), an alarm (263), a contact (265), a voice recognition (267), an email (269), a calendar (271), a media player (273), an album (275), a watch (277), a health (279) (e.g., measuring biometric information such as exercise volume or blood sugar), or an environmental information (281) (e.g., measuring atmospheric pressure, humidity, or temperature information). According to one embodiment, the application (146) may further include an information exchange application (not shown) capable of supporting information exchange between the electronic device (101) and an external electronic device. The information exchange application may include, for example, a notification relay application configured to transmit information (e.g., a call, a message, or an alarm) designated to an external electronic device, or a device management application configured to manage the external electronic device. The notification relay application may transmit notification information corresponding to a designated event (e.g., receiving mail) generated in another application of the electronic device (101) (e.g., an email application (269)) to the external electronic device. Additionally or alternatively, the notification relay application may receive notification information from the external electronic device and provide it to the user of the electronic device (101).

[0052] A device management application can control the power (e.g., turn-on or turn-off) or function (e.g., brightness, resolution, or focus) of an external electronic device or a part of its components (e.g., a display module or camera module of the external electronic device) that communicates with the electronic device (101). The device management application can additionally or substantially support the installation, deletion, or updating of applications running on the external electronic device.

[0053] FIG. 3 is a drawing illustrating the configuration of an electronic device (300) according to one embodiment.

[0054] Referring to FIG. 3, the electronic device (300) is a device that provides a secure call function with an external electronic device while operating a plurality of execution environments, and may include a communication circuit (310), a camera (320), a display (330), at least one processor (340), and a memory (350). In FIG. 3, the electronic device (300) may correspond to the electronic device (101) shown in FIG. 1.

[0055] In one embodiment, the communication circuit (310) (e.g., the communication module (190) of FIG. 1) supports a communication connection with an external electronic device and / or server, and can transmit various data to or receive from an external electronic device. Depending on various embodiments, the communication circuit (310) may support at least one communication method among cellular communication, Wi-Fi (wireless-fidelity), Bluetooth, NFC (near field communication), or UWB (ultra-wide band) communication.

[0056] In one embodiment, the camera (320) (e.g., the camera module (180) of FIG. 1) can acquire an image captured according to the operation of the user. For example, the camera (320) can acquire at least one image based on user input (e.g., a shooting command or shutter button input) while a call is connected with an external electronic device. In another example, the camera (320) can acquire image data of the user and / or their surroundings while performing a video call with an external electronic device.

[0057] In one embodiment, the display (330) (e.g., the display module (160) of FIG. 1) can display various information corresponding to user operations. For example, the display (330) can display images acquired using the camera (320) while a call is connected with an external electronic device. In another example, the display (330) can display a user interface indicating that a call is in progress while a call is connected with an external electronic device.

[0058] In one embodiment, the display (330) may be composed of at least one of an LCD (liquid crystal display), a TFT-LCD (thin film transistor LCD), an OLED (organic light emitting diodes), an LED, an AMOLED (active matrix organic LED), a flexible display, and a 3-dimensional display. Additionally, some of these displays may be configured to be transparent or light-transmitting so that the outside can be seen through them. This may be configured in the form of a transparent display including a TOLED (transparent OLED).

[0059] In one embodiment, memory (350) (e.g., memory (130) of FIG. 1) may store a plurality of execution environments, including a first execution environment and a second execution environment, having different security levels. Here, the first execution environment may include a rich execution environment (REE), and the second execution environment may include a trusted execution environment (TEE).

[0060] In one embodiment, the memory (350) may store instructions that cause the electronic device (300) to perform various operations by at least one processor (340) (e.g., processor (120) of FIG. 1) at the time of execution. For example, at least one processor (340) may control the electronic device (300) to perform operations to establish a secure call connection with an external electronic device and to restrict access by other applications (or programs) to one or more hardware included in the electronic device (300) while the secure call connection is established.

[0061] In one embodiment, at least one processor (340) can check for a secure call connection request to an external electronic device using a first application running in a first execution environment. The first application may be an application that provides a secure call function. According to various embodiments, when at least one processor (340) confirms that the secure call connection request is entered by a user, it may identify whether an application corresponding to the first application, i.e., an application that provides the same secure call function, is installed on the external electronic device that is the target of the secure call connection request, and provide information thereon. For example, at least one processor (340) may display whether the application is installed on a contact list provided through the execution screen of the first application.

[0062] In one embodiment, at least one processor (340) may execute a second application in a second execution environment in response to the execution of the first application. The second execution environment may be an execution environment having a higher security level than the first execution environment. The second application may be a trusted application (hereinafter TA) that processes operations requiring security, and may be an application executed in the second execution environment in response to the execution of the first application to provide a secure call function. At least one processor (340) may recognize the execution of the first application as a trigger and execute the second application in the second execution environment.

[0063] According to various embodiments, an application providing a secure call function with the external electronic device may be an application executed in the second execution environment. In this case, at least one processor (340) may confirm that a request for a secure call connection to the external electronic device is input using the second application, even if the first application is not executed in the first execution environment, and may perform a procedure to establish a secure call connection with the external electronic device.

[0064] In one embodiment, when the second application is executed, at least one processor (340) may additionally execute one or more third applications related to the secure call connection in the second execution environment. The third application is a trusted application (TA) for controlling one or more hardware functions used to provide the secure call function, and may be executed in conjunction with the execution of the second application in the second execution environment. Each of the one or more third applications may correspond to the one or more hardware functions. At least one processor (340) may recognize the execution of the second application as a trigger and execute the one or more third applications in the second execution environment.

[0065] In one embodiment, when at least one processor (340) confirms the occurrence of the secure call connection request, it may perform user authentication before transmitting the secure call connection request. The user authentication may include at least one of various authentication methods that can be performed on the electronic device (300) (e.g., biometric authentication (fingerprint recognition or facial recognition), PIN (personal identification number) authentication, OPT (one-time password) authentication, SMS (short message service) authentication, or email authentication). The user input required during the user authentication process (e.g., fingerprint input, facial image capture, or PIN input) may be performed on the execution screen of a trusted application or a trusted user interface (trusted UI) executed in the second execution environment. For example, when at least one processor (340) confirms the occurrence of the secure call connection request, it may display a user interface requiring user authentication on the display (330) and perform a procedure to transmit the secure call connection request to the external electronic device upon successful authentication.

[0066] In one embodiment, when the second application is executed, at least one processor (340) may generate a first signal to transmit the secure call connection request to the external electronic device using the second application, and transmit the generated first signal to a server using network resources of the first execution environment or the second execution environment. The secure call connection request may include identification information of the target to whom the secure call is to be connected, i.e., the electronic device (300) and the external electronic device. The server may be a server that provides a secure call service in conjunction with the first application and / or the second application, and may include a dedicated server for the first / second application or a server that provides call services on a cellular network. The server may perform the role of relaying the secure call connection between the electronic device (300) and the external electronic device, and the transmission and reception of call connections and / or data while the secure call is connected. The server may transmit the first signal to the external electronic device that is the target of the secure call connection request. When the external electronic device receives the first signal from the server, it may respond whether to accept the secure call connection request. According to various embodiments, when the external electronic device accepts the secure call connection request of the electronic device (300), it may receive the secure call connection request using an application that provides the same secure call function. When the external electronic device accepts the secure call connection request through a first application running in a first execution environment, it may execute a second application in a second execution environment corresponding to the execution of the second application. At this time, the second application may be a trusted application (TA) required to provide the secure call function.When the second application is executed, the external electronic device may generate a second signal to respond to the first signal using the second application. The second signal may be transmitted to the server using network resources of the first execution environment or the second execution environment of the external electronic device. The server may transmit the second signal received from the external electronic device to the electronic device (300). According to various embodiments, the external electronic device may additionally receive a message indicating that the first signal is a signal transmitted by the first application and / or the second application during the process of receiving the first signal. The message may be a secure call-only message transmitted by the first / second application, or a message transmitted via a message service provided by a cellular network (e.g., SMS (short messages service) or RCS (rich communication service)).

[0067] In one embodiment, at least one processor (340) may receive a second signal from a server indicating that the external electronic device has accepted the secure call connection request. At this time, the at least one processor (340) may recognize that the external electronic device has accepted the secure call connection request based on the second signal and may provide information regarding this. For example, the at least one processor (340) may display information on a sending screen indicating that the secure call connection request has been accepted by the external electronic device. In response to the reception of the second signal, the at least one processor (340) may establish a secure call connection with the external electronic device and initiate a secure call with the external electronic device. According to various embodiments, the at least one processor (340) may additionally receive a message indicating that the second signal is a signal sent by the first application and / or the second application during the process of receiving the second signal. The above message may be a message dedicated to a secure call transmitted by the first / second application, or a message transmitted via a message service (e.g., SMS or RCS) provided by a cellular network. According to various embodiments, the external electronic device may transmit a response signal rejecting the secure call connection request or a response signal accepting a call connection as a regular call rather than a secure call to the electronic device (300) via the server. For example, if the response signal of the external electronic device is a signal rejecting the secure call connection request, the secure call connection is not established, and a screen indicating that the secure call connection request is rejected may be displayed on the display (330).In another example, if the response signal of the external electronic device is a signal accepting a call connection to the general call, a general call connection is established between the electronic device (300) and the external electronic device, and the second application may not be executed on the external electronic device. According to various embodiments, the server transmitting the first signal and the server transmitting the second signal between the electronic device (300) and the external electronic device may be the same server or different servers.

[0068] In one embodiment, at least one processor (340) can transmit data acquired while the secure call connection with the external electronic device is established to the second application. The acquired data may be transmitted to the second application through a designated area of ​​memory (350) in a manner that transmits information related to a memory area allocated to one or more hardware functions (e.g., the address of the memory area allocated to the hardware function). The one or more hardware functions are components among the components included in the electronic device (300) that perform operations related to the secure call, and may include, for example, a communication circuit (310), a camera (320), a display (330), a microphone (e.g., the input module (150) of FIG. 1), or an image processing module, and may additionally include at least some of the components described with reference to FIG. 1. The designated area may be a specific shareable area (e.g., a shared memory area) of memory (350) configured to allow the first execution environment and the second execution environment, which cannot directly exchange data, to exchange data. While the secure call connection is established between the electronic device (300) and the external electronic device, the first application of the first execution environment and the second application of the second execution environment may access the designated area of ​​the memory (350) to share the address of data associated with one or more hardware functions acquired during the secure call. For example, at least one image acquired from the camera (320) during the secure call is stored in an area allocated to the camera (320) within the memory (350), and the address of the memory area where the at least one image is stored may be shared with the second application through the designated area of ​​the memory (350).As another example, data received from the external electronic device during the above secure call is stored in an area allocated to the communication circuit (310) within the memory (350), and the address of the memory area where the received data is stored can be shared with the second application through the designated area of ​​the memory (350).

[0069] In one embodiment, at least one processor (340) may transmit to the external electronic device only data obtained from a component included in the electronic device (300) (e.g., camera (320), microphone (e.g., input module (150) of FIG. 1) or one or more sensors (e.g., sensor module (176) of FIG. 1), or a component of the device authenticated by the first / second application, while the first application and / or the second application is running. For example, the device authenticated by the first / second application may include a device (e.g., wireless earphones, smartwatch) connected to the electronic device (300) via a short-range communication method.

[0070] In one embodiment, at least one processor (340) may restrict the execution of other applications unrelated to the secure call connection while the secure call connection with the external electronic device is established. For example, at least one processor (340) may restrict access of the other applications to the one or more hardware functions by the second execution environment while the secure call connection is maintained. For example, at least one processor (340) may restrict access of the other applications to the hardware functions corresponding to each third application by using one or more third applications executed in the second execution environment while the secure call connection is maintained. According to various embodiments, if at least one processor (340) detects access of the other applications to the one or more hardware functions while the secure call connection is established, it may terminate the execution of the other applications or terminate the secure call connection and provide information indicating that access to the hardware functions within the electronic device (300) is being attempted by the other applications. As a result, while the secure call connection is maintained, access by other applications (or programs, services) to the hardware functions of the electronic device (300) is not permitted, and only data generated / processed through the first application and / or the second application can be transmitted to the external electronic device. According to various embodiments, at least one processor (340) may allow data of some applications authenticated by the security system of the electronic device (300) to be processed as data of the secure call and transmitted to the external electronic device while the secure call connection with the external electronic device is established.The above-mentioned partial applications may be applications that are not included in the first application, the second application, or the one or more third applications, but have completed the authentication and registration procedures by the security system of the electronic device (300). When at least one processor (340) confirms that the above-mentioned partial applications are executed while the security call connection is established, it may determine whether to allow the execution of the above-mentioned partial applications by checking whether they are applications that have been authenticated and registered through the security system.

[0071] In one embodiment, at least one processor (340) may display a user interface on a display (330) indicating that the secure call is being connected between the electronic device (300) and the external electronic device while the secure call connection is established.

[0072] In one embodiment, when the secure call is a video call, at least one processor (340) may apply a specified processing to at least one image obtained from the camera (320) while the secure call connection is established and then transmit it to the external electronic device. The specified processing may include an image processing method that superimposes and composites an indicator (e.g., icon, text, image, or watermark) corresponding to the secure call onto the at least one image. According to various embodiments, when the secure call is a video call, at least one processor (340) may process the video data obtained from the camera (320) to display the indicator according to a specified time interval (e.g., the start of the call) or a specified time period (e.g., 10 seconds), or to continuously display the indicator.

[0073] According to various embodiments, the performance of the operation in the second execution environment may be limited compared to the performance of the operation in the first execution environment. Taking into account this performance limitation, at least one processor (340) may adjust the quality of the data exchanged while the secure call connection is established. For example, at least one processor (340) may lower the quality of the voice data by using a low-performance codec (e.g., AMR-NB) among the various codecs supported by the electronic device (300) (e.g., AMR-WB (adaptive multi-rate wideband), EVS (enhanced voice service), Opus, G.711 PCM (pulse code modulation), G.722, AMR-NB (adaptive multi-rate narrowband)) while the secure call connection is maintained. As another example, at least one processor (340) may lower the quality of video data by selecting a camera of lower quality among cameras of various specifications provided in the electronic device (300) when the security call is a video call, or by lowering the video frame rate and / or resolution of the video call.

[0074] In various embodiments, at least one processor (340) may perform mutual authentication during the process of establishing a secure call connection with the external electronic device. At least one processor (340) may verify the second application executed in the second execution environment of the external electronic device using the second application. In this process, the second application executed in the second execution environment of the electronic device (300) and the second application executed in the second execution environment of the external electronic device may perform the mutual authentication by exchanging and verifying key values ​​based on key values ​​associated with each application and identification information and / or user account information of each device. The key values ​​associated with each application may be assigned by the service provider providing the secure call function and / or the electronic device (300) and the manufacturer that manufactured the external electronic device. Once the authentication is completed, at least one processor (340) may perform encryption at the secure call application layer using at least some of the key values ​​to provide the secure call between the electronic device (300) and the external electronic device. For example, the encryption may be performed using at least one of the following methods: AES (advanced encryption standard), RSA (rivest-shamir-adleman), ECC (elliptic curve cryptography), ChaCha20-Poly1305, SHA-256, SHA-394, SHA-512, BLAKE3, ECDSA with NIST P-384, DH (3072 bits or higher), or ECDH with NIST P-384.

[0075] In one embodiment, when at least one processor (340) confirms that the secure call connection with the external electronic device has been terminated, it may terminate the execution of the first application executed in the first execution environment, the second application executed in the second execution environment, and the one or more third applications.

[0076] According to various embodiments, the secure call function may be provided in various form factor terminals (e.g., bar type, foldable type, multi-foldable type, or rollable type). For example, if the electronic device (300) is of the foldable type, the camera used for the secure video call may be determined according to the folding type. As another example, the camera used for the secure video call may be determined according to the secure video call mode selected by the user. In a mode where the user sets to transmit only their own image through the front camera, one camera positioned facing the user may be used for the secure video call, and in a mode where the user sets to transmit the scene they are seeing along with their own image, both the front camera and the rear camera may be used for the secure video call. In one embodiment, the electronic device (300) may execute a third application (e.g., the camera driver TA (433) of FIG. 4) for controlling the camera in a second execution environment while the secure video call is established with an external electronic device. Here, the camera controlled by the third application may be one or more cameras determined to be utilized for the secure video call according to the folding form of the electronic device (300) or the secure video call mode selected by the user. If one camera is used for the secure video call, the third application may control the one camera. If two cameras (e.g., a front camera and a rear camera) are used for the secure video call, the third application may control both cameras.According to various embodiments, when a plurality of cameras (320) are included in the electronic device (300), a third application (e.g., camera driver TA (433) of FIG. 4) corresponding to each of the plurality of cameras (320) may be included in the second execution environment of the electronic device (300). In this case, one or more cameras used for the secure video call are determined according to the folding form of the electronic device (300) or the secure video call mode selected by the user, and a third application corresponding to each of the determined one or more cameras may be executed to control the one or more cameras.

[0077] According to various embodiments, the electronic device (300) may provide a secure message function in a manner similar to the secure call function described above. In this case, the electronic device (300) may execute a second message application in a second execution environment in response to the execution of a first message application in a first execution environment, and may transmit a secure message to an external electronic device to the external electronic device using the second message application. At this time, the secure message transmitted to the external electronic device may include an indicator (e.g., icon, text, image, or watermark) indicating that it is a secure message transmitted by the second message application. While the second message application is executed, the execution of other applications unrelated to the secure message function may be restricted, and only data entered through the security system of the electronic device (300) or an application authenticated / registered by the first / second message application (e.g., a mobile keypad application) may be transmitted to the external electronic device.

[0078] FIG. 4 is a drawing illustrating a plurality of execution environments (400) operated in an electronic device (300) according to one embodiment.

[0079] Referring to FIG. 4, the electronic device (300) may operate an execution environment (400) having multiple security levels to enhance security. For example, the multiple execution environments may include a rich execution environment (REE) (410) and a trusted execution environment (TEE) (420).

[0080] In one embodiment, REE (410) may be a first execution environment having a first security level, and TEE (420) may be a second execution environment having a second security level higher than the first security level. According to various embodiments, the electronic device (300) may include, but is not limited to, an additional other execution environment (e.g., a third execution environment) having a third security level different from the first security level and the second security level.

[0081] In one embodiment, the REE (410) is an area where a general operating system runs and may include a client application (411), a REE communication agent (412), a REE framework (413), or a REE OS (414). Here, the client application (411) may include a first application that provides a secure call connection with an external electronic device.

[0082] In one embodiment, the TEE (420) is an area that enhances security functions and executes only trusted code, and may include a trusted application (421), a TEE communication agent (422), a TEE framework (423), or a TEE OS (424). Here, the trusted application (421) may include a second application that provides a secure call connection with the external electronic device. The REE (410) and the TEE (420) can be understood as independent environments isolated from each other and may operate in a time-sharing manner by alternately using at least one processor (e.g., the processor (120) of FIG. 1 or the processor (340) of FIG. 3) on an hourly basis. Since the REE (410) and the TEE (420) cannot directly exchange data, they may exchange data through a shared memory (441) among the hardware (440) constituting the electronic device (300). The shared memory (441) may correspond to a designated area accessible to both the REE OS (414) and the TEE OS (424) in the physical memory (e.g., memory (130) of FIG. 1 or memory (350) of FIG. 3) included in the electronic device (300). The client application (411) and the trusted application (421) can exchange data by sharing the address values ​​of the data they wish to transmit to each other through the shared memory (441).

[0083] In one embodiment, the electronic device (300) can confirm that a request for a secure call to the external electronic device has occurred through a first application executed in the REE (410). The electronic device (300) may decide to call the REE communication agent (412) of the REE framework (413) to communicate with the TEE communication agent (422) of the TEE (420) in order to establish a secure call connection with the external electronic device in response to the request for a secure call. Depending on various embodiments, if the call request confirmed through the client application (411) is a request to establish a general call connection (not a secure call), the electronic device (300) may decide that communication with the TEE communication agent (422) is not necessary.

[0084] In one embodiment, when the TEE communication agent (422) is called by the REE communication agent (412), the TEE communication agent (422) can call and execute a second application corresponding to the first application among the trusted applications (422) in the TEE (420).

[0085] In one embodiment, when the second application is executed, the electronic device (300) may additionally execute one or more third applications associated with the second application in the TEE (420). The one or more third applications may be trusted applications (TA) executed to control one or more hardware (440) required to provide a secure call function. Depending on various embodiments, the hardware (440) may include a touch sensor (442), a display device (443), a microphone (444), a camera (445), a communication device (446), or an image processing device (447). The one or more third applications may include a touch driver TA (431), a display driver TA (432), a microphone driver TA (433), a camera driver TA (434), a communication device driver TA (435), or an image processing device driver TA (436) to correspond to each of the hardware (440) devices.

[0086] In one embodiment, the one or more third applications may protect other services, programs, or applications of the REE (410) from accessing the hardware (440) device used for the secure call while a secure call connection is established between the electronic device (300) and the external electronic device. For example, the microphone driver TA (433) may restrict access by other services / programs / applications to the microphone (444) while the secure call connection is established. Actions performed in conjunction with the execution of the second application in the TEE (420) may be determined by a policy related to the secure call. Depending on various embodiments, the electronic device (300) may additionally restrict some call functions (e.g., recording, screen recording, or speakerphone mode) while the secure call connection is maintained, according to the policy related to the secure call. The policy related to the secure call may be determined by the settings of the service provider providing the secure call function or the user of the electronic device (300).

[0087] In one embodiment, the electronic device (300) may perform specified image processing on at least one image acquired through the camera (445) while the secure call connection is established, and then transmit it to the external electronic device. For example, at least one image acquired from the camera (445) may be transmitted to the second application running on the TEE (420) via shared memory (441). The second application may use an image processing driver TA (436) to cause an image processing device (447) to perform image processing that composites an indicator (e.g., icon, text, image, or watermark) corresponding to the secure call onto the at least one image. The image data on which the image processing has been performed may be transmitted to the first application running on the REE (410) via shared memory (441) and transmitted to the external electronic device via the network function (e.g., communication device (446)) of the REE (410). According to various embodiments, if the network function can be directly accessed and controlled from the TEE (420), the image data on which the image processing has been performed is not transmitted to the REE (410) but can be transmitted to the external electronic device by the second application executed in the TEE (420).

[0088] In one embodiment, the first application executed in the REE (410) can receive data from the external electronic device using the communication device (446) while the secure call connection is established. Afterward, the electronic device (300) can terminate the execution of the first application and the second application when the secure call with the external electronic device is terminated.

[0089] According to various embodiments, the plurality of execution environments (400) may be applied to the external electronic device receiving the secure call out request of the electronic device (300) in the same way as the electronic device (300).

[0090] According to various embodiments, the electronic device (300) may receive a request for a secure call from an external electronic device. In this case, the electronic device (300) may execute the first application in the REE (410) to receive the request for a secure call, and may decide to call the REE communication agent (412) to communicate with the TEE communication agent (422) of the TEE (420) to accept the secure call connection with the external electronic device. When the TEE communication agent (422) is called by the REE communication agent (412), the TEE communication agent (422) may call and execute a second application corresponding to the first application among the trusted applications (422) in the TEE (420). When the second application is executed, the electronic device (300) may perform actions according to the policy related to the secure call and transmit a response signal accepting the request for a secure call to the external electronic device. When the response signal is received by the external electronic device, a secure call connection may be established between the electronic device (300) and the external electronic device. Subsequently, when the secure call is terminated, the electronic device (300) may terminate the execution of the first application and the second application. When the execution of the second application is terminated, the execution of one or more third applications executed in conjunction with the second application is also terminated, and the protection measures that restricted other services, programs, or applications from accessing the hardware (440) device may also be released.

[0091] FIG. 5 is a diagram illustrating a method of establishing a secure call between a first electronic device (510) and a second electronic device (530) according to one embodiment. The first electronic device (510) and the second electronic device (530) may correspond to the electronic device (101) of FIG. 1 or the electronic device (300) of FIG. 3.

[0092] Referring to FIG. 5, a secure call between a first electronic device (510) and a second electronic device (530) can be performed through a server (520). In one embodiment, the first electronic device (510) can verify user input requesting a secure call connection to the second electronic device (530) through a secure call application and transmit a secure call outgoing signal to the server (520) to establish a secure call connection with the second electronic device (530). The server (520) may be a server that provides a secure call service in conjunction with the secure call application. The server (520) can transmit the secure call outgoing signal received from the first electronic device (510) to the second electronic device (530), which is the connection partner for the secure call.

[0093] In one embodiment, the second electronic device (530) may transmit a security call reception signal to the server (520) to accept a security call request from the first electronic device (410) in response to a security call outgoing signal from the first electronic device (510). The server (520) may transmit the security call reception signal received from the second electronic device (530) to the first electronic device (510). When the first electronic device (510) receives the security call signal, a security call connection may be established between the first electronic device (510) and the second electronic device (530).

[0094] In one embodiment, data (e.g., voice data or video data) exchanged between the first electronic device (510) and the second electronic device (530) while the secure call connection is established can be transmitted through a server (520). The server (520) can perform the role of relaying the transmission and reception of data generated from the first electronic device (510) and the second electronic device (530) while the secure call connection is established.

[0095] According to various embodiments, the server (520) may determine whether the data of the first electronic device (510) and / or the second electronic device (530) is trustworthy while the secure call connection is established. If the server (520) determines that the data of the first electronic device (510) and / or the second electronic device (530) is trustworthy, it may provide information indicating that the data is trustworthy along with the data. For example, the server (520) may determine whether voice data received from the first electronic device (510) is trustworthy while the secure call (voice) connection is established, and if it is trustworthy, it may insert voice information indicating that the voice data is 'authenticated data' at the beginning of the voice data and transmit it to the second electronic device (530). In another example, the server (520) determines whether the video data received from the second electronic device (530) is trustworthy while the secure call (video) connection is established, and if it is trustworthy, it can synthesize an indicator (e.g., icon, text, image, or watermark) indicating that it is 'authenticated data' for each image frame corresponding to a specified time interval of the video data and transmit it to the first electronic device (510).

[0096] FIG. 6 is a diagram illustrating a method for establishing a secure call when a secure call application is installed on both the first electronic device (510) and the second electronic device (530) according to one embodiment. In FIG. 6, the first electronic device (510) can operate independent REE (610) and TEE (620), and the REE (610) and TEE (620) in the first electronic device (510) can operate in a time-sharing manner by switching the processor of the first electronic device (510) on a time-by-time basis. Similarly, the second electronic device (530) can operate independent REE (640) and TEE (650), and the REE (640) and TEE (650) in the second electronic device (530) can operate in a time-sharing manner by switching the processor of the second electronic device (530) on a time-by-time basis.

[0097] Referring to FIG. 6, when a secure call application is executed in the REE (610) (operation 611), the first electronic device (510) can execute a secure call TA in the TEE (620) (operation 621). The secure call TA may be a trusted application executed in the TEE (620) in correspondence with the execution of the secure call application to provide a secure call function. When the secure call TA is executed in the TEE (620), the electronic device (510) can transmit a secure call outgoing signal to the server (520) to request a secure call connection with the second electronic device (530) (operation 613).

[0098] In one embodiment, when the server (520) receives the secure call outgoing signal from the first electronic device (510) (operation 631), it can transmit the received secure call outgoing signal to the second electronic device (530), which is the secure call connection partner of the first electronic device (520) (operation 633).

[0099] In one embodiment, the second electronic device (530) may receive the security call outgoing signal through a security call application executed in the REE (640) (Operation 641). The security call application may be the same as the security call application executed in the first electronic device (510). In this process, the second electronic device (530) may provide a user interface that allows the user to choose whether to participate in a security call or a regular call in response to the security call outgoing signal. If the second electronic device (530) decides to participate in a security call based on user input obtained through the user interface and the outgoing signal of the first electronic device (510), it may execute a security call TA corresponding to the security call application in the TEE (650) to establish a security call connection (Operation 651). When a secure call TA is executed in the TEE (650), the second electronic device (530) can transmit a secure call reception signal to the server (520) to accept the secure call connection request of the first electronic device (510) (operation 643).

[0100] In one embodiment, when the server (520) receives the secure call reception signal from the second electronic device (530) (operation 635), it can transmit the received secure call reception signal to the first electronic device (510) (operation 637).

[0101] In one embodiment, when the first electronic device (510) receives the secure call reception signal from the server (520) (operation 615), the first electronic device (510) establishes a secure call connection with the second electronic device (530) (operation 617), and the second electronic device (530) can establish a secure call connection with the first electronic device (510) (operation 645). While the secure call connection is maintained between the first electronic device (510) and the second electronic device (530), the first electronic device (510) and the second electronic device (530) can exchange data through the server (520).

[0102] In one embodiment, while a secure call connection is maintained between the first electronic device (510) and the second electronic device (530), access by other services, programs, or applications of the REE (610) to the hardware functions included in the first electronic device (510) may be restricted by the TEE (620). Likewise, while the secure call connection is maintained, access by other services, programs, or applications of the REE (640) to the hardware functions included in the second electronic device (520) may be restricted by the TEE (650).

[0103] According to various embodiments, the first electronic device (510) and the second electronic device (530) may provide a user interface that allows selecting a mode change during a call while the secure call connection is maintained. For example, when the first electronic device (510) receives user input to change to a normal call mode through the user interface, it may switch the call mode to a normal call and terminate the execution of the secure call TA executed in the TEE (620). In this case, access to other services, programs, or applications of the REE (610) that were restricted by the TEE (620) may no longer be restricted.

[0104] According to various embodiments, the first electronic device (510) and the second electronic device (530) may provide information indicating whether the other party is participating in the call connection in secure call mode while the secure call connection is established.

[0105] In one embodiment, when the first electronic device (510) confirms that the secure call with the second electronic device (530) has ended (operation 619), it may terminate the execution of the secure call TA in the TEE (620) (operation 623). When the second electronic device (530) confirms that the secure call with the first electronic device (510) has ended (operation 647), it may terminate the execution of the secure call TA in the TEE (650) (operation 653).

[0106] FIG. 7 is a diagram illustrating a method for establishing a secure call when a secure call application is installed only on the first electronic device (510) that sends a call request, according to one embodiment. In FIG. 7, the first electronic device (510) can operate independent REE (710) and TEE (720), and the REE (710) and TEE (720) in the first electronic device (510) can operate in a time-sharing manner by switching the processor of the first electronic device (510) on a time-unit basis. The second electronic device (530) can operate REE (740).

[0107] Referring to FIG. 7, when a secure call application is executed in the REE (710) (operation 711), the first electronic device (510) can execute a secure call TA in the TEE (720) (operation 721). The secure call TA may be a trusted application executed in the TEE (720) in correspondence with the execution of the secure call application to provide a secure call function. When the secure call TA is executed in the TEE (720), the electronic device (510) can transmit a secure call outgoing signal to the server (520) to request a secure call connection with the second electronic device (530) (operation 713).

[0108] In one embodiment, when the server (520) receives the secure call outgoing signal from the first electronic device (510) (operation 731), it can transmit the received secure call outgoing signal to the second electronic device (530), which is the secure call connection partner of the first electronic device (520) (operation 733).

[0109] According to various embodiments, the second electronic device (530) may receive a call signal from the first electronic device (510) through a general call application executed in the REE (640) (Operation 741). For example, if the second electronic device (530) confirms that the same application as the secure call application executed in the first electronic device (510) is not installed, it may provide a user interface indicating that it can participate in a general call in response to the call signal from the first electronic device (510). In another example, even if the same application as the secure call application executed in the first electronic device (510) is installed in the second electronic device (530), the second electronic device (530) may provide a user interface that allows the user to choose whether to participate in a secure call or a general call in response to the call signal from the first electronic device (510). If the second electronic device (530) decides to participate in a general call in the outgoing signal of the first electronic device (510) based on user input obtained through the user interface, it may transmit a general call reception signal to the server (520) to accept the call connection request of the first electronic device (510) using a general call application executed in the REE (740) (or a secure call application identical to the secure call application executed in the first electronic device (510) but set to general call mode) (operation 743).

[0110] In one embodiment, when the server (520) receives the general call reception signal from the second electronic device (530) (operation 735), it can transmit the received general call reception signal to the first electronic device (510) (operation 737).

[0111] In one embodiment, when the first electronic device (510) receives the general call reception signal from the server (520) (operation 715), the first electronic device (510) establishes a secure call connection with the second electronic device (530) (operation 717), and the second electronic device (530) can establish a general call connection with the first electronic device (510) (operation 745). While the call connection is maintained between the first electronic device (510) and the second electronic device (530), the first electronic device (510) and the second electronic device (530) can exchange data through the server (520).

[0112] In one embodiment, while a call connection is maintained between the first electronic device (510) and the second electronic device (530), access by other services, programs, or applications of the REE (710) to the hardware functions included in the first electronic device (510) may be restricted by the TEE (720). However, while the call connection is maintained, access by other services, programs, or applications of the REE (740) to the hardware functions included in the second electronic device (520) may not be restricted.

[0113] According to various embodiments, the first electronic device (510) may terminate the execution of the secure call TA executed in the TEE (720) when it confirms that the second electronic device (530) responds to the outgoing signal of the first electronic device (510) with a normal call. In this case, a normal call connection may be established between the first electronic device (510) and the second electronic device (530).

[0114] According to various embodiments, the first electronic device (510) and the second electronic device (530) may provide a user interface that can change the call mode while the call connection is maintained. For example, when the first electronic device (510) receives user input to change to a normal call mode through the user interface while operating in a secure call mode, it may switch the call mode to a normal call and terminate the execution of the secure call TA executed in the TEE (720). In this case, access to other services, programs, or applications of the REE (710) that were restricted by the TEE (720) may no longer be restricted. In another example, when the second electronic device (530) receives user input to change to a secure call mode through the interface (if the call application executed in the REE (740) supports the secure call function), it may switch the call mode to a secure call and execute the secure call TA in the TEE of the second electronic device (530) to perform procedures to provide the secure call function.

[0115] According to various embodiments, the first electronic device (510) and the second electronic device (530) may provide information on which call mode the other party is participating in the call connection in while the call connection is established (e.g., participating in a secure call, or participating in a normal call).

[0116] In one embodiment, when the first electronic device (510) confirms that the call with the second electronic device (530) has ended (operation 719), it may terminate the execution of the secure call TA in the TEE (720) (operation 723). The second electronic device (530) may terminate the secure call with the first electronic device (510) through a general call application executed in the REE (740) (operation 747).

[0117] FIG. 8 is a diagram illustrating a method for establishing a secure call when a secure call application is installed only on the second electronic device (530) that receives the call request, according to one embodiment. In FIG. 8, the first electronic device (510) can operate a REE (810). The second electronic device (530) can operate independent REEs (840) and TEEs (850), and the REEs (840) and TEEs (850) in the second electronic device (530) can operate in a time-sharing manner by switching the processor of the second electronic device (530) on a time-unit basis.

[0118] Referring to FIG. 8, the first electronic device (510) can execute a general call application in the REE (810) (operation 811) and transmit a general call outgoing signal to the server (520) to request a call connection with the second electronic device (530) using the general call application (operation 813). For example, if the first electronic device (510) does not have an application that provides a secure call function installed, the first electronic device (510) can execute a general call application and transmit an outgoing signal. As another example, the first electronic device (510) can execute a secure call application in the REE (810) but set it to general call mode and transmit the outgoing signal.

[0119] In one embodiment, when the server (520) receives the general call outgoing signal from the first electronic device (510) (operation 831), it can transmit the received general call outgoing signal to the second electronic device (530) which is the call connection partner of the first electronic device (520) (operation 833).

[0120] According to various embodiments, the second electronic device (530) may receive a call signal from the first electronic device (510) through a secure call application executed in the REE (840) (Operation 841). In this process, the second electronic device (530) may provide a user interface that allows the user to choose whether to participate in a secure call or a regular call in response to the call signal from the first electronic device (510). If the second electronic device (530) decides to participate in a secure call based on user input obtained through the user interface, it may execute a secure call TA corresponding to the secure call application in the TEE (850) to establish a secure call connection (Operation 851). When a secure call TA is executed in the TEE (850), the second electronic device (530) may transmit a secure call reception signal to the server (520) to accept a call connection request from the first electronic device (510) (operation 843). According to various embodiments, if the second electronic device (530) decides to participate in a normal call to the outgoing signal of the first electronic device (510), it may respond to the outgoing signal of the first electronic device (510) with a normal call reception signal without executing the secure call TA.

[0121] In one embodiment, when the server (520) receives the secure call reception signal from the second electronic device (530) (operation 835), it can transmit the received secure call reception signal to the first electronic device (510) (operation 837).

[0122] In one embodiment, when the first electronic device (510) receives the secure call reception signal from the server (520) (operation 815), the first electronic device (510) establishes a normal call connection with the second electronic device (530) (operation 817), and the second electronic device (530) can establish a secure call connection with the first electronic device (510) (operation 845). While the call connection is maintained between the first electronic device (510) and the second electronic device (530), the first electronic device (510) and the second electronic device (530) can exchange data through the server (520).

[0123] In one embodiment, while a call connection is maintained between the first electronic device (510) and the second electronic device (530), access by other services, programs, or applications of the REE (840) to the hardware functions included in the second electronic device (530) may be restricted by the TEE (850). However, while the call connection is maintained, access by other services, programs, or applications of the REE (810) to the hardware functions included in the first electronic device (520) may not be restricted.

[0124] According to various embodiments, the first electronic device (510) and the second electronic device (530) may provide a user interface that can change the call mode while the call connection is maintained. For example, if the first electronic device (510) receives user input to change to a secure call mode through the interface (where the call application running on the REE (810) supports a secure call function), it may switch the call mode to a secure call and perform procedures to provide the secure call function by executing a secure call TA in the TEE of the first electronic device (510). In another example, if the second electronic device (530) receives user input to change to a normal call mode through the user interface while operating in a secure call mode, it may switch the call mode to a normal call and terminate the execution of the secure call TA executed in the TEE (850). In this case, access to other services, programs, or applications of the REE (840) that were restricted by the TEE (850) may no longer be restricted.

[0125] According to various embodiments, the first electronic device (510) and the second electronic device (530) may provide information on which call mode the other party is participating in the call connection in while the call connection is established (e.g., participating in a secure call, or participating in a normal call).

[0126] In one embodiment, the first electronic device (510) can terminate a call with the second electronic device (530) through a general call application executed in the REE (810) (operation 819). When the second electronic device (530) confirms that the call with the first electronic device (510) has been terminated (operation 845), it can terminate the execution of the secure call TA in the TEE (850) (operation 853).

[0127] FIG. 9 is a flowchart illustrating a method of operation of an electronic device (300) according to one embodiment. According to one embodiment, the electronic device (300) is a device that provides a secure communication function with an external electronic device while operating a plurality of execution environments, and may correspond to the electronic device (101) shown in FIG. 1. For example, the electronic device (300) may operate a first execution environment and a second execution environment having different security levels. Here, the first execution environment may include a rich execution environment (REE), and the second execution environment may include a trusted execution environment (TEE). The operations of FIG. 9 may be performed by a processor included in the electronic device (300) (e.g., the processor (120) of FIG. 1 or the processor (340) of FIG. 3).

[0128] Referring to FIG. 9, in operation 910, the electronic device (300) can check for a secure call connection request to an external electronic device (e.g., the second electronic device (530) of FIG. 5 to 8) using a first application running in a first execution environment. The first application may be an application that provides a secure call function. In operation 910, when the electronic device (310) confirms that the secure call connection request has been entered by a user, it can identify whether an application corresponding to the first application, that is, an application providing the same secure call function, is installed on the external electronic device that is the target of the secure call connection request, and can provide information regarding this. For example, the electronic device (300) may display whether the application is installed on a contact list provided through the execution screen of the first application.

[0129] According to one embodiment, in operation 920, the electronic device (300) may execute a second application in a second execution environment in response to the execution of the first application. The second execution environment may be an execution environment having a higher security level than the first execution environment. The second application may be a trusted application that processes operations requiring security, and may be an application executed in the second execution environment in correspondence with the execution of the first application to provide a secure call function. In operation 920, the electronic device (300) may recognize the execution of the first application as a trigger and execute the second application in the second execution environment.

[0130] According to various embodiments, an application providing a secure call function with the external electronic device may be an application executed in the second execution environment. In this case, even if the first application is not executed in the first execution environment, the electronic device (300) can use the second application to confirm that a request for a secure call connection to the external electronic device has been input and perform a procedure to establish a secure call connection with the external electronic device.

[0131] According to one embodiment, the electronic device (300) may additionally execute one or more third applications related to the secure call connection in the second execution environment in operation 920. The third application is a trusted application (TA) for controlling one or more hardware functions used to provide the secure call function, and may be executed in conjunction with the execution of the second application in the second execution environment. The one or more third applications may each correspond to the one or more hardware functions. The electronic device (300) may recognize the execution of the second application as a trigger and execute the one or more third applications in the second execution environment.

[0132] According to one embodiment, in operation 930, the electronic device (300) may generate a first signal to transmit the secure call connection request to the external electronic device using the second application, and transmit the generated first signal to a server using network resources of the first execution environment or the second execution environment. The secure call connection request may include identification information of the target to whom the secure call is to be connected, namely the electronic device (300) and the external electronic device. The server may be a server that provides a secure call service in conjunction with the first application and / or the second application, and may include a dedicated server for the first / second application or a server that provides call services on a cellular network. The server may perform the role of relaying the call connection and / or the transmission and reception of data while the secure call is connected and the secure call is connected between the electronic device (300) and the external electronic device. The server may transmit the first signal to the external electronic device that is the target of the secure call connection request. When the above external electronic device receives the first signal from the server, it can respond whether to accept the secure call connection request.

[0133] According to various embodiments, when the external electronic device accepts the secure call connection request of the electronic device (300), it may receive the secure call connection request using an application that provides the same secure call function. When the external electronic device accepts the secure call connection request through a first application running in a first execution environment, it may run a second application in a second execution environment corresponding to the execution of the second application. At this time, the second application may be a trusted application (TA) required to provide the secure call function. When the second application is executed, the external electronic device may generate a second signal to respond to the first signal using the second application. The second signal may be transmitted to the server using network resources of the first or second execution environment of the external electronic device. The server may transmit the second signal received from the external electronic device to the electronic device (300). According to various embodiments, the external electronic device may additionally receive a message indicating that the first signal is a signal transmitted by the first application and / or the second application during the process of receiving the first signal. The message may be a secure call-only message transmitted by the first / second application, or a message transmitted via a message service provided by a cellular network (e.g., SMS (short messages service) or RCS (rich communication service)).

[0134] According to one embodiment, in operation 940, the electronic device (300) may receive a second signal from the server indicating that the external electronic device has accepted the secure call connection request. In operation 940, the electronic device (300) may recognize that the external electronic device has accepted the secure call connection request based on the second signal and provide information regarding this. For example, the electronic device (300) may display information on the outgoing screen indicating that the secure call connection request has been accepted by the external electronic device. According to various embodiments, in the process of receiving the second signal, the electronic device (300) may additionally receive a message indicating that the second signal is a signal sent by the first application and / or the second application. The message may be a secure call-only message sent by the first / second application, or a message sent via a message service (e.g., SMS or RCS) provided by a cellular network. According to various embodiments, the external electronic device may transmit a response signal rejecting the secure call connection request or a response signal accepting a call connection as a regular call rather than a secure call to the electronic device (300) via the server. For example, if the response signal of the external electronic device is a signal rejecting the secure call connection request, the secure call connection is not established, and a screen indicating that the secure call connection request is rejected may be displayed on the display (330). In another example, if the response signal of the external electronic device is a signal accepting a call connection as a regular call, a regular call connection is established between the electronic device (300) and the external electronic device, and the second application may not be executed on the external electronic device.According to various embodiments, the server transmitting the first signal and the server transmitting the second signal between the electronic device (300) and the external electronic device may be the same server or different servers.

[0135] According to one embodiment, in operation 950, the electronic device (300) may, in response to the reception of the second signal, establish a secure call connection with the external electronic device and initiate a secure call with the external electronic device. The electronic device (300) may transmit data acquired while the secure call connection with the external electronic device is established to the second application. The acquired data may be transmitted to the second application by transmitting information related to a memory area allocated to one or more hardware functions (e.g., the address of the memory area allocated to the hardware function) through a designated area of ​​memory (e.g., the memory (130) of FIG. 1 or the memory (350) of FIG. 3). The one or more hardware functions are components among the components included in the electronic device (300) that perform operations related to the secure call, and may include, for example, a communication circuit (e.g., the communication module (190) of FIG. 1 or the communication circuit (310) of FIG. 3), a camera (e.g., the camera module (180) of FIG. 1 or the camera (320) of FIG. 3), a display (e.g., the display module (160) of FIG. 1 or the display (330) of FIG. 3), a microphone (e.g., the input module (150) of FIG. 1), or an image processing module, and may additionally include at least some of the components described with reference to FIG. 1. The designated area is the first execution environment that cannot directly exchange data and the The second execution environment may be a specific shareable area of ​​memory (350) configured to allow data exchange (e.g., shared memory (441) of FIG. 4). While the secure call connection is established between the electronic device (300) and the external electronic device, the first application of the first execution environment and the second application of the second execution environment may access the designated area of ​​memory (350) to share the address of data associated with one or more hardware functions obtained during the secure call.

[0136] According to one embodiment, the electronic device (300) may restrict the execution of other applications unrelated to the secure call connection while the secure call connection with the external electronic device is established. For example, the electronic device (300) may restrict access of the other applications to the one or more hardware functions by the second execution environment while the secure call connection is maintained. For example, while the secure call connection is maintained, the electronic device (300) may restrict access of the other applications to the hardware functions corresponding to each third application by using one or more third applications executed in conjunction with the second application in the second execution environment. According to various embodiments, if the electronic device (300) detects access of the other applications to the one or more hardware functions while the secure call connection is established, it may terminate the execution of the other applications or terminate the secure call connection and provide information indicating that access to the hardware functions within the electronic device (300) is being attempted by the other applications. As a result, while the above-mentioned secure call connection is maintained, access by other applications (or programs, services) to the hardware functions of the electronic device (300) is not allowed, and only data generated / processed through the first application and / or the second application can be transmitted to the external electronic device.

[0137] According to one embodiment, the electronic device (300) may display a user interface on a display (330) indicating that the secure call is being connected between the electronic device (300) and the external electronic device while the secure call connection is established.

[0138] According to various embodiments, if the secure call is a video call, the electronic device (300) may apply a specified processing to at least one image acquired from the camera (320) while the secure call connection is established and then transmit it to the external electronic device. The specified processing may include an image processing method that superimposes and composites an indicator (e.g., icon, text, image, or watermark) corresponding to the secure call onto the at least one image. According to various embodiments, the electronic device (300) may process the video data acquired from the camera (320) to display the indicator according to a specified time interval (e.g., the start of the call) or a specified time period (e.g., 10 seconds), or to continuously display the indicator.

[0139] After operation 950, when the electronic device (300) confirms that the secure call connection with the external electronic device has been terminated, it may terminate the execution of the first application executed in the first execution environment, the second application executed in the second execution environment, and the one or more third applications. When the execution of the second application and the one or more third applications is terminated, the restriction on access to hardware functions within the electronic device (300) by other applications may be lifted.

[0140] FIG. 10 is a diagram illustrating a method of providing a user interface while a secure call connection is established in an electronic device (1000) according to one embodiment.

[0141] Referring to FIG. 10, when an electronic device (1000) receives a secure call outgoing signal from an external electronic device, it may display an incoming call screen (1010) indicating that there is a call request from the external electronic device on a display (e.g., the display module (160) of FIG. 1 or the display (330) of FIG. 3). At this time, the electronic device (1000) may superimpose an indicator (1015) (e.g., an icon, text, image, or watermark) indicating a secure call on one side of the incoming call screen (1010). The user of the electronic device (1000) can identify that the outgoing signal from the external electronic device was transmitted through a secure call application based on the indicator (1015). Likewise, while the external electronic device attempts to establish a secure call connection with the electronic device (1000), it may superimpose the indicator (1015) on one side of the outgoing call screen (or call waiting screen).

[0142] According to various embodiments, the electronic device (1000) may provide information indicating that a secure call is being performed while a secure call connection is established with the external electronic device. For example, the electronic device (1000) may superimpose the indicator (1015) through a screen provided after the secure call connection is established with the external electronic device. In another example, if the secure call is a voice call, the electronic device (1000) may transmit voice information indicating that the voice data acquired using a microphone while the secure call connection is established is reliable data by inserting it at the beginning of the voice data and transmitting it to the external electronic device. In yet another example, if the secure call is a video call, the electronic device (1000) may transmit an indicator indicating that the video data acquired through a camera (320) while the secure call connection is established is reliable data by synthesizing it for each image frame corresponding to a designated time interval of the video data and transmitting it to the external electronic device.

[0143] In one embodiment, an electronic device (e.g., electronic device (300)) comprises a communication circuit (310), at least one processor (340), and a memory (350) that stores a plurality of execution environments including a first execution environment and a second execution environment and stores instructions, wherein the instructions are executed by the at least one processor (340), and when the electronic device (300) confirms a call connection request to an external electronic device using a first application executed in the first execution environment, it executes a second application executed in the second execution environment corresponding to the execution of the first application, and while the second application is executed, it transmits a first signal including the call connection request using the communication circuit (310) to a first designated server, and in response to receiving a second signal from the second designated server indicating acceptance of the call connection request from the external electronic device, it establishes a call connection with the external electronic device, and while the call connection with the external electronic device is established, access of an application unrelated to the call to one or more hardware functions related to the call by the second execution environment The above-mentioned first designated server and the above-mentioned second designated server may be the same or different servers.

[0144] In one embodiment, the instructions are executed by the at least one processor (340) so that the electronic device (300) executes one or more third applications related to the call connection in the second execution environment in response to the execution of the second application, and the one or more third applications may be applications for controlling the one or more hardware functions used while the call connection is established.

[0145] In one embodiment, the instructions are executed by the at least one processor (340) so that the electronic device (300) can restrict the access of the application to a hardware function corresponding to each third application using the one or more third applications.

[0146] In one embodiment, the instructions are executed by the at least one processor (340) to enable the electronic device (300) to transmit information related to a memory area allocated to the one or more hardware functions to the second application and / or the one or more third applications through at least a portion of the memory (350).

[0147] In one embodiment, the electronic device (300) further includes a display (330), and the instructions are executed by the at least one processor (340) so that the electronic device (300) can display a user interface on the display (330) indicating that the call is connected while a call connection with the external electronic device is established.

[0148] In one embodiment, the instructions are executed by the at least one processor (340) so that when the electronic device (300) detects access of an application unrelated to the call to one or more hardware functions while a call connection with the external electronic device is established, the execution of the application unrelated to the call can be terminated.

[0149] In one embodiment, the electronic device (300) further includes a camera (320), and the instructions are executed by the at least one processor (340) so that the electronic device (300) acquires at least one image from the camera (320) while a call connection with the external electronic device is established, processes the at least one image by synthesizing an indicator corresponding to the call onto the at least one image, and transmits the processed image to the external electronic device through the communication circuit (310).

[0150] In one embodiment, the instructions may be executed by the at least one processor (340) to enable the electronic device (300) to provide information regarding whether an application supporting the call connection is installed on the external electronic device and / or whether the external electronic device has accepted the call connection request.

[0151] In one embodiment, the instructions are executed by the at least one processor (340) so that when the electronic device (300) confirms that the call connection with the external electronic device has been terminated, the execution of the first application and the second application may be terminated.

[0152] In one embodiment, the first execution environment may include a rich execution environment (REE), and the second execution environment may include a trusted execution environment (TEE).

[0153] A method according to one embodiment comprises, in an electronic device (300) capable of operating a plurality of execution environments including a first execution environment and a second execution environment, an operation of confirming a call connection request to an external electronic device using a first application executed in the first execution environment; an operation of executing a second application in the second execution environment corresponding to the execution of the first application; an operation of transmitting a first signal including the call connection request to a first designated server while the second application is executed; an operation of receiving a second signal indicating that the external electronic device accepts the call connection request from the second designated server; and an operation of establishing a call connection with the external electronic device in response to the reception of the second signal. While the call connection with the external electronic device is established, access by an application unrelated to the call to one or more hardware functions related to the call is restricted by the second execution environment, and the first designated server and the second designated server may be the same or different servers.

[0154] In one embodiment, the method further includes the operation of executing one or more third applications related to the call connection in the second execution environment in response to the execution of the second application, and the one or more third applications may be applications for controlling the one or more hardware functions used while the call connection is established.

[0155] In one embodiment, the method may further include an operation to restrict the access of the application to a hardware function corresponding to each third application using the one or more third applications.

[0156] In one embodiment, the method may further include an operation of transmitting information related to a memory area allocated to one or more hardware functions to the second application and / or the one or more third applications through at least a portion of the memory (350) included in the electronic device (300).

[0157] In one embodiment, the method may further include the operation of displaying a user interface on a display (330) indicating that the call is connected while the call connection with the external electronic device is established.

[0158] In one embodiment, the method may further include an operation of detecting access of an application unrelated to the call to one or more hardware functions while a call connection with the external electronic device is established, and an operation of terminating the execution of the application unrelated to the call in response to the detection of access of the application unrelated to the call.

[0159] In one embodiment, the method may further include the operation of acquiring at least one image from a camera while a call connection with the external electronic device is established, the operation of processing by synthesizing an indicator corresponding to the call onto the at least one image, and the operation of transmitting the processed image to the external electronic device.

[0160] In one embodiment, the method may further include an operation of providing information on whether an application supporting the call connection is installed on the external electronic device and / or whether the external electronic device has accepted the call connection request.

[0161] In one embodiment, the method may further include an operation of terminating the execution of the first application and the second application when it is confirmed that the call connection with the external electronic device has been terminated.

[0162] In one embodiment, the first execution environment may include a rich execution environment (REE), and the second execution environment may include a trusted execution environment (TEE).

[0163] In one embodiment, programs executable on a computer-readable recording medium on which such programs are recorded may be caused by the computer to perform the following operations in an electronic device (300) capable of operating a plurality of execution environments including a first execution environment and a second execution environment: confirming a call connection request to an external electronic device using a first application executed in the first execution environment; executing a second application in the second execution environment in correspondence with the execution of the first application; transmitting a first signal including the call connection request to a first designated server while the second application is executed; receiving a second signal from the second designated server indicating acceptance of the call connection request from the external electronic device; and establishing a call connection with the external electronic device in response to the reception of the second signal.

[0164] The effects obtainable from the present disclosure are not limited to those mentioned above, and other unmentioned effects will be clearly understood by those skilled in the art to which the present disclosure belongs.

[0165] The electronic device according to the various embodiments disclosed in this document may be of various forms. The electronic device may include, for example, a portable communication device (e.g., a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a consumer electronics device. The electronic device according to the embodiments of this document is not limited to the devices described above.

[0166] The various embodiments of this document and the terms used therein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various modifications, equivalents, or substitutions of said embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of said items unless the relevant context clearly indicates otherwise. In this document, phrases such as "A or B," "at least one of A and B," "at least one of A or B," "A, B or C," "at least one of A, B and C," and "at least one of A, B, or C" may each include any one of the items listed together in the corresponding phrase, or any combination thereof. Terms such as "first," "second," or "first" or "second" may be used simply to distinguish said components from other said components and do not limit said components in any other aspect (e.g., importance or order). Where any (e.g., 1st) component is referred to as "coupled" or "connected" to another (e.g., 2nd) component, with or without the terms "functionally" or "communicationly," it means that said any component may be connected to said other component directly (e.g., via a wire), wirelessly, or through a third component.

[0167] As used in this document, the term "module" may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be a component formed integrally, or a minimum unit of said component or a part thereof that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).

[0168] Various embodiments of the present document may be implemented as software (e.g., program (140)) comprising one or more instructions stored in a storage medium (e.g., internal memory (136) or external memory (138)) readable by a machine (e.g., electronic device (101)). For example, a processor (e.g., processor (120)) of the machine (e.g., electronic device (101)) may call at least one of the one or more instructions stored in the storage medium and execute it. This enables the machine to be operated to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. The storage medium readable by the machine may be provided in the form of a non-transitory storage medium. Here, "non-transient" simply means that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently and cases where it is stored temporarily.

[0169] According to one embodiment, the method according to the various embodiments disclosed herein may be provided by being included in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)) or an application store (e.g., Play Store). TM It can be distributed online (e.g., downloaded or uploaded) through ) or directly between two user devices (e.g., smartphones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily created on a device-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.

[0170] According to various embodiments, each component (e.g., module or program) of the components described above may include a singular or multiple entities. According to various embodiments, one or more of the components or operations among the aforementioned components may be omitted, or one or more other components or operations may be added. Generally or additionally, multiple components (e.g., module or program) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each of the components of the multiple components in the same or similar manner as those performed by the corresponding component among the multiple components prior to the integration. According to various embodiments, operations performed by the module, program, or other components may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.

Claims

1. In an electronic device (300), Communication circuit (310); At least one processor (340); and It includes a memory (350) that stores a plurality of execution environments, including a first execution environment and a second execution environment, and stores instructions. The above instructions are executed by the at least one processor (340), so that the electronic device (300): When a call connection request to an external electronic device is confirmed using a first application executed in the first execution environment, a second application executed in the second execution environment is executed in correspondence with the execution of the first application, and While the second application is running, the communication circuit (310) is used to transmit a first signal including the call connection request to a first designated server, and In response to receiving a second signal from a first designated server indicating acceptance of the call connection request from the external electronic device, the call connection with the external electronic device is established. While a call connection with the external electronic device is established, access by an application unrelated to the call to one or more hardware functions related to the call is restricted by the second execution environment, and An electronic device in which the first designated server and the second designated server are the same or different servers.

2. In Claim 1, The above instructions are executed by the at least one processor (340), and the electronic device (300), In response to the execution of the second application, one or more third applications related to the call connection are executed in the second execution environment, and The electronic device, wherein the one or more third applications are applications for controlling the one or more hardware functions used while the call connection is established.

3. In Claim 2, The above instructions are executed by the at least one processor (340), and the electronic device (300), An electronic device that restricts access of said application to a hardware function corresponding to each said application by using said one or more of said third applications.

4. In Claim 2, The above instructions are executed by the at least one processor (340), and the electronic device (300), An electronic device that transmits information related to a memory area allocated to one or more hardware functions to the second application and / or one or more third applications through at least a portion of the memory (350).

5. In Claim 1, It further includes a display (330), The above instructions are executed by the at least one processor (340), and the electronic device (300), An electronic device that displays a user interface indicating that the call is connected on the display (330) while the call connection with the external electronic device is established.

6. In Claim 1, The above instructions are executed by the at least one processor (340), and the electronic device (300), An electronic device that, when it detects access by an application unrelated to the call to one or more hardware functions while a call connection with the external electronic device is established, terminates the execution of the application unrelated to the call.

7. In Claim 1, It further includes a camera (320), The above instructions are executed by the at least one processor (340), and the electronic device (300), While a call connection with the external electronic device is established, at least one image is obtained from the camera (320), and Processing by synthesizing an indicator corresponding to the call onto at least one image above, and An electronic device that transmits the processed image to the external electronic device through the communication circuit (310).

8. In Claim 1, The above instructions are executed by the at least one processor (340), and the electronic device (300), An electronic device that provides information on whether an application supporting the call connection is installed on the external electronic device and / or whether the external electronic device has accepted the call connection request.

9. In Claim 1, The above instructions are executed by the at least one processor (340), and the electronic device (300), An electronic device that terminates the execution of the first application and the second application when it is confirmed that the call connection with the external electronic device is terminated.

10. In Claim 1, The above first execution environment includes a REE (rich execution environment), and The above second execution environment is an electronic device including a TEE (trusted execution environment).

11. Regarding the method, In an electronic device (300) capable of operating a plurality of execution environments including a first execution environment and a second execution environment, an operation of confirming a call connection request to an external electronic device using a first application executed in the first execution environment; An operation of executing a second application in the second execution environment corresponding to the execution of the first application; The operation of transmitting a first signal including the call connection request to a first designated server while the second application is running; The operation of receiving a second signal from a second designated server indicating that the external electronic device accepts the call connection request; and The method includes an operation to establish a call connection with the external electronic device in response to the reception of the second signal. While a call connection with the external electronic device is established, access by an application unrelated to the call to one or more hardware functions related to the call is restricted by the second execution environment, and A method in which the first designated server and the second designated server are the same or different servers.

12. In Claim 11, The method further includes the operation of executing one or more third applications related to the call connection in the second execution environment in response to the execution of the second application, and A method in which one or more third applications are applications for controlling one or more hardware functions used while the call connection is established.

13. In Claim 11, An operation to detect access by an application unrelated to the call to one or more hardware functions while a call connection with the external electronic device is established; and A method further comprising the operation of terminating the execution of an application unrelated to the call in response to detection of access to an application unrelated to the call.

14. In Claim 11, The operation of acquiring at least one image from a camera while a call connection with the above-mentioned external electronic device is established; The operation of compositing and processing an indicator corresponding to the call onto at least one image; and A method further comprising the operation of transmitting the processed image to the external electronic device.

15. In Claim 11, A method further comprising the operation of providing information on whether an application supporting the call connection is installed on the external electronic device and / or whether the external electronic device has accepted the call connection request.