KR20240045929A - Method of update and electronic device therefor - Google Patents

Method of update and electronic device therefor Download PDF

Info

Publication number
KR20240045929A
KR20240045929A KR1020220142123A KR20220142123A KR20240045929A KR 20240045929 A KR20240045929 A KR 20240045929A KR 1020220142123 A KR1020220142123 A KR 1020220142123A KR 20220142123 A KR20220142123 A KR 20220142123A KR 20240045929 A KR20240045929 A KR 20240045929A
Authority
KR
South Korea
Prior art keywords
version
area
electronic device
processor
memory
Prior art date
Application number
KR1020220142123A
Other languages
Korean (ko)
Inventor
이준수
한찬규
오명진
이세영
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to PCT/KR2023/014533 priority Critical patent/WO2024071861A1/en
Publication of KR20240045929A publication Critical patent/KR20240045929A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0665Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

메모리 및 프로세서를 포함하는 전자 장치가 개시된다. 전자 장치는 업데이트 데이터와 제1 버전의 OS(operating system)을 가상 파티션으로 구성하고, 가상 파티션의 제2 버전의 OS를 이용하여 부팅을 시도할 수 있다. 부팅 시에, 전자 장치는 제2 버전의 OS에 기반한 부팅의 성공 여부를 지시하는 결과 정보를 보안 영역으로 전달하고, 결과 정보에 기반하여 보안 영역의 버전 정보 업데이트 여부를 결정할 수 있다. An electronic device including a memory and a processor is disclosed. The electronic device may configure update data and a first version of an operating system (OS) into a virtual partition and attempt to boot using the second version of the OS of the virtual partition. When booting, the electronic device may transmit result information indicating whether booting based on the second version of the OS is successful to the security area, and determine whether to update version information in the security area based on the result information.

Description

업데이트 방법 및 이를 위한 전자 장치{METHOD OF UPDATE AND ELECTRONIC DEVICE THEREFOR}Update method and electronic device therefor {METHOD OF UPDATE AND ELECTRONIC DEVICE THEREFOR}

본 문서에서 개시되는 실시 예들은, 업데이트 방법 및 이를 위한 전자 장치에 대한 것이다.Embodiments disclosed in this document relate to an update method and an electronic device for the same.

전자 장치는 다양한 운영 체제(operating system, OS)에 기반하여 동작할 수 있다. 운영 체제는 전자 장치의 하드웨어 제어 및 소프트웨어 제어를 위한 다양한 기능들을 포함할 수 있다. 예를 들어, 운영 체제는 커널(kernel)을 통하여 전자 장치의 다양한 하드웨어 구성요소들을 제어할 수 있다. 운영체제는 다양한 어플리케이션의 동작을 지원하기 위한 프레임워크를 포함할 수 있다. 전자 장치의 사용자는 운영체제의 지원에 따라서 전자 장치를 제어할 수 있다. Electronic devices may operate based on various operating systems (OS). An operating system may include various functions for hardware control and software control of electronic devices. For example, an operating system can control various hardware components of an electronic device through a kernel. An operating system may include a framework to support the operation of various applications. A user of an electronic device can control the electronic device according to support of the operating system.

운영 체제는 업데이트될 수 있다. 업데이트는, 구버전의 운영 체제의 적어도 일부를 업데이트함으로써 신버전의 운영 체제로 변경하는 것을 의미할 수 있다. 예를 들어, 이상기능(malfunctioning)의 보완, 보안 취약점의 보완, 편의성 개선, 호환성 개선 등의 다양한 이유로서 운영 체제가 업데이트될 수 있다. 전자 장치는 운영 체제의 롤백(roll-back)을 방지(prevent)하기 위한 기능을 포함할 수 있다. 운영 체제의 롤백은, 신버전의 운영 체제를 구버전의 운영 체제로 되돌리는 것을 의미할 수 있다. 예를 들어, 신버전의 운영 체제는, 구버전의 운영 체제의 이상 기능 및/또는 보안 취약점을 보완할 수 있다. 만약, 사용자가 구버전의 운영 체제로 운영 체제를 롤백하는 경우, 이상 기능 및/또는 보안 취약점으로 인하여 전자 장치의 정상적인 동작이 보장될 수 없다.The operating system can be updated. Update may mean changing to a new version of the operating system by updating at least part of the old version of the operating system. For example, the operating system may be updated for a variety of reasons, such as fixing malfunctioning, fixing security vulnerabilities, improving convenience, and improving compatibility. The electronic device may include a function to prevent roll-back of the operating system. Rollback of an operating system may mean reverting a new version of the operating system to an older version of the operating system. For example, a new version of the operating system may complement abnormal functions and/or security vulnerabilities of the old version of the operating system. If a user rolls back the operating system to an older version of the operating system, normal operation of the electronic device cannot be guaranteed due to abnormal functions and/or security vulnerabilities.

상술한 정보는 본 개시에 대한 이해를 돕기 위한 목적으로 하는 배경 기술(related art)로 제공될 수 있다. 상술한 내용 중 어느 것도 본 개시와 관련하여 종래 기술(prior art)로서 적용될 수 있는지에 관해서는 어떠한 주장이나 결정이 제기되지 않는다.The above information may be provided as background 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 apply as prior art with respect to the present disclosure.

본 문서에 개시되는 일 실시 예에 따른 전자 장치는, 메모리 및 프로세서를 포함할 수 있다. 메모리는, 제1 버전의 OS(Operating System)가 설치된 제1 영역, 제1 영역과 상이한 제2 영역, 및 OS의 버전 정보가 저장된 보안 영역을 포함할 수 있다. 프로세서는, OS의 제2 버전에 대응하는 업데이트 데이터를 상기 제2 영역에 저장할 수 있다. 프로세서는 업데이트 데이터가 저장된 상기 제2 영역의 일부와 상기 제1 영역의 일부를 가상 파티션으로 설정할 수 있다. 프로세서는 가상 파티션에 설치된 상기 제2 버전의 OS를 이용하여 부팅을 시도할 수 있다. 프로세서는 부팅의 결과를 보안 영역으로 전달할 수 있다. 프로세서는 결과에 기반하여 상기 보안 영역에 저장된 상기 버전 정보의 변경 여부를 결정할 수 있다. An electronic device according to an embodiment disclosed in this document may include a memory and a processor. The memory may include a first area where a first version of an operating system (OS) is installed, a second area different from the first area, and a security area where version information of the OS is stored. The processor may store update data corresponding to the second version of the OS in the second area. The processor may set a part of the second area and a part of the first area where update data is stored as a virtual partition. The processor may attempt to boot using the second version of the OS installed in the virtual partition. The processor can forward the result of booting to the secure area. The processor may determine whether to change the version information stored in the security area based on the results.

또한, 본 문서에 개시되는 일 실시 예에 따른 메모리 및 프로세서를 포함하는 전자 장치의 업데이트 관리를 위한 방법은, 상기 메모리의 제1 영역 내에 설치된 제1 버전의 OS의 데이터 영역의 일부와 상기 메모리의 제2 영역에 저장된 제2 버전의 업데이트 데이터의 데이터 영역을 가상 파티션으로 설정하는 동작을 포함할 수 있다. 상기 방법은, 상기 가상 파티션에 설치된 상기 제2 버전의 OS를 이용하여 부팅을 시도하는 동작을 포함할 수 있다. 상기 방법은, 상기 부팅의 결과를 상기 메모리의 보안 영역으로 전달하는 동작을 포함할 수 있다. 상기 방법은, 상기 결과에 기반하여 상기 보안 영역에 저장된 상기 OS의 버전 정보의 변경 여부를 결정하는 동작을 포함할 수 있다. In addition, a method for update management of an electronic device including a memory and a processor according to an embodiment disclosed in this document includes a portion of the data area of the first version of the OS installed in the first area of the memory and the The operation may include setting the data area of the second version of the update data stored in the second area as a virtual partition. The method may include attempting to boot using the second version of the OS installed in the virtual partition. The method may include transferring the result of the booting to a secure area of the memory. The method may include determining whether to change the version information of the OS stored in the security area based on the result.

또한, 본 문서에 개시되는 일 실시 예에 따른 컴퓨터 판독가능 저장 매체는, 실행되었을 때 프로세서가 동작들을 수행하도록 하는 인스트럭션들을 저장할 수 있다. 상기 동작들은, 상기 메모리의 제1 영역 내에 설치된 제1 버전의 OS의 데이터 영역의 일부와 상기 메모리의 제2 영역에 저장된 제2 버전의 업데이트 데이터의 데이터 영역을 가상 파티션으로 설정하는 동작을 포함할 수 있다. 상기 동작들은, 상기 가상 파티션에 설치된 상기 제2 버전의 OS를 이용하여 부팅을 시도하는 동작을 포함할 수 있다. 상기 동작들은, 상기 부팅의 결과를 상기 메모리의 보안 영역으로 전달하는 동작을 포함할 수 있다. 상기 동작들은, 상기 결과에 기반하여 상기 보안 영역에 저장된 상기 OS의 버전 정보의 변경 여부를 결정하는 동작을 포함할 수 있다.Additionally, a computer-readable storage medium according to an embodiment disclosed in this document may store instructions that, when executed, cause the processor to perform operations. The operations may include setting a part of the data area of the first version of the OS installed in the first area of the memory and the data area of the second version of the update data stored in the second area of the memory as a virtual partition. You can. The operations may include attempting to boot using the second version of the OS installed in the virtual partition. The operations may include transferring the result of the booting to a secure area of the memory. The operations may include determining whether to change the version information of the OS stored in the security area based on the results.

도 1은 일 실시 예에 따른 전자 장치의 블록도이다.
도 2는 일 실시 예에 따른 전자 장치의 메모리 구조를 도시한다.
도 3은 일 실시 예에 따른 가상 파티션의 구성을 도시한다.
도 4는 일 실시 예에 따른 업데이트된 운영 체제를 도시한다.
도 5는 일 실시 예에 따른 전자 장치의 모듈들을 도시한다.
도 6은 일 실시 예에 따른 전자 장치의 업데이트 방법의 신호 흐름도이다.
도 7은 일 실시 예에 따른 전자 장치의 업데이트 방법의 신호 흐름도이다.
도 8은 일 실시 예에 따른 전자 장치의 업데이트 방법의 흐름도이다.
도 9는 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 10은 다양한 실시예에 따른 프로그램(940)을 예시하는 블록도이다.
도면의 설명과 관련하여, 동일 또는 유사한 구성요소에 대해서는 동일 또는 유사한 참조 부호가 사용될 수 있다.
1 is a block diagram of an electronic device according to an embodiment.
Figure 2 shows a memory structure of an electronic device according to an embodiment.
Figure 3 shows the configuration of a virtual partition according to one embodiment.
Figure 4 shows an updated operating system according to one embodiment.
Figure 5 shows modules of an electronic device according to one embodiment.
Figure 6 is a signal flow diagram of a method for updating an electronic device according to an embodiment.
7 is a signal flow diagram of a method for updating an electronic device according to an embodiment.
8 is a flowchart of a method for updating an electronic device according to an embodiment.
9 is a block diagram of an electronic device in a network environment, according to various embodiments.
Figure 10 is a block diagram illustrating a program 940 according to various embodiments.
In relation to the description of the drawings, identical or similar reference numerals may be used for identical or similar components.

이하, 본 발명의 다양한 실시 예가 첨부된 도면을 참조하여 기재된다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 실시 예의 다양한 변경(modification), 균등물(equivalent), 및/또는 대체물(alternative)을 포함하는 것으로 이해되어야 한다. Hereinafter, various embodiments of the present invention are described with reference to the accompanying drawings. However, this is not intended to limit the present invention to specific embodiments, and should be understood to include various modifications, equivalents, and/or alternatives to the embodiments of the present invention.

도 1은 일 실시 예에 따른 전자 장치의 블록도이다.1 is a block diagram of an electronic device according to an embodiment.

일 실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 및/또는 통신 회로(190)를 포함할 수 있다. 예를 들어, 전자 장치(101)는 도 9의 전자 장치(901)에 대응할 수 있다. 예를 들어, 프로세서(120)는 도 9의 프로세서(920)에 대응할 수 있다. 예를 들어, 메모리(130)는 도 9의 메모리(930)에 대응할 수 있다. 예를 들어, 통신 회로(190)는 도 9의 통신 모듈(990)에 대응할 수 있다. 도 1에 도시된 전자 장치(101)의 구조는 예시적인 것으로서, 본 문서의 실시예들이 이에 제한되는 것은 아니다. 예를 들어, 전자 장치(101)는 도 1에 미도시된 구성(예: 도 9의 전자 장치(901)의 구성)을 더 포함할 수 있다. According to one embodiment, the electronic device 101 may include a processor 120, a memory 130, and/or a communication circuit 190. For example, the electronic device 101 may correspond to the electronic device 901 of FIG. 9 . For example, processor 120 may correspond to processor 920 of FIG. 9 . For example, memory 130 may correspond to memory 930 of FIG. 9 . For example, the communication circuit 190 may correspond to the communication module 990 of FIG. 9 . The structure of the electronic device 101 shown in FIG. 1 is illustrative, and the embodiments of this document are not limited thereto. For example, the electronic device 101 may further include a configuration not shown in FIG. 1 (eg, a configuration of the electronic device 901 in FIG. 9 ).

프로세서(120)는 메모리(130) 및/또는 통신 회로(190)와 전기적으로(electrically), 작동적으로(operatively), 또는 기능적으로(functionally) 연결될 수 있다. 본 개시에서, 일 구성이 타 구성과 “작동적으로” 연결된 경우, 일 구성은 타 구성을 작동시킬 수 있도록 연결된 것을 의미할 수 있다. 예를 들어, 일 구성은 직접 또는 다른 구성을 거쳐서 타 구성에 제어 신호를 전달함으로써 타 구성을 작동시킬 수 있다. 본 개시에서 일 구성이 타 구성과 “기능적으로” 연결된 경우, 일 구성은 타 구성의 기능을 실행할 수 있도록 연결된 것을 의미할 수 있다. 예를 들어, 일 구성은 직접 또는 다른 구성을 거쳐서 타 구성에 제어 신호를 전달함으로써 타 구성의 기능을 실행시킬 수 있다.The processor 120 may be electrically, operatively, or functionally connected to the memory 130 and/or the communication circuit 190. In the present disclosure, when one component is “operably” connected to another component, it may mean that one component is connected to operate the other component. For example, one component may actuate another component by transmitting a control signal to the other component, either directly or via another component. In the present disclosure, when one component is “functionally” connected to another component, it may mean that one component is connected to execute the function of the other component. For example, one component may execute the function of another component by transmitting a control signal to the other component directly or via another component.

메모리(130)는 인스트럭션들을 저장할 수 있다. 인스트럭션들은 프로세서(120)에 의하여 실행되었을 때, 전자 장치(101)로 하여금 다양한 동작들을 수행하도록 할 수 있다. 본 개시에서, 전자 장치(101)의 동작은 메모리(130)에 저장된 인스트럭션들을 실행함으로써 프로세서(120)에 의하여 수행되는 동작으로 참조될 수 있다. 본 개시에서, 전자 장치(101) 또는 프로세서(120)의 동작은 컴퓨터 판독가능 저장 매체에 저장된 인스트럭션들을 실행함으로써 수행되는 동작으로 참조될 수 있다. 예를 들어, 컴퓨터 판독가능 저장 매체는 비일시적(non-transitory) 저장 매체를 포함할 수 있다.Memory 130 may store instructions. When executed by the processor 120, the instructions may cause the electronic device 101 to perform various operations. In this disclosure, the operation of the electronic device 101 may be referred to as an operation performed by the processor 120 by executing instructions stored in the memory 130. In the present disclosure, the operation of the electronic device 101 or the processor 120 may be referred to as an operation performed by executing instructions stored in a computer-readable storage medium. For example, computer-readable storage media may include non-transitory storage media.

일 실시 예에서, 메모리(130)는 일반 영역(140)과 보안 영역(150)을 포함할 수 있다. 일반 영역(140)은 통상적인 메모리 영역으로서, 일반 OS에 의하여 운용되는 메모리 영역일 수 있다. 보안 영역(150)은 신뢰되는(trusted) 메모리 영역으로서, 보안 OS(secure OS)에 의하여 운영되는 메모리 영역일 수 있다. 예를 들어, 일반 영역(140)은 REE(Rich Execution Environment) 내의 메모리 영역으로 참조될 수 있다. 예를 들어, 보안 영역(150)은 TEE(Trusted Execution Environment) 내의 메모리 영역으로 참조될 수 있다. 일반 영역(140) 및 보안 영역(150)에 대한 설명은 도 2와 관련하여 후술될 수 있다. In one embodiment, the memory 130 may include a general area 140 and a security area 150. The general area 140 is a normal memory area and may be a memory area operated by a general OS. The security area 150 is a trusted memory area and may be a memory area operated by a secure OS. For example, the general area 140 may be referred to as a memory area within a Rich Execution Environment (REE). For example, the security area 150 may be referred to as a memory area within a Trusted Execution Environment (TEE). Descriptions of the general area 140 and the security area 150 may be described later with reference to FIG. 2 .

통신 회로(190)는 전자 장치(101)와 다른 전자 장치(예: 도 9의 전자 장치(902), 전자 장치(904), 및/또는 서버(908))와의 통신을 제공할 수 있다. 통신 회로(190)는 유선 통신 및/또는 무선 통신을 지원할 수 있다. 통신 회로(690)는 근거리 무선 통신 및/또는 원거리 무선 통신을 지원할 수 있다. 일 예에서, 전자 장치(101)는 통신 회로(190)를 이용하여 다른 전자 장치로부터 업데이트 데이터를 수신할 수 있다.Communication circuitry 190 may provide communication between electronic device 101 and other electronic devices (e.g., electronic device 902, electronic device 904, and/or server 908 of FIG. 9). Communication circuitry 190 may support wired and/or wireless communication. Communication circuitry 690 may support short-range wireless communication and/or long-range wireless communication. In one example, the electronic device 101 may receive update data from another electronic device using the communication circuit 190.

일 실시 예에 따르면, 전자 장치(101)는 메모리(130)에 저장된 OS을 업데이트할 수 있다. 예를 들어, 전자 장치(101)는 사용자 입력에 기반하여 OS를 업데이트하거나, 지정된 시기에 OS를 업데이트할 수 있다. 예를 들어, 전자 장치(101)는 구버전의 OS의 일부에 업데이트 데이터를 기록함으로서 구버전의 OS를 신버전의 OS로 업데이트할 수 있다. According to one embodiment, the electronic device 101 may update the OS stored in the memory 130. For example, the electronic device 101 may update the OS based on user input or may update the OS at a designated time. For example, the electronic device 101 may update an old version of the OS to a new version of the OS by recording update data in a part of the old version of the OS.

전자 장치(101)는 롤백 방지(roll back prevention, RP) 기능을 지원할 수 있다. 일 예에서, RP 버전 정보는 보안 영역(150)에 저장될 수 있다. 업데이트가 시도될 때, 전자 장치(101)는 업데이트될 이미지(예: 업데이트될 OS의 바이너리)의 RP 버전이 저장된 RP 버전보다 낮으면, 업데이트를 수행하지 않을 수 있다. 낮은 RP 버전에 기반한 업데이트를 방지함으로써, 전자 장치(101)는 RP 기능을 지원할 수 있다. RP 버전 정보는, 예를 들어, 업데이트될 OS의 버전 정보, 보안 카운터(security counter), 또는 임의의 버전 정보를 포함할 수 있다. 일 예에서, 전자 장치(101)는 저장된 RP 버전보다 낮은 버전의 이미지(예: OS 바이너리)가 실행되는 것을 방지함으로써 RP 기능을 지원할 수 있다. The electronic device 101 may support a roll back prevention (RP) function. In one example, RP version information may be stored in the secure area 150. When an update is attempted, the electronic device 101 may not perform the update if the RP version of the image to be updated (e.g., the binary of the OS to be updated) is lower than the stored RP version. By preventing updates based on low RP versions, the electronic device 101 can support RP functionality. RP version information may include, for example, version information of the OS to be updated, a security counter, or any version information. In one example, the electronic device 101 may support the RP function by preventing an image (e.g., OS binary) of a lower version than the stored RP version from being executed.

전자 장치(101)는 가상 파티션(virtual partition)을 이용하여 업데이트를 수행할 수 있다. 전자 장치(101)는 구 버전 OS의 일부와 신 버전 OS의 업데이트 데이터를 포함하는 가상 파티션을 설정할 수 있다. 가상 파티션 내의 신버전 OS를 이용하여, 전자 장치(101)는 신버전 OS에 기반한 부팅을 시도할 수 있다. 예를 들어, 부팅 과정에서 전자 장치(101)는 정하여진 프로세스(예: 부트로더(boot loader)의 프로세스)에 따라서 신버전 OS에 대응하는 RP 버전을 메모리(140)에 기록할 수 있다. 그런데, 업데이트 과정에서 문제가 발생할 수 있다. 예를 들어, 업데이트된 OS에 기반한 부팅이 완료되지 않을 수 있다. 부팅의 미완료로 인하여, 무한 부팅 오류와 같은 문제가 발생될 수 있다. 그러나, RP 기능으로 인하여, OS의 롤백이 수행되지 못할 수 있다. 가상 파티션이 아닌 메모리 영역에는 구버전 OS가 저장되어 있더라도, RP 기능이 구버전 OS의 실행을 방지할 수 있다. 일 실시 예에 따르면, 전자 장치(101)는 RP 기능과 충돌하지 않도록 업데이틀 수행할 수 있다. 이하에서, 도 2 내지 도 9를 참조하여, 전자 장치(101)의 업데이트 방법이 설명될 수 있다. The electronic device 101 may perform an update using a virtual partition. The electronic device 101 may set up a virtual partition that includes part of an old version of the OS and update data of a new version of the OS. Using the new version OS in the virtual partition, the electronic device 101 may attempt to boot based on the new version OS. For example, during the booting process, the electronic device 101 may record the RP version corresponding to the new version OS in the memory 140 according to a designated process (eg, a boot loader process). However, problems may occur during the update process. For example, booting based on the updated OS may not complete. Due to incomplete booting, problems such as infinite booting errors may occur. However, due to the RP function, OS rollback may not be performed. Even if an older version of the OS is stored in a memory area other than a virtual partition, the RP function can prevent the execution of the older version of the OS. According to one embodiment, the electronic device 101 may perform an update so as not to conflict with the RP function. Below, a method of updating the electronic device 101 may be described with reference to FIGS. 2 to 9 .

도 2는 일 실시 예에 따른 전자 장치의 메모리 구조를 도시한다. Figure 2 shows a memory structure of an electronic device according to an embodiment.

도 1 및 도 2를 참조하여, 전자 장치(101)는 일반 영역(140) 및 보안 영역(150)을 운용함으로서 전자 장치(101)의 실행 환경을 분리할 수 있다. 일 예에서, 일반 영역(140)은 리치(rich) OS(230)(예: 도 9의 운영 체제(942))에 의하여 운영되는 실행 환경 및 메모리 영역을 의미할 수 있다. 보안 영역(150)은 신뢰(trusted) OS(280)에 의하여 운영되는 실행 환경 및 메모리 영역을 의미할 수 있다. 일반 영역(140)과 보안 영역(150)은, 예를 들어, 하나의 프로세서(120)에 의하여 구현되는 영역들일 수 있다. 일 예에서, 보안 영역(150)은 별개의 메모리 및 프로세서를 포함하는 칩에 의하여 구현되는 영역일 수 있다. Referring to FIGS. 1 and 2 , the electronic device 101 can separate the execution environment of the electronic device 101 by operating a general area 140 and a security area 150. In one example, the general area 140 may refer to an execution environment and memory area operated by a rich OS 230 (e.g., the operating system 942 of FIG. 9). The security area 150 may refer to an execution environment and memory area operated by the trusted OS 280. The general area 140 and the security area 150 may be areas implemented by, for example, one processor 120. In one example, the security area 150 may be an area implemented by a chip including a separate memory and processor.

일반 영역(140)은, 예를 들어, 일반(normal) 어플리케이션(210) 및 보안 OS 지원 어플리케이션(applications with secure OS support, 220)을 포함할 수 있다. 일반 어플리케이션(210)(예: 도 9의 어플리케이션(946))은 리치 OS(230)의 지원 하에 동작하는 어플리케이션일 수 있으며, 클라이언트 어플리케이션으로 참조될 수 있다. 보안 OS 지원 어플리케이션(220)(예: 도 9의 어플리케이션(946))은 리치 OS(230)의 지원 하에서, 보안 영역(150)의 데이터를 획득할 수 있는 어플리케이션으로 참조될 수 있다. The general area 140 may include, for example, a normal application 210 and applications with secure OS support (220). The general application 210 (e.g., the application 946 in FIG. 9) may be an application that operates under the support of the rich OS 230 and may be referred to as a client application. The security OS support application 220 (e.g., the application 946 in FIG. 9) may be referred to as an application that can obtain data of the security area 150 under the support of the rich OS 230.

보안 영역(150)은 일반 영역(140)으로부터 분리된 실행 환경일 수 있다. 예를 들어, 신뢰 OS(280)는 리치 OS(230)와는 독립적으로 동작할 수 있다. 일 예에서, 리치 OS(230)가 부팅에 실패 하더라도, 신뢰 OS(280)는 성공적으로 부팅될 수 있다. 보안 영역(150)은 신뢰 어플리케이션(260, 270)의 실행 환경에 대응할 수 있다. 신뢰 어플리케이션(260, 270)은 지정된 보안 요구를 만족하는 어플리케이션으로서, 신뢰 OS(280)의 지원 하에 동작하는 어플리케이션일 수 있다. The security area 150 may be an execution environment separated from the general area 140. For example, the trusted OS 280 may operate independently of the rich OS 230. In one example, even if the rich OS 230 fails to boot, the trusted OS 280 may boot successfully. The security area 150 may correspond to the execution environment of the trusted applications 260 and 270. The trusted applications 260 and 270 are applications that satisfy specified security requirements and may be applications that operate under the support of the trusted OS 280.

일 예에서, 신뢰 어플리케이션(260)은 일반 영역(140)에서 동작하는 보안 OS 지원 어플리케이션(220)과 상호작용할 수 있다. 보안 OS 지원 어플리케이션(220)은 신뢰 어플리케이션(260)에 지정된 동작(예: 보안 관련 동작)의 수행을 요청하고, 신뢰 어플리케이션(260)으로부터 지정된 동작의 결과 값을 수신할 수 있다. 보안 OS 지원 어플리케이션(220)은 수신된 결과 값을 이용하여, 예를 들어, 보안 관련 동작(예: 인증)을 수행할 수 있다. 일 예에서, 신뢰 어플리케이션(260)은 보안 OS 지원 어플리케이션(220)에 의하여 이용되는 메모리 영역에 저장된 값을 획득할 수 있다. 예를 들어, 신뢰 어플리케이션(260)은 보안 OS 지원 어플리케이션(220)에 의하여 이용되는 메모리 영역을 모니터링함으로써 저장된 값을 획득할 수 있다.In one example, trusted application 260 may interact with a secure OS support application 220 operating in general area 140 . The security OS support application 220 may request the trusted application 260 to perform a specified operation (e.g., a security-related operation) and receive a result value of the specified operation from the trusted application 260. The security OS support application 220 may use the received result value to perform, for example, a security-related operation (eg, authentication). In one example, the trusted application 260 may obtain a value stored in a memory area used by the secure OS support application 220. For example, the trusted application 260 may obtain the stored value by monitoring the memory area used by the secure OS support application 220.

모니터(290)는 일반 영역(140)과 보안 영역(150) 사이의 주요(primary) 인터페이스일 수 있다. 예를 들어, 일반 영역(140)의 데이터가 모니터(290)를 통하여 보안 영역(150)의 신뢰 어플리케이션(270)에 전달될 수 있다. 보안 영역(150)으로 전달된 데이터는 신뢰 어플리케이션(270)에 의한 인증 후에 보안 영역(150)에 저장될 수 있다. 예를 들어, 일반 영역(140)의 보안 OS 지원 어플리케이션(220)은 모니터(290)를 통하여 보안 영역(150)의 데이터를 획득할 수 있다. The monitor 290 may be the primary interface between the general area 140 and the security area 150. For example, data in the general area 140 may be transmitted to the trusted application 270 in the security area 150 through the monitor 290. Data transmitted to the secure area 150 may be stored in the secure area 150 after authentication by the trusted application 270. For example, the security OS support application 220 of the general area 140 may obtain data of the security area 150 through the monitor 290.

일 실시 예에 따르면, 전자 장치(101)는 도 3 내지 도 8과 관련하여 후술되는 바와 같이 보안 영역(150) 내에 RP 버전을 저장할 수 있다. 보안 영역(150) 내에 RP 버전을 저장함으로서, 사용자나 침입자에 의한 임의적인 롤백을 방지할 수 있다. 이하에서 논의되는 OS의 업데이트는, 예를 들어, 도 2의 리치 OS(230)에 대응하는 OS의 업데이트로 참조될 수 있다. 도 3 및 도 4를 참조하여, 전자 장치(101)의 업데이트 방법이 설명될 수 있다.According to one embodiment, the electronic device 101 may store the RP version in the secure area 150, as will be described later with reference to FIGS. 3 to 8. By storing the RP version in the security area 150, arbitrary rollback by a user or intruder can be prevented. The OS update discussed below may be referred to, for example, as an update of the OS corresponding to the rich OS 230 of FIG. 2 . With reference to FIGS. 3 and 4 , a method of updating the electronic device 101 may be described.

도 3은 일 실시 예에 따른 가상 파티션의 구성을 도시한다. Figure 3 shows the configuration of a virtual partition according to one embodiment.

도 1 및 도 3을 참조하여, 일반 영역(140)은 제1 영역(310) 및 제2 영역(320)을 포함할 수 있다. 예를 들어, 제1 영역(310)은 일반 영역(140)의 제1 파티션에 대응하고, 제2 영역(320)은 일반 영역(140)의 제2 파티션에 대응할 수 있다. 제1 파티션과 제2 파티션은 가상 파티션이 아닌 파티션으로 참조될 수 있다. Referring to FIGS. 1 and 3 , the general area 140 may include a first area 310 and a second area 320 . For example, the first area 310 may correspond to the first partition of the general area 140, and the second area 320 may correspond to the second partition of the general area 140. The first partition and the second partition may be referred to as partitions rather than virtual partitions.

일 예에서, 제1 영역(310)은 OS가 설치된 메모리 영역일 수 있다. 제1 영역(310)의 제1 부분(311)은, 예를 들어, OS의 공급자(vendor)에 의하여 구현된 코드가 저장된 부분일 수 있다. 제2 부분(312)은 전자 장치(101)의 공급자에 의하여 구현된 코드가 저장된 부분일 수 있다. 제1 부분(311)은 제1 데이터(313)를 포함하고, 제2 부분(312)은 제2 데이터(314)를 포함할 수 있다. 도 3의 예시에서, 제1 영역(310)에 설치된 OS는 제1 버전의 OS로 참조될 수 있다.In one example, the first area 310 may be a memory area where an OS is installed. The first part 311 of the first area 310 may be, for example, a part where code implemented by an OS vendor is stored. The second part 312 may be a part where a code implemented by the supplier of the electronic device 101 is stored. The first part 311 may include first data 313, and the second part 312 may include second data 314. In the example of FIG. 3, the OS installed in the first area 310 may be referred to as the first version of the OS.

일 예에서, 전자 장치(101)는 제2 영역(320)에 제1 업데이트 데이터(323) 및 제2 업데이트 데이터(324)를 저장할 수 있다. 제2 영역(320)은, 예를 들어, 사용자 데이터가 저장되는 영역일 수 있다. 제1 업데이트 데이터(323)는 제1 데이터(313)에 대한 업데이트 데이터로, 제2 업데이트 데이터(324)는 제2 데이터(324)에 대한 업데이트 데이터로 참조될 수 있다. 제1 업데이트 데이터(323)와 제2 업데이트 데이터(324)는 제1 영역(310)에 저장된 제1 버전의 OS를 제2 버전의 OS로 업데이트 하기 위한 데이터로 참조될 수 있다. In one example, the electronic device 101 may store first update data 323 and second update data 324 in the second area 320 . The second area 320 may be, for example, an area where user data is stored. The first update data 323 may be referred to as update data for the first data 313, and the second update data 324 may be referred to as update data for the second data 324. The first update data 323 and the second update data 324 may be referred to as data for updating the first version of the OS stored in the first area 310 to the second version of the OS.

도 3의 예시에서는, 제1 데이터(313) 및 제2 데이터(314)가 업데이트되는 것으로 예시되어 있으나, 본 개시의 실시 예들이 이에 제한되는 것은 아니다. 예를 들어, 제1 데이터(313) 또는 제2 데이터(314) 중 하나가 업데이트될 수 있다. In the example of FIG. 3, the first data 313 and the second data 314 are illustrated as being updated, but embodiments of the present disclosure are not limited thereto. For example, either the first data 313 or the second data 314 may be updated.

일 실시 예에 따르면, 전자 장치(101)는 가상 영역(390)을 구성할 수 있다. 예를 들어, 가상 영역(390)은 가상 파티션으로 참조될 수 있다. 전자 장치(101)는 제1 부분(311)이 제1 데이터(313) 대신에 제1 업데이트 데이터(323)를 포함하고, 제2 부분(312)이 제2 데이터(314) 대신에 제2 업데이트 데이터(324)를 포함하더라도, 가상 영역(390)을 구성할 수 있다. 실제 데이터는 그대로 두고 가상 영역(390)이 구성되기 때문에, 제1 데이터(313)와 제2 데이터(314)는 그대로 제1 영역(310)에 저장된 상태일 수 있다.According to one embodiment, the electronic device 101 may configure a virtual area 390. For example, virtual area 390 may be referred to as a virtual partition. The electronic device 101 includes the first part 311 including first update data 323 instead of the first data 313, and the second part 312 including the second update data 314 instead of the second data 314. Even if it includes data 324, a virtual area 390 can be formed. Since the virtual area 390 is formed while leaving the actual data as is, the first data 313 and the second data 314 may be stored in the first area 310 as is.

가상 영역(390)은 업데이트된 데이터를 포함하도록 구성되기 때문에, 가상 영역(390)은 제2 버전의 OS를 포함할 수 있다. 전자 장치(101)는 가상 영역(390)의 OS(예: OS 이미지)를 이용하여 부팅을 시도할 수 있다.Because the virtual area 390 is configured to contain updated data, the virtual area 390 may include a second version of the OS. The electronic device 101 may attempt to boot using the OS (eg, OS image) of the virtual area 390.

도 4는 일 실시 예에 따른 업데이트된 운영 체제를 도시한다. Figure 4 shows an updated operating system according to one embodiment.

도 1, 도 3, 및 도 4를 참조하여, 일 실시 예에 따르면, 전자 장치(101)는 도 3의 가상 영역(390)의 OS를 이용한 부팅이 성공적으로 완료되면, 제1 업데이트 데이터(323) 및 제2 업데이트 데이터(324)를 제1 영역(310)에 기록할 수 있다. 예를 들어, 전자 장치(101)는 가상 영역(390)의 OS를 이용한 부팅이 성공적으로 완료되면, 업데이트가 성공적으로 완료된 것으로 결정할 수 있다. 전자 장치(101)는 가상 영역(390)이 아닌 제1 영역(310)에 업데이트 데이터를 기록함으로써 업데이트를 완료할 수 있다. 예를 들어, 전자 장치(101)는 제1 데이터(313)의 위치에 제1 업데이트 데이터(323)를 기록하고, 제2 데이터(312)의 위치에 제2 업데이트 데이터(324)를 기록할 수 있다. 업데이트가 완료되면, 예를 들어, 전자 장치(101)는 제2 영역(320)에 저장된 제1 업데이트 데이터(323) 및 제2 업데이트 데이터(324)를 삭제할 수 있다. Referring to FIGS. 1, 3, and 4, according to one embodiment, when booting using the OS of the virtual area 390 of FIG. 3 is successfully completed, the electronic device 101 generates first update data 323. ) and second update data 324 may be recorded in the first area 310. For example, when booting using the OS of the virtual area 390 is successfully completed, the electronic device 101 may determine that the update has been successfully completed. The electronic device 101 may complete the update by recording update data in the first area 310 rather than the virtual area 390. For example, the electronic device 101 may record first update data 323 at the location of the first data 313 and record second update data 324 at the location of the second data 312. there is. When the update is completed, for example, the electronic device 101 may delete the first update data 323 and the second update data 324 stored in the second area 320.

일 예에서, 업데이트가 성공적으로 완료되지 못할 수 있다. 예를 들어, 전자 장치(101)는 가상 영역(390)의 OS에 기반한 부팅에 실패할 수 있다. 일 실시 예에 따르면, 전자 장치(101)는 업데이트에 실패하면, 도 3의 제1 영역(310)에 저장된 제1 버전의 OS를 이용하여 부팅을 시도할 수 있다. 이 경우, RP 기능으로 인하여 제1 버전의 OS의 부팅이 제한되는 것을 막기 위하여, 전자 장치(101)는 도 5 내지 도 8과 관련하여 후술되는 방법에 따라서 업데이트를 수행할 수 있다. In one example, the update may not complete successfully. For example, the electronic device 101 may fail to boot based on the OS of the virtual area 390. According to one embodiment, if the update fails, the electronic device 101 may attempt to boot using the first version of the OS stored in the first area 310 of FIG. 3. In this case, in order to prevent booting of the first version of the OS from being restricted due to the RP function, the electronic device 101 may perform an update according to a method described later with reference to FIGS. 5 to 8.

도 5는 일 실시 예에 따른 전자 장치의 모듈들을 도시한다.Figure 5 shows modules of an electronic device according to one embodiment.

도 1 및 도 5를 참조하여, 일 실시 예에 따르면, 전자 장치(101)는 업데이트 상태에 기반하여 RP 버전을 설정할 수 있다. 도 5와 관련하여 설명되는 전자 장치(101)의 구성들은, 프로세서(120)가 인스트럭션들을 실행함으로써 구현되는 소프트웨어 모듈들로 참조될 수 있다. 후술되는 다양한 구성들의 동작들은, 모두 전자 장치(101)의 동작들로 참조될 수 있다.Referring to FIGS. 1 and 5 , according to one embodiment, the electronic device 101 may set the RP version based on the update status. Configurations of the electronic device 101 described with reference to FIG. 5 may be referred to as software modules implemented by the processor 120 executing instructions. Operations of various components described later may all be referred to as operations of the electronic device 101.

일 실시 예에 따르면, 일반 영역(140)은 업데이트 상태 관리자(510), 업데이트 상태 파티션(520), 및 RP 모듈(530)을 포함할 수 있다. 업데이트 상태 파티션(520)은 전자 장치(101)의 업데이트 상태가 기록된 메모리 영역으로 참조될 수 있다. RP 모듈(530)은, 예를 들어, RP 버전 DB(580)에 기록된 RP 버전보다 낮은 RP 버전의 바이너리(예: OS 이미지)가 실행되는 것을 방지하는 모듈일 수 있다. RP 모듈(530)은 상술된 RP 기능을 수행하는 모듈로 참조될 수 있다. 도 5의 예시에서, RP 모듈(530)은 일반 영역(140) 상에서 구현되고 있으나, 본 문서의 실시 예들이 이에 제한되는 것은 아니다. 예를 들어, RP 모듈(530)은 보안 영역(150) 상에 구현될 수 있다.According to one embodiment, the general area 140 may include an update status manager 510, an update status partition 520, and an RP module 530. The update status partition 520 may be referred to as a memory area in which the update status of the electronic device 101 is recorded. For example, the RP module 530 may be a module that prevents a binary (e.g., OS image) of a lower RP version than the RP version recorded in the RP version DB 580 from being executed. The RP module 530 may be referred to as a module that performs the above-described RP function. In the example of FIG. 5, the RP module 530 is implemented on the general area 140, but embodiments of this document are not limited thereto. For example, RP module 530 may be implemented on secure area 150.

일 실시 예에 따르면, 업데이트 상태 관리자(510)는, 부팅 시에, 부팅 결과를 나타내는 정보를 신뢰(trusted) 업데이트 상태 수신 모듈(560)에 전달할 수 있다. 예를 들어, 업데이트 상태 관리자(510)는 일반 영역(140)과 보안 영역(150) 사이의 임의의 인터페이스(예: 도 2의 모니터(290))를 통하여 신뢰 업데이트 상태 수신 모듈(560)에 정보를 전달할 수 있다. 업데이트 상태 관리자(510)는 전자 장치(101)의 부팅 시에 실행되는 코드일 수 있다. 예를 들어, 업데이트 상태 관리자(510)는 부트로더(boot loader)의 일부로서 구현될 수 있다. 예를 들어, 업데이트 상태 관리자(510)는 OS의 부팅과 독립적으로 실행될 수 있는 데몬(daemon)일 수 있다.According to one embodiment, the update status manager 510 may transmit information indicating the booting result to the trusted update status reception module 560 when booting. For example, the update status manager 510 provides information to the trust update status reception module 560 through any interface (e.g., monitor 290 in FIG. 2) between the general area 140 and the security area 150. can be transmitted. The update status manager 510 may be code that is executed when the electronic device 101 boots. For example, the update status manager 510 may be implemented as part of a boot loader. For example, the update status manager 510 may be a daemon that can be executed independently from the booting of the OS.

업데이트 상태 관리자(510)는 업데이트 상태 파티션(520)에 저장된 업데이트 상태를 식별하고, 식별된 업데이트 상태에 기반하여 부팅 결과를 나타내는 결과 정보를 획득할 수 있다. 업데이트 상태는, 예를 들어, 제1 상태, 제2 상태, 및/또는 오류 상태를 포함할 수 있다. 제1 상태는, 전자 장치(101)가 업데이트 이전의 OS(예: 도 3의 제1 영역(310)에 저장된 제1 버전의 OS)를 이용하여 부팅된 상태(예: 이전 버전의 OS를 이용하여 동작하는 상태)를 의미할 수 있다. 제2 상태는, 전자 장치(101)가 업데이트된 OS(예: 도 3의 가상 영역(390) 또는 도 4의 제1 영역(310)에 저장된 제2 버전의 OS)를 이용하여 부팅된 상태(예: 업데이트된 버전의 OS를 이용하여 동작하는 상태)를 의미할 수 있다. 오류 상태는, 오류 또는 업데이트 실패로 롤백이 필요한 상태를 의미할 수 있다. The update status manager 510 may identify the update status stored in the update status partition 520 and obtain result information indicating the booting result based on the identified update status. The update state may include, for example, a first state, a second state, and/or an error state. The first state is a state in which the electronic device 101 is booted using the OS before the update (e.g., the first version of the OS stored in the first area 310 of FIG. 3) (e.g., using the previous version of the OS). It can mean an operating state). The second state is a state in which the electronic device 101 is booted using an updated OS (e.g., a second version of the OS stored in the virtual area 390 of FIG. 3 or the first area 310 of FIG. 4) ( Example: This may mean a state of operation using an updated version of the OS. An error state may mean a state that requires rollback due to an error or update failure.

일 예에서, 결과 정보는 업데이트 상태 정보(예: 제1 상태, 제2 상태, 또는 오류 상태) 외에도, 추가적인 정보를 더 포함할 수 있다. 예를 들어, 결과 정보는 업데이트 상태 정보를 획득한 시간을 나타내는 시간 정보(예: 타임 스탬프)를 포함할 수 있다. 예를 들어, 결과 정보는 상술된 정보 외에도, 임의의 필요 정보를 포함할 수 있다. In one example, the result information may further include additional information in addition to update status information (eg, first state, second state, or error state). For example, the result information may include time information (eg, time stamp) indicating the time at which the update status information was obtained. For example, the result information may include any necessary information in addition to the information described above.

일 실시 예에 따르면, 보안 영역(150)은 신뢰 업데이트 상태 수신 모듈(560), RP 버전 제어 모듈(570), 및 RP 버전 DB(580)를 포함할 수 있다. RP 버전 DB(580)는 RP 버전이 저장된 메모리 영역일 수 있다. According to one embodiment, the security area 150 may include a trust update status reception module 560, an RP version control module 570, and an RP version DB 580. The RP version DB 580 may be a memory area where the RP version is stored.

신뢰 업데이트 상태 수신 모듈(560)은 업데이트 상태 관리자(510)로부터 결과 정보(예: 업데이트 상태 정보, 시간 정보, 및/또는 임의의 정보)를 수신할 수 있다. 신뢰 업데이트 상태 수신 모듈(560)은 수신된 결과 정보를 RP 버전 제어 모듈(570)에 전달할 수 있다. The trusted update status receiving module 560 may receive result information (e.g., update status information, time information, and/or arbitrary information) from the update status manager 510. The trust update status receiving module 560 may transmit the received result information to the RP version control module 570.

일 예에서, 신뢰 업데이트 상태 수신 모듈(560)은 수신된 결과 정보에 대한 인증을 수행할 수 있다. 예를 들어, 신뢰 업데이트 상태 수신 모듈(560)은 결과 정보의 암호화 방식, 접속 코드, 및/또는 시간 정보를 이용하여 결과 정보를 인증할 수 있다. 신뢰 업데이트 상태 수신 모듈(560)은 결과 정보에 대한 인증이 성공적이면 결과 정보의 적어도 일부를 RP 버전 제어 모듈(570)에 전달할 수 있다. In one example, the trust update status receiving module 560 may perform authentication on the received result information. For example, the trust update status receiving module 560 may authenticate the result information using an encryption method, access code, and/or time information of the result information. If authentication of the result information is successful, the trust update status reception module 560 may transmit at least part of the result information to the RP version control module 570.

일 실시 예에 따르면, RP 버전 제어 모듈(570)은 신뢰 업데이트 상태 수신 모듈(560)로부터 수신된 결과 정보(예: 상태 정보)에 기반하여 RP 버전 DB(580)에 저장된 RP 버전 정보를 관리할 수 있다. 예를 들어, RP 버전 제어 모듈(570)은 결과 정보가 업데이트된 OS에 기반한 성공적인 부팅을 나타낼 때에 RP 버전 정보를 업데이트할 수 있다. 예를 들어, RP 버전 제어 모듈(570)은 결과 정보가 지시하는 상태 정보에 기반하여 파티션 별로 RP 제어 정보를 저장할 수 있다. RP 버전 제어 모듈(570)의 동작은 도 6 및 도 7과 관련하여 설명될 수 있다.According to one embodiment, the RP version control module 570 manages the RP version information stored in the RP version DB 580 based on the result information (e.g., status information) received from the trust update status reception module 560. You can. For example, the RP version control module 570 may update the RP version information when the result information indicates a successful boot based on the updated OS. For example, the RP version control module 570 may store RP control information for each partition based on status information indicated by result information. The operation of the RP version control module 570 can be described with respect to FIGS. 6 and 7.

전자 장치(101)는 결과 정보에 기반한 RP 버전의 업데이트를 통하여 업데이트 중에 발생할 수 있는 RP 기능에 의한 업데이트 오류를 방지할 수 있다. 전자 장치(101)는 보안 영역(150) 상에서 RP 버전의 업데이트 여부를 결정하고 RP 버전을 기록함으로써, 보안 취약점을 보완할 수 있다.The electronic device 101 can prevent update errors caused by the RP function that may occur during the update by updating the RP version based on the result information. The electronic device 101 can supplement security vulnerabilities by determining whether to update the RP version in the security area 150 and recording the RP version.

도 6은 일 실시 예에 따른 전자 장치의 업데이트 방법의 신호 흐름도이다.Figure 6 is a signal flow diagram of a method for updating an electronic device according to an embodiment.

도 5 및 도 6을 참조하여, 일 실시 예에 따르면, RP 버전 제어 모듈(570)은 결과 정보에 기반하여 RP 버전 정보를 RP 버전 DB(580)에 저장할 수 있다. 예를 들어, RP 버전 DB(580)에는 구버전의 OS(예: 도 3의 제1 영역(310)에 저장된 OS)에 대응하는 RP 버전 정보가 저장된 상태일 수 있다. Referring to FIGS. 5 and 6 , according to one embodiment, the RP version control module 570 may store RP version information in the RP version DB 580 based on the result information. For example, the RP version DB 580 may store RP version information corresponding to an older version of the OS (e.g., the OS stored in the first area 310 of FIG. 3).

동작 605에서, 전자 장치(101)의 부팅 시에, 업데이트 상태 관리자(510)는 업데이트 상태 파티션(520)의 상태를 식별할 수 있다. 동작 610에서, 업데이트 상태 관리자(510)는 상태 정보(예: 결과 정보)를 업데이트 상태 수신 모듈(560)에 전달할 수 있다. In operation 605, when the electronic device 101 boots, the update status manager 510 may identify the status of the update status partition 520. In operation 610, the update status manager 510 may transmit status information (eg, result information) to the update status reception module 560.

동작 615에서, 업데이트 상태 수신 모듈(560)은 RP 버전 제어 모듈(570)에 상태 정보를 전달할 수 있다. 예를 들어, 업데이트 상태 수신 모듈(560)은 수신된 상태 정보에 대하여 인증을 수행하고, 인증이 성공적이면 상태 정보를 전달할 수 있다. At operation 615, the update status reception module 560 may transmit status information to the RP version control module 570. For example, the update status receiving module 560 may perform authentication on the received status information and deliver the status information if the authentication is successful.

동작 620에서, RP 버전 제어 모듈(570)은 업데이트된 OS에 기반한 부팅이 성공되었는지 결정할 수 있다. 예를 들어, RP 버전 제어 모듈(570)은 수신된 상태 정보에 기반하여 업데이트된 OS에 기반한 부팅이 성공되었는지 결정할 수 있다. 예를 들어, RP 버전 제어 모듈(570)은 수신된 상태 정보가 제2 상태(예: 업데이트된 제2 버전의 OS를 이용하여 부팅된 상태)를 나타내면, 업데이트된 OS에 기반한 부팅이 성공된 것으로 결정할 수 있다. 예를 들어, RP 버전 제어 모듈(570)은 수신된 상태 정보가 제1 상태(예: 구 버전인 제1 버전의 OS를 이용하여 부팅된 상태) 또는 오류 상태를 나타내면, 업데이트된 OS에 기반한 부팅이 실패한 것으로 결정할 수 있다.At operation 620, the RP version control module 570 may determine whether booting based on the updated OS was successful. For example, the RP version control module 570 may determine whether booting based on the updated OS was successful based on the received status information. For example, if the received state information indicates a second state (e.g., a state booted using an updated second version of the OS), the RP version control module 570 determines that booting based on the updated OS is successful. You can decide. For example, if the received state information indicates a first state (e.g., a state booted using a first version of the OS that is old) or an error state, the RP version control module 570 may perform booting based on the updated OS. You can decide that this has failed.

업데이트된 OS에 기반한 부팅이 성공한 경우(예: 동작 620-YES), 동작 625에서, RP 버전 제어 모듈(570)은 RP 버전 DB(580)에 저장된 RP 버전을 업데이트할 수 있다. 예를 들어, RP 버전 제어 모듈(570)은 RP 버전 DB(580)에 저장된 RP 버전 정보를 제1 RP 버전 정보로부터 제2 RP 버전 정보로 업데이트할 수 있다. 예를 들어, 제1 RP 버전 정보는 제1 버전의 OS에 대응하는 RP 버전이고, 제2 RP 정보는 제2 버전의 OS에 대응하는 RP 버전일 수 있다. If booting based on the updated OS is successful (e.g., operation 620-YES), in operation 625, the RP version control module 570 may update the RP version stored in the RP version DB 580. For example, the RP version control module 570 may update the RP version information stored in the RP version DB 580 from the first RP version information to the second RP version information. For example, the first RP version information may be the RP version corresponding to the first version of the OS, and the second RP information may be the RP version corresponding to the second version of the OS.

업데이트된 OS에 기반한 부팅이 실패한 경우(예: 동작 620-NO), 동작 630에서, RP 버전 제어 모듈(570)은 RP 버전 DB(580)에 저장된 RP 버전을 유지할 수 있다. 예를 들어, RP 버전 제어 모듈(570)은 수신된 결과(예: 상태 정보)가 제1 상태(예: 구 버전인 제1 버전의 OS를 이용하여 부팅된 상태) 또는 오류 상태를 나타내면, RP 버전 DB(580)에 저장된 RP 버전 정보를 제1 RP 버전 정보로 유지할 수 있다. If booting based on the updated OS fails (e.g., operation 620-NO), in operation 630, the RP version control module 570 may maintain the RP version stored in the RP version DB 580. For example, if the received result (e.g., status information) indicates a first state (e.g., booted using a first version of the OS that is older) or an error state, the RP version control module 570 The RP version information stored in the version DB 580 can be maintained as the first RP version information.

RP 모듈(530)은 RP 버전 DB(560)에 저장된 RP 버전을 이용하여 롤백 방지 여부를 결정할 수 있다. 예를 들어, 업데이트에 실패한 경우(예: 동작 620-NO), 결과 정보는 제1 상태 또는 오류 상태를 지시할 수 있다. 이 경우, RP 버전 제어 모듈(570)은 제1 RP 버전 정보를 유지(예: 동작 630)할 수 있다. RP 모듈(530)은 제1 RP 버전 정보에 기반하여 롤백 방지 기능을 적용할 수 있다. 따라서, 제2 버전으로의 업데이트가 실패되는 경우라도, 제1 버전 OS로의 롤백이 수행될 수 있다. 예를 들어, 가상 파티션(예: 도 3의 가상 영역(390))에 저장된 제2 버전의 OS에 기반한 부팅이 성공하는 경우(예: 동작 620-YES), 결과 정보는 제2 상태를 지시할 수 있다. 이 경우, RP 버전 제어 모듈(570)은 제1 RP 버전 정보를 제2 RP 버전 정보로 업데이트(예: 동작 625)할 수 있다. RP 모듈(530)은 제2 RP 버전 정보에 기반하여 롤백 방지 기능을 적용할 수 있다.The RP module 530 can determine whether to prevent rollback using the RP version stored in the RP version DB 560. For example, if the update fails (e.g., operation 620-NO), the resulting information may indicate a first state or an error state. In this case, the RP version control module 570 may maintain the first RP version information (eg, operation 630). The RP module 530 may apply a rollback prevention function based on the first RP version information. Therefore, even if the update to the second version fails, a rollback to the first version OS can be performed. For example, if booting based on the second version of the OS stored in the virtual partition (e.g., virtual area 390 in FIG. 3) is successful (e.g., operation 620-YES), the resulting information may indicate the second state. You can. In this case, the RP version control module 570 may update the first RP version information with the second RP version information (eg, operation 625). The RP module 530 may apply a rollback prevention function based on the second RP version information.

도 7은 일 실시 예에 따른 전자 장치의 업데이트 방법의 신호 흐름도이다.7 is a signal flow diagram of a method for updating an electronic device according to an embodiment.

도 5 및 도 7을 참조하여, 일 실시 예에 따르면, RP 버전 제어 모듈(570)은 각각의 파티션에 대하여 RP 버전 정보를 RP 버전 DB(580)에 저장할 수 있다. 예를 들어, RP 버전 DB(580)에는 구버전의 OS(예: 도 3의 제1 영역(310)에 저장된 OS)에 대응하는 RP 버전 정보가 저장된 상태일 수 있다. 구버전인 제1 버전의 OS에 대응하는 RP 버전 정보는 제1 파티션(예: 도 3의 제1 영역(310))과 매핑되어 RP 버전 DB(580)에 저장될 수 있다. Referring to FIGS. 5 and 7 , according to one embodiment, the RP version control module 570 may store RP version information for each partition in the RP version DB 580. For example, the RP version DB 580 may store RP version information corresponding to an older version of the OS (e.g., the OS stored in the first area 310 of FIG. 3). RP version information corresponding to the first version of the OS, which is an older version, may be mapped to the first partition (e.g., the first area 310 in FIG. 3) and stored in the RP version DB 580.

동작 605에서, 전자 장치(101)의 부팅 시에, 업데이트 상태 관리자(510)는 업데이트 상태 파티션(520)의 상태를 식별할 수 있다. 동작 610에서, 업데이트 상태 관리자(510)는 상태 정보(예: 결과 정보)를 업데이트 상태 수신 모듈(560)에 전달할 수 있다. 동작 615에서, 업데이트 상태 수신 모듈(560)은 RP 버전 제어 모듈(570)에 상태 정보를 전달할 수 있다. In operation 605, when the electronic device 101 boots, the update status manager 510 may identify the status of the update status partition 520. In operation 610, the update status manager 510 may transmit status information (eg, result information) to the update status reception module 560. At operation 615, the update status reception module 560 may transmit status information to the RP version control module 570.

동작 720에서, RP 버전 제어 모듈(570)은 수신된 상태 정보에 기반하여 RP 버전 정보를 RP 버전 DB(580)에 저장할 수 있다. 예를 들어, 수신된 상태 정보는 제2 상태(예: 업데이트된 제2 버전의 OS를 이용하여 부팅된 상태)를 지시할 수 있다. RP 버전 제어 모듈(570)은 제2 버전의 OS에 대응하는 RP 버전 정보를 가상 파티션(예: 도 3의 가상 영역(390))과 매핑하여 RP 버전 DB(580)에 저장할 수 있다. 이 경우, RP 버전 DB(580)에는 제1 파티션에 매핑된 제1 RP 버전 정보(예: 제1 버전의 OS에 대응하는 RP 버전 정보) 및 가상 파티션에 매핑된 제2 RP 버전 정보(예: 제2 버전의 OS에 대응하는 RP 버전 정보)가 저장될 수 있다. 한편, 결과 정보가 오류 상태를 지시하는 경우, RP 버전 제어 모듈(570)는 수신된 결과 정보를 RP 버전 DB(580)에 저장하지 않을 수 있다. In operation 720, the RP version control module 570 may store RP version information in the RP version DB 580 based on the received status information. For example, the received state information may indicate a second state (eg, booted using an updated second version of the OS). The RP version control module 570 may map the RP version information corresponding to the second version of the OS with a virtual partition (e.g., the virtual area 390 in FIG. 3) and store it in the RP version DB 580. In this case, the RP version DB 580 contains first RP version information mapped to the first partition (e.g., RP version information corresponding to the first version of the OS) and second RP version information mapped to the virtual partition (e.g., RP version information corresponding to the second version of the OS) may be stored. Meanwhile, if the result information indicates an error state, the RP version control module 570 may not store the received result information in the RP version DB 580.

RP 모듈(530)은 부팅에 이용되는 파티션의 RP 버전을 이용하여 롤백 방지 여부를 결정할 수 있다. 예를 들어, 제1 파티션(예: 도 3의 제1 영역(310))에 저장된 제1 버전의 OS가 부팅에 이용되는 경우, RP 모듈(530)은 제1 파티션에 대하여 매핑된 제1 RP 버전 정보에 기반하여 롤백 방지 기능을 적용할 수 있다. 따라서, 제2 버전으로의 업데이트가 실패되는 경우라도, 제1 버전 OS로의 롤백이 수행될 수 있다. 예를 들어, 가상 파티션(예: 도 3의 가상 영역(390))에 저장된 제2 버전의 OS가 부팅에 이용되는 경우, RP 모듈(530)은 가상 파티션에 매핑된 제2 RP 버전 정보에 기반하여 롤백 방지 기능을 적용할 수 있다. The RP module 530 can determine whether to prevent rollback using the RP version of the partition used for booting. For example, when the first version of the OS stored in the first partition (e.g., the first area 310 in FIG. 3) is used for booting, the RP module 530 stores the first RP mapped to the first partition. Rollback prevention function can be applied based on version information. Therefore, even if the update to the second version fails, a rollback to the first version OS can be performed. For example, when a second version of the OS stored in a virtual partition (e.g., virtual area 390 in FIG. 3) is used for booting, the RP module 530 based on the second RP version information mapped to the virtual partition. Thus, the rollback prevention function can be applied.

업데이트된 제2 버전 OS에 기반한 부팅이 성공적으로 완료되면, 전자 장치(101)는 업데이트 데이터를 제1 파티션(예: 도 3의 제1 영역(310))에 기록할 수 있다. 예를 들어, 도 4의 제1 영역(310)과 같이, 제1 파티션 내의 OS가 제2 버전으로 업데이트될 수 있다. 이 경우, 업데이트 상태 관리자(510)는 제1 파티션에 기반한 부팅의 결과를 나타내는 결과 정보를 신뢰 업데이트 상태 수신 모듈(560)을 통하여 RP 버전 제어 모듈(570)에 전달할 수 있다. RP 버전 제어 모듈(570)은 제1 파티션에 대하여 매핑된 RP 버전 정보를 제1 RP 버전 정보로부터 제2 RP 버전 정보로 업데이트할 수 있다. 그 후, 제1 파티션에 기반한 부팅에 있어서, RP 모듈(530)은 현재 제1 파티션에 매핑된 제2 RP 정보에 기반하여 RP 기능을 적용할 수 있다. When booting based on the updated second version OS is successfully completed, the electronic device 101 may record update data in the first partition (eg, first area 310 of FIG. 3). For example, as shown in the first area 310 of FIG. 4, the OS in the first partition may be updated to the second version. In this case, the update status manager 510 may transmit result information indicating the result of booting based on the first partition to the RP version control module 570 through the trusted update status reception module 560. The RP version control module 570 may update the RP version information mapped for the first partition from the first RP version information to the second RP version information. Thereafter, in booting based on the first partition, the RP module 530 may apply the RP function based on the second RP information currently mapped to the first partition.

도 8은 일 실시 예에 따른 전자 장치의 업데이트 방법의 흐름도이다.8 is a flowchart of a method for updating an electronic device according to an embodiment.

도 1 및 도 8을 참조하여, 일 실시 예에 따르면, 전자 장치(101)는 메모리(130) 및 프로세서(120)를 포함할 수 있다. 메모리(130)는 실행되었을 때, 프로세서(120)가 후술하는 동작들을 수행하도록하는 인스트럭션들을 저장할 수 있다.Referring to FIGS. 1 and 8 , according to one embodiment, the electronic device 101 may include a memory 130 and a processor 120. The memory 130 may store instructions that, when executed, cause the processor 120 to perform operations described later.

동작 805에서, 전자 장치(101)는 업데이트 데이터(예: 제1 업데이트 데이터(예: 도 3의 제1 업데이트 데이터(323) 및/또는 제2 업데이트 데이터(324))를 제2 영역(예: 도 3의 제2 영역(320))에 저장할 수 있다. 예를 들어, 전자 장치(101)는 통신 회로(190)를 이용하여 외부 전자 장치로부터 업데이트 데이터를 수신하여 메모리(130)에 저장할 수 있다. In operation 805, the electronic device 101 stores update data (e.g., first update data (e.g., first update data 323 and/or second update data 324 of FIG. 3)) in a second area (e.g., It can be stored in the second area 320 of Figure 3. For example, the electronic device 101 can receive update data from an external electronic device using the communication circuit 190 and store it in the memory 130. .

동작 810에서, 전자 장치(101)는 제2 영역의 일부와 제1 영역(예: 도 3의 제1 영역(310))의 일부를 가상 파티션(예; 도 3의 가상 영역(390))으로 설정할 수 있다. 제1 영역에 설치된 제1 버전의 OS의 일부와 제2 영역에 저장된 업데이트 데이터를 묶어 하나의 가상 파티션으로 구성 함으로써, 가상 파티션은 업데이트된 제2 버전의 OS가 설치된 상태일 수 있다. 예를 들어, 제1 영역 및 제2 영역은 REE(Rich Execution Environment) 내의 메모리 영역일 수 있다. In operation 810, the electronic device 101 divides a portion of the second area and a portion of the first area (e.g., the first area 310 of FIG. 3) into a virtual partition (e.g., the virtual area 390 of FIG. 3). You can set it. By bundling a portion of the first version of the OS installed in the first area and update data stored in the second area to form one virtual partition, the virtual partition may have the updated second version of the OS installed. For example, the first area and the second area may be memory areas within a Rich Execution Environment (REE).

동작 815에서, 전자 장치(101)는 가상 파티션에 설치된 제2 버전의 OS를 이용하여 부팅을 수행할 수 있다. 부팅의 수행에 따라서, 도 6의 동작 605와 관련하여 상술된 바와 같이, 전자 장치(101)는 업데이트 상태를 식별할 수 있다.In operation 815, the electronic device 101 may boot using the second version of the OS installed in the virtual partition. Depending on the performance of booting, the electronic device 101 may identify the update status, as described above with respect to operation 605 of FIG. 6 .

동작 820에서, 전자 장치(101)는 부팅 결과를 보안 영역(예: 도 2의 보안 영역(150))으로 전달할 수 있다. 예를 들어, 보안 영역은, OS(예: 도 2의 리치 OS(230))와 상이한 보안 OS(예: 도 2의 신뢰 OS(280))에 기반하여 운영되는 메모리 영역일 수 있다. 도 6의 동작 610 및 615와 관련하여 상술된 바와 같이, 전자 장치(101)는 업데이트 상태 수신 모듈(560)을 통하여 RP 버전 제어 모듈(570)에 부팅 결과(예: 상태 정보)를 전달할 수 있다. In operation 820, the electronic device 101 may transmit the booting result to the security area (eg, the security area 150 in FIG. 2). For example, the security area may be a memory area operated based on a security OS (e.g., the trusted OS 280 of FIG. 2) that is different from the OS (e.g., the rich OS 230 of FIG. 2). As described above with respect to operations 610 and 615 of FIG. 6, the electronic device 101 may transmit booting results (e.g., status information) to the RP version control module 570 through the update status reception module 560. .

동작 825에서, 전자 장치(101)는 부팅 결과에 기반하여 보안 영역에 저장된 버전 정보(예: RP 버전)의 변경 여부를 결정할 수 있다. 예를 들어, 도 6의 동작 620과 관련하여 상술된 바와 같이, 전자 장치(101)는 업데이트된 OS에 기반한 부팅의 성공 여부에 따라서 버전 정보를 변경할 수 있다. 예를 들어, 전자 장치(101)는 보안 OS 상의 프로그램(예: 도 5의 RP 버전 제어 모듈(570))을 이용하여상기 결과에 기반하여 보안 영역에 저장된 버전 정보를 변경 또는 유지할 수 있다. 예를 들어, 보안 영역은 TEE(Trusted Execution Environment) 내의 메모리 영역일 수 있다. 예를 들어, 버전 정보는 OS의 롤백을 결정하기 위한 정보일 수 있다. 전자 장치(101)는 보안 영역에 저장된 버전 정보 보다 이전의 버전으로 OS가 롤백(ROLL BACK)되는 것을 방지하도록 설정될 수 있다.In operation 825, the electronic device 101 may determine whether to change version information (eg, RP version) stored in the security area based on the booting result. For example, as described above with regard to operation 620 of FIG. 6, the electronic device 101 may change version information depending on whether booting based on the updated OS is successful. For example, the electronic device 101 may change or maintain version information stored in the secure area based on the results using a program on the secure OS (e.g., RP version control module 570 in FIG. 5). For example, the security area may be a memory area within a Trusted Execution Environment (TEE). For example, version information may be information for determining OS rollback. The electronic device 101 may be set to prevent the OS from being rolled back to a version older than the version information stored in the security area.

예를 들어, 전자 장치(101)는 부팅 결과가 성공을 지시하면, 버전 정보를 상기 제1 버전으로부터 상기 제2 버전으로 변경(예: 도 6의 동작 625)할 수 있다. 전자 장치(101)는 상기 버전 정보의 변경 후, 업데이트 데이터를 제1 영역의 OS 데이터 중 상기 업데이트 데이터에 대응하는 부분에 기록함으로써 제1 영역의 OS를 상기 제2 버전의 OS로 업데이트 할 수 있다.For example, if the booting result indicates success, the electronic device 101 may change version information from the first version to the second version (eg, operation 625 of FIG. 6). After changing the version information, the electronic device 101 may update the OS of the first area to the second version of the OS by recording update data in a portion corresponding to the update data among the OS data of the first area. .

결과가 실패를 지시하면(예: 도 6의 동작 620-NO), 전자 장치(101)는 버전 정보를 상기 제1 버전으로 유지(예: 도 6의 동작 630)하고, 제1 영역에 저장된 제1 버전의 OS를 이용하여 부팅을 시도할 수 있다. 예를 들어, 결과가 제1 버전의 OS를 이용한 부팅(예: 제1 상태) 또는 오류 상태를 지시하면, 전자 장치(101)는 업데이트된 OS에 기반한 부팅이 실패한 것으로 결정할 수 있다. If the result indicates failure (e.g., operation 620-NO in FIG. 6), the electronic device 101 maintains the version information as the first version (e.g., operation 630 in FIG. 6), and stores the first version in the first area. You can try booting using version 1 of the OS. For example, if the result indicates booting using the first version of the OS (e.g., first state) or an error state, the electronic device 101 may determine that booting based on the updated OS failed.

도 9는, 다양한 실시예들에 따른, 네트워크 환경(900) 내의 전자 장치(901)의 블록도이다. 도 9를 참조하면, 네트워크 환경(900)에서 전자 장치(901)는 제 1 네트워크(998)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(902)와 통신하거나, 또는 제 2 네트워크(999)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(904) 또는 서버(908) 중 적어도 하나 와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(901)는 서버(908)를 통하여 전자 장치(904)와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(901)는 프로세서(920), 메모리(930), 입력 모듈(950), 음향 출력 모듈(955), 디스플레이 모듈(960), 오디오 모듈(970), 센서 모듈(976), 인터페이스(977), 연결 단자(978), 햅틱 모듈(979), 카메라 모듈(980), 전력 관리 모듈(988), 배터리(989), 통신 모듈(990), 가입자 식별 모듈(996), 또는 안테나 모듈(997)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(901)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(978))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(976), 카메라 모듈(980), 또는 안테나 모듈(997))은 하나의 구성요소(예: 디스플레이 모듈(960))로 통합될 수 있다.FIG. 9 is a block diagram of an electronic device 901 in a network environment 900, according to various embodiments. Referring to FIG. 9, in the network environment 900, the electronic device 901 communicates with the electronic device 902 through a first network 998 (e.g., a short-range wireless communication network) or a second network 999. It is possible to communicate with at least one of the electronic device 904 or the server 908 through (e.g., a long-distance wireless communication network). According to one embodiment, the electronic device 901 may communicate with the electronic device 904 through the server 908. According to one embodiment, the electronic device 901 includes a processor 920, a memory 930, an input module 950, an audio output module 955, a display module 960, an audio module 970, and a sensor module ( 976), interface 977, connection terminal 978, haptic module 979, camera module 980, power management module 988, battery 989, communication module 990, subscriber identification module 996 , or may include an antenna module 997. In some embodiments, at least one of these components (eg, the connection terminal 978) may be omitted, or one or more other components may be added to the electronic device 901. In some embodiments, some of these components (e.g., sensor module 976, camera module 980, or antenna module 997) are integrated into one component (e.g., display module 960). It can be.

프로세서(920)는, 예를 들면, 소프트웨어(예: 프로그램(940))를 실행하여 프로세서(920)에 연결된 전자 장치(901)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시 예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(920)는 다른 구성요소(예: 센서 모듈(976) 또는 통신 모듈(990))로부터 수신된 명령 또는 데이터를 휘발성 메모리(932)에 저장하고, 휘발성 메모리(932)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(934)에 저장할 수 있다. 일 실시 예에 따르면, 프로세서(920)는 메인 프로세서(921)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(923)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(901)가 메인 프로세서(921) 및 보조 프로세서(923)를 포함하는 경우, 보조 프로세서(923)는 메인 프로세서(921)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(923)는 메인 프로세서(921)와 별개로, 또는 그 일부로서 구현될 수 있다.Processor 920 may, for example, execute software (e.g., program 940) to operate at least one other component (e.g., hardware or software component) of electronic device 901 connected to processor 920. It can be controlled and various data processing or calculations can be performed. According to one embodiment, as at least part of data processing or computation, the processor 920 stores instructions or data received from another component (e.g., sensor module 976 or communication module 990) in volatile memory 932. The commands or data stored in the volatile memory 932 can be processed, and the resulting data can be stored in the non-volatile memory 934. According to one embodiment, the processor 920 may include a main processor 921 (e.g., a central processing unit or an application processor) or an auxiliary processor 923 that can operate independently or together (e.g., a graphics processing unit, a neural network processing unit ( It may include a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, if the electronic device 901 includes a main processor 921 and a auxiliary processor 923, the auxiliary processor 923 may be set to use lower power than the main processor 921 or be specialized for a designated function. You can. The auxiliary processor 923 may be implemented separately from the main processor 921 or as part of it.

보조 프로세서(923)는, 예를 들면, 메인 프로세서(921)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(921)를 대신하여, 또는 메인 프로세서(921)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(921)와 함께, 전자 장치(901)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(960), 센서 모듈(976), 또는 통신 모듈(990))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시 예에 따르면, 보조 프로세서(923)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(980) 또는 통신 모듈(990))의 일부로서 구현될 수 있다. 일 실시 예에 따르면, 보조 프로세서(923)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(901) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(908))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다. The auxiliary processor 923 may, for example, act on behalf of the main processor 921 while the main processor 921 is in an inactive (e.g., sleep) state, or while the main processor 921 is in an active (e.g., application execution) state. ), together with the main processor 921, at least one of the components of the electronic device 901 (e.g., the display module 960, the sensor module 976, or the communication module 990) At least some of the functions or states related to can be controlled. According to one embodiment, co-processor 923 (e.g., image signal processor or communication processor) may be implemented as part of another functionally related component (e.g., camera module 980 or communication module 990). there is. According to one embodiment, the auxiliary processor 923 (e.g., neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. Artificial intelligence models can be created through machine learning. For example, such learning may be performed in the electronic device 901 itself on which the artificial intelligence model is performed, or may be performed through a separate server (e.g., server 908). Learning algorithms may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but It is not limited. An artificial intelligence model may include multiple artificial neural network layers. Artificial neural networks include deep neural network (DNN), convolutional neural network (CNN), recurrent neural network (RNN), restricted boltzmann machine (RBM), belief deep network (DBN), bidirectional recurrent deep neural network (BRDNN), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the examples described above. In addition to hardware structures, artificial intelligence models may additionally or alternatively include software structures.

메모리(930)는, 전자 장치(901)의 적어도 하나의 구성요소(예: 프로세서(920) 또는 센서 모듈(976))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(940)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(930)는, 휘발성 메모리(932) 또는 비휘발성 메모리(934)를 포함할 수 있다. The memory 930 may store various data used by at least one component (eg, the processor 920 or the sensor module 976) of the electronic device 901. Data may include, for example, input data or output data for software (e.g., program 940) and instructions related thereto. Memory 930 may include volatile memory 932 or non-volatile memory 934.

프로그램(940)은 메모리(930)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(942), 미들 웨어(944) 또는 어플리케이션(946)을 포함할 수 있다. The program 940 may be stored as software in the memory 930 and may include, for example, an operating system 942, middleware 944, or application 946.

입력 모듈(950)은, 전자 장치(901)의 구성요소(예: 프로세서(920))에 사용될 명령 또는 데이터를 전자 장치(901)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(950)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 950 may receive commands or data to be used in a component of the electronic device 901 (e.g., the processor 920) from outside the electronic device 901 (e.g., a user). The input module 950 may include, for example, a microphone, mouse, keyboard, keys (eg, buttons), or digital pen (eg, stylus pen).

음향 출력 모듈(955)은 음향 신호를 전자 장치(901)의 외부로 출력할 수 있다. 음향 출력 모듈(955)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시 예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 955 may output sound signals to the outside of the electronic device 901. The sound output module 955 may include, for example, a speaker or receiver. Speakers can be used for general purposes such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.

디스플레이 모듈(960)은 전자 장치(901)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(960)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시 예에 따르면, 디스플레이 모듈(960)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 960 can visually provide information to the outside of the electronic device 901 (eg, a user). The display module 960 may include, for example, a display, a hologram device, or a projector, and a control circuit for controlling the device. According to one embodiment, the display module 960 may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of force generated by the touch.

오디오 모듈(970)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시 예에 따르면, 오디오 모듈(970)은, 입력 모듈(950)을 통해 소리를 획득하거나, 음향 출력 모듈(955), 또는 전자 장치(901)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(902))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 970 can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module 970 acquires sound through the input module 950, the sound output module 955, or an external electronic device (e.g., directly or wirelessly connected to the electronic device 901). Sound may be output through an electronic device 902 (e.g., speaker or headphone).

센서 모듈(976)은 전자 장치(901)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시 예에 따르면, 센서 모듈(976)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 976 detects the operating state (e.g., power or temperature) of the electronic device 901 or the external environmental state (e.g., user state) and generates an electrical signal or data value corresponding to the detected state. can do. According to one embodiment, the sensor module 976 includes, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, humidity sensor, or light sensor.

인터페이스(977)는 전자 장치(901)가 외부 전자 장치(예: 전자 장치(902))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시 예에 따르면, 인터페이스(977)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 977 may support one or more designated protocols that can be used to connect the electronic device 901 directly or wirelessly with an external electronic device (e.g., the electronic device 902). According to one embodiment, the interface 977 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(978)는, 그를 통해서 전자 장치(901)가 외부 전자 장치(예: 전자 장치(902))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시 예에 따르면, 연결 단자(978)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 978 may include a connector through which the electronic device 901 can be physically connected to an external electronic device (eg, the electronic device 902). According to one embodiment, the connection terminal 978 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(979)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시 예에 따르면, 햅틱 모듈(979)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 979 can convert electrical signals into mechanical stimulation (e.g., vibration or movement) or electrical stimulation that the user can perceive through tactile or kinesthetic senses. According to one embodiment, the haptic module 979 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(980)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시 예에 따르면, 카메라 모듈(980)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 980 can capture still images and moving images. According to one embodiment, the camera module 980 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(988)은 전자 장치(901)에 공급되는 전력을 관리할 수 있다. 일 실시 예에 따르면, 전력 관리 모듈(988)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 988 can manage power supplied to the electronic device 901. According to one embodiment, the power management module 988 may be implemented as at least a part of, for example, a power management integrated circuit (PMIC).

배터리(989)는 전자 장치(901)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일 실시 예에 따르면, 배터리(989)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 989 may supply power to at least one component of the electronic device 901. According to one embodiment, the battery 989 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

통신 모듈(990)은 전자 장치(901)와 외부 전자 장치(예: 전자 장치(902), 전자 장치(904), 또는 서버(908)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(990)은 프로세서(920)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시 예에 따르면, 통신 모듈(990)은 무선 통신 모듈(992)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(994)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(998)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(999)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(904)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(992)은 가입자 식별 모듈(996)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(998) 또는 제 2 네트워크(999)와 같은 통신 네트워크 내에서 전자 장치(901)를 확인 또는 인증할 수 있다. Communication module 990 provides a direct (e.g., wired) communication channel or wireless communication channel between electronic device 901 and an external electronic device (e.g., electronic device 902, electronic device 904, or server 908). It can support establishment and communication through established communication channels. Communication module 990 operates independently of processor 920 (e.g., an application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module 990 is a wireless communication module 992 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 994 (e.g. : LAN (local area network) communication module, or power line communication module) may be included. Among these communication modules, the corresponding communication module is a first network 998 (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 999 (e.g., legacy It may communicate with an external electronic device 904 through a telecommunication network such as a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or WAN). These various types of communication modules may be integrated into one component (e.g., a single chip) or may be implemented as a plurality of separate components (e.g., multiple chips). The wireless communication module 992 uses subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 996 within a communication network such as the first network 998 or the second network 999. The electronic device 901 can be confirmed or authenticated.

무선 통신 모듈(992)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(992)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(992)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(992)은 전자 장치(901), 외부 전자 장치(예: 전자 장치(904)) 또는 네트워크 시스템(예: 제 2 네트워크(999))에 규정되는 다양한 요구사항을 지원할 수 있다. 일 실시 예에 따르면, 무선 통신 모듈(992)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 992 may support 5G networks after 4G networks and next-generation communication technologies, for example, NR access technology (new radio access technology). NR access technology provides high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low latency). -latency communications)) can be supported. The wireless communication module 992 may support high frequency bands (e.g., mmWave bands), for example, to achieve high data rates. The wireless communication module 992 uses various technologies to secure performance in high frequency bands, for example, beamforming, massive array multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. It can support technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module 992 may support various requirements specified in the electronic device 901, an external electronic device (e.g., electronic device 904), or a network system (e.g., second network 999). According to one embodiment, the wireless communication module 992 supports 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., 164 dB or less) for realizing URLLC. Example: Downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) can be supported.

안테나 모듈(997)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시 예에 따르면, 안테나 모듈(997)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일 실시 예에 따르면, 안테나 모듈(997)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(998) 또는 제 2 네트워크(999)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(990)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(990)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(997)의 일부로 형성될 수 있다. The antenna module 997 may transmit or receive signals or power to or from the outside (e.g., an external electronic device). According to one embodiment, the antenna module 997 may include an antenna including a radiator made of a conductor or a conductive pattern formed on a substrate (eg, PCB). According to one embodiment, the antenna module 997 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for the communication method used in the communication network, such as the first network 998 or the second network 999, is connected to the plurality of antennas by, for example, the communication module 990. can be selected. Signals or power may be transmitted or received between the communication module 990 and an external electronic device through the selected at least one antenna. According to some embodiments, in addition to the radiator, other components (eg, radio frequency integrated circuit (RFIC)) may be additionally formed as part of the antenna module 997.

다양한 실시예에 따르면, 안테나 모듈(997)은 mmWave 안테나 모듈을 형성할 수 있다. 일 실시 예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, antenna module 997 may form a mmWave antenna module. According to one embodiment, a mmWave antenna module includes: a printed circuit board, an RFIC disposed on or adjacent to a first side (e.g., bottom side) of the printed circuit board and capable of supporting a designated high frequency band (e.g., mmWave band); And a plurality of antennas (e.g., array antennas) disposed on or adjacent to the second side (e.g., top or side) of the printed circuit board and capable of transmitting or receiving signals in the designated high frequency band. can do.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (e.g., bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and signal ( (e.g. commands or data) can be exchanged with each other.

일 실시 예에 따르면, 명령 또는 데이터는 제 2 네트워크(999)에 연결된 서버(908)를 통해서 전자 장치(901)와 외부의 전자 장치(904)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(902, 또는 904) 각각은 전자 장치(901)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시 예에 따르면, 전자 장치(901)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(902, 904, 또는 908) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(901)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(901)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(901)로 전달할 수 있다. 전자 장치(901)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(901)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(904)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(908)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일 실시 예에 따르면, 외부의 전자 장치(904) 또는 서버(908)는 제 2 네트워크(999) 내에 포함될 수 있다. 전자 장치(901)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to one embodiment, commands or data may be transmitted or received between the electronic device 901 and the external electronic device 904 through the server 908 connected to the second network 999. Each of the external electronic devices 902 or 904 may be of the same or different type as the electronic device 901. According to one embodiment, all or part of the operations performed in the electronic device 901 may be executed in one or more of the external electronic devices 902, 904, or 908. For example, when the electronic device 901 must perform a function or service automatically or in response to a request from a user or another device, the electronic device 901 may perform the function or service instead of executing the function or service on its own. Alternatively, or additionally, one or more external electronic devices may be requested to perform at least part of the function or service. One or more external electronic devices that have received the request may execute at least part of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device 901. The electronic device 901 may process the result as is or additionally and provide it as at least part of a response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology can be used. The electronic device 901 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 904 may include an Internet of Things (IoT) device. Server 908 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 904 or server 908 may be included in the second network 999. The electronic device 901 may be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

도 10은 다양한 실시예에 따른 프로그램(940)을 예시하는 블록도(1000)이다. 일 실시 예에 따르면, 프로그램(940)은 전자 장치(901)의 하나 이상의 리소스들을 제어하기 위한 운영 체제(942), 미들웨어(944), 또는 상기 운영 체제(942)에서 실행 가능한 어플리케이션(946)을 포함할 수 있다. 운영 체제(942)는, 예를 들면, Android™, iOS™, Windows™, Symbian™, Tizen™, 또는 Bada™를 포함할 수 있다. 프로그램(940) 중 적어도 일부 프로그램은, 예를 들면, 제조 시에 전자 장치(901)에 프리로드되거나, 또는 사용자에 의해 사용 시 외부 전자 장치(예: 전자 장치(902 또는 904), 또는 서버(908))로부터 다운로드되거나 갱신 될 수 있다.Figure 10 is a block diagram 1000 illustrating a program 940 according to various embodiments. According to one embodiment, the program 940 includes an operating system 942, middleware 944, or an application 946 executable on the operating system 942 for controlling one or more resources of the electronic device 901. It can be included. Operating system 942 may include, for example, Android™, iOS™, Windows™, Symbian™, Tizen™, or Bada™. At least some of the programs 940 are preloaded into the electronic device 901, for example, at the time of manufacture, or are stored in an external electronic device (e.g., an electronic device 902 or 904, or a server) when used by a user. It can be downloaded or updated from 908)).

운영 체제(942)는 전자 장치(901)의 하나 이상의 시스템 리소스들(예: 프로세스, 메모리, 또는 전원)의 관리(예: 할당 또는 회수)를 제어할 수 있다. 운영 체제(942)는, 추가적으로 또는 대체적으로, 전자 장치(901)의 다른 하드웨어 디바이스, 예를 들면, 입력 모듈(950), 음향 출력 모듈(955), 디스플레이 모듈(960), 오디오 모듈(970), 센서 모듈(976), 인터페이스(977), 햅틱 모듈(979), 카메라 모듈(980), 전력 관리 모듈(988), 배터리(989), 통신 모듈(990), 가입자 식별 모듈(996), 또는 안테나 모듈(997)을 구동하기 위한 하나 이상의 드라이버 프로그램들을 포함할 수 있다.The operating system 942 may control management (e.g., allocation or recovery) of one or more system resources (e.g., process, memory, or power) of the electronic device 901. Operating system 942 may additionally or alternatively operate on other hardware devices of electronic device 901, such as input module 950, audio output module 955, display module 960, audio module 970. , sensor module 976, interface 977, haptic module 979, camera module 980, power management module 988, battery 989, communication module 990, subscriber identification module 996, or It may include one or more driver programs for driving the antenna module 997.

미들웨어(944)는 전자 장치(901)의 하나 이상의 리소스들로부터 제공되는 기능 또는 정보가 어플리케이션(946)에 의해 사용될 수 있도록 다양한 기능들을 어플리케이션(946)으로 제공할 수 있다. 미들웨어(944)는, 예를 들면, 어플리케이션 매니저(1001), 윈도우 매니저(1003), 멀티미디어 매니저(1005), 리소스 매니저(1007), 파워 매니저(1009), 데이터베이스 매니저(1011), 패키지 매니저(1013), 커넥티비티 매니저(1015), 노티피케이션 매니저(1017), 로케이션 매니저(1019), 그래픽 매니저(1021), 시큐리티 매니저(1023), 통화 매니저(1025), 또는 음성 인식 매니저(1027)를 포함할 수 있다. The middleware 944 may provide various functions to the application 946 so that functions or information provided from one or more resources of the electronic device 901 can be used by the application 946. The middleware 944 includes, for example, an application manager 1001, a window manager 1003, a multimedia manager 1005, a resource manager 1007, a power manager 1009, a database manager 1011, and a package manager 1013. ), connectivity manager (1015), notification manager (1017), location manager (1019), graphics manager (1021), security manager (1023), call manager (1025), or voice recognition manager (1027). You can.

어플리케이션 매니저(1001)는, 예를 들면, 어플리케이션(946)의 생명 주기를 관리할 수 있다. 윈도우 매니저(1003)는, 예를 들면, 화면에서 사용되는 하나 이상의 GUI 자원들을 관리할 수 있다. 멀티미디어 매니저(1005)는, 예를 들면, 미디어 파일들의 재생에 필요한 하나 이상의 포맷들을 파악하고, 그 중 선택된 해당하는 포맷에 맞는 코덱을 이용하여 상기 미디어 파일들 중 해당하는 미디어 파일의 인코딩 또는 디코딩을 수행할 수 있다. 리소스 매니저(1007)는, 예를 들면, 어플리케이션(946)의 소스 코드 또는 메모리(930)의 메모리의 공간을 관리할 수 있다. 파워 매니저(1009)는, 예를 들면, 배터리(989)의 용량, 온도 또는 전원을 관리하고, 이 중 해당 정보를 이용하여 전자 장치(901)의 동작에 필요한 관련 정보를 결정 또는 제공할 수 있다. 일 실시 예에 따르면, 파워 매니저(1009)는 전자 장치(901)의 바이오스(BIOS: basic input/output system)(미도시)와 연동할 수 있다.The application manager 1001 may manage the life cycle of the application 946, for example. The window manager 1003 may, for example, manage one or more GUI resources used on the screen. For example, the multimedia manager 1005 identifies one or more formats required for playing media files, and encodes or decodes the corresponding media file using a codec suitable for the selected format. It can be done. The resource manager 1007 may, for example, manage the source code of the application 946 or the memory space of the memory 930. The power manager 1009 manages, for example, the capacity, temperature, or power of the battery 989, and can use this information to determine or provide related information necessary for the operation of the electronic device 901. . According to one embodiment, the power manager 1009 may interface with a basic input/output system (BIOS) (not shown) of the electronic device 901.

데이터베이스 매니저(1011)는, 예를 들면, 어플리케이션(946)에 의해 사용될 데이터베이스를 생성, 검색, 또는 변경할 수 있다. 패키지 매니저(1013)는, 예를 들면, 패키지 파일의 형태로 배포되는 어플리케이션의 설치 또는 갱신을 관리할 수 있다. 커넥티비티 매니저(1015)는, 예를 들면, 전자 장치(901)와 외부 전자 장치 간의 무선 연결 또는 직접 연결을 관리할 수 있다. 노티피케이션 매니저(1017)는, 예를 들면, 지정된 이벤트(예: 착신 통화, 메시지, 또는 알람)의 발생을 사용자에게 알리기 위한 기능을 제공할 수 있다. 로케이션 매니저(1019)는, 예를 들면, 전자 장치(901)의 위치 정보를 관리할 수 있다. 그래픽 매니저(1021)는, 예를 들면, 사용자에게 제공될 하나 이상의 그래픽 효과들 또는 이와 관련된 사용자 인터페이스를 관리할 수 있다. Database manager 1011 may create, search, or change a database to be used by application 946, for example. The package manager 1013 can, for example, manage the installation or update of applications distributed in the form of package files. The connectivity manager 1015 may manage, for example, a wireless connection or direct connection between the electronic device 901 and an external electronic device. For example, the notification manager 1017 may provide a function for notifying the user of the occurrence of a designated event (eg, an incoming call, message, or alarm). The location manager 1019 may, for example, manage location information of the electronic device 901. The graphics manager 1021 may, for example, manage one or more graphic effects to be provided to the user or a user interface related thereto.

시큐리티 매니저(1023)는, 예를 들면, 시스템 보안 또는 사용자 인증을 제공할 수 있다. 통화(telephony) 매니저(1025)는, 예를 들면, 전자 장치(901)에 의해 제공되는 음성 통화 기능 또는 영상 통화 기능을 관리할 수 있다. 음성 인식 매니저(1027)는, 예를 들면, 사용자의 음성 데이터를 서버(908)로 전송하고, 그 음성 데이터에 적어도 일부 기반하여 전자 장치(901)에서 수행될 기능에 대응하는 명령어(command), 또는 그 음성 데이터에 적어도 일부 기반하여 변환된 문자 데이터를 서버(908)로부터 수신할 수 있다. 일 실시예에 따르면, 미들웨어(1044)는 동적으로 기존의 구성요소를 일부 삭제하거나 새로운 구성요소들을 추가할 수 있다. 일 실시예에 따르면, 미들웨어(944)의 적어도 일부는 운영 체제(942)의 일부로 포함되거나, 또는 운영 체제(942)와는 다른 별도의 소프트웨어로 구현될 수 있다.Security manager 1023 may provide, for example, system security or user authentication. The telephony manager 1025 may manage, for example, a voice call function or a video call function provided by the electronic device 901. For example, the voice recognition manager 1027 transmits the user's voice data to the server 908 and provides a command corresponding to a function to be performed in the electronic device 901 based at least in part on the voice data, Alternatively, text data converted based at least in part on the voice data may be received from the server 908. According to one embodiment, the middleware 1044 may dynamically delete some existing components or add new components. According to one embodiment, at least a portion of the middleware 944 may be included as part of the operating system 942 or may be implemented as separate software different from the operating system 942.

어플리케이션(946)은, 예를 들면, 홈(1051), 다이얼러(1053), SMS/MMS(1055), IM(instant message)(1057), 브라우저(1059), 카메라(1061), 알람(1063), 컨택트(1065), 음성 인식(1067), 이메일(1069), 달력(1071), 미디어 플레이어(1073), 앨범(1075), 와치(1077), 헬스(1079)(예: 운동량 또는 혈당과 같은 생체 정보를 측정), 또는 환경 정보(1081)(예: 기압, 습도, 또는 온도 정보 측정) 어플리케이션을 포함할 수 있다. 일 실시 예에 따르면, 어플리케이션(946)은 전자 장치(901)와 외부 전자 장치 사이의 정보 교환을 지원할 수 있는 정보 교환 어플리케이션(미도시)을 더 포함할 수 있다. 정보 교환 어플리케이션은, 예를 들면, 외부 전자 장치로 지정된 정보 (예: 통화, 메시지, 또는 알람)를 전달하도록 설정된 노티피케이션 릴레이 어플리케이션, 또는 외부 전자 장치를 관리하도록 설정된 장치 관리 어플리케이션을 포함할 수 있다. 노티피케이션 릴레이 어플리케이션은, 예를 들면, 전자 장치(901)의 다른 어플리케이션(예: 이메일 어플리케이션(1069))에서 발생된 지정된 이벤트(예: 메일 수신)에 대응하는 알림 정보를 외부 전자 장치로 전달할 수 있다. 추가적으로 또는 대체적으로, 노티피케이션 릴레이 어플리케이션은 외부 전자 장치로부터 알림 정보를 수신하여 전자 장치(901)의 사용자에게 제공할 수 있다. Applications 946 include, for example, home 1051, dialer 1053, SMS/MMS (1055), instant message (IM) 1057, browser 1059, camera 1061, and alarm 1063. , Contacts (1065), Voice Recognition (1067), Email (1069), Calendar (1071), Media Player (1073), Album (1075), Watch (1077), Health (1079) (such as exercise amount or blood sugar) It may include applications that measure biometric information) or environmental information 1081 (e.g., measure atmospheric pressure, humidity, or temperature information). According to one embodiment, the application 946 may further include an information exchange application (not shown) that can support information exchange between the electronic device 901 and an external electronic device. The information exchange application may include, for example, a notification relay application configured to deliver designated information (e.g., calls, messages, or alarms) to an external electronic device, or a device management application configured to manage the external electronic device. there is. For example, the notification relay application transmits notification information corresponding to a specified event (e.g., mail reception) generated in another application (e.g., email application 1069) of the electronic device 901 to an external electronic device. You can. Additionally or alternatively, the notification relay application may receive notification information from an external electronic device and provide it to the user of the electronic device 901.

장치 관리 어플리케이션은, 예를 들면, 전자 장치(901)와 통신하는 외부 전자 장치 또는 그 일부 구성 요소(예: 외부 전자장치의 디스플레이 모듈 또는 카메라 모듈)의 전원(예: 턴-온 또는 턴-오프) 또는 기능(예: 밝기, 해상도, 또는 포커스)을 제어할 수 있다. 장치 관리 어플리케이션은, 추가적으로 또는 대체적으로, 외부 전자 장치에서 동작하는 어플리케이션의 설치, 삭제, 또는 갱신을 지원할 수 있다.The device management application, for example, controls the power (e.g., turn-on or turn-off) of an external electronic device or some component thereof (e.g., a display module or camera module of the external electronic device) that communicates with the electronic device 901. ) or functions (such as brightness, resolution, or focus). A device management application may additionally or alternatively support installation, deletion, or update of applications running on external electronic devices.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments disclosed in this document may be of various types. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to embodiments of this document are not limited to the above-described devices.

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and the terms used herein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various changes, equivalents, or replacements of the embodiments. In connection with the description of the drawings, similar reference numbers may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the above items, unless the relevant context clearly indicates otherwise. As used herein, “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 “A Each of phrases such as “at least one of , B, or C” may include any one of the items listed together in the corresponding phrase, or any possible combination thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish one component from another, and to refer to that component in other respects (e.g., importance or order) is not limited. One (e.g., first) component is said to be “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicatively.” When mentioned, it means that any of the components can be connected to the other components directly (e.g. wired), wirelessly, or through a third component.

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시 예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as logic, logic block, component, or circuit, for example. It can be used as A module may be an integrated part or a minimum unit of the parts or a part thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(901)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(936) 또는 외장 메모리(938))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(940))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(901))의 프로세서(예: 프로세서(920))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present document are one or more instructions stored in a storage medium (e.g., built-in memory 936 or external memory 938) that can be read by a machine (e.g., electronic device 901). It may be implemented as software (e.g., program 940) including these. For example, a processor (e.g., processor 920) of a device (e.g., electronic device 901) may call at least one command among one or more commands stored from a storage medium and execute it. This allows the device to be operated to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain signals (e.g. electromagnetic waves), and this term refers to cases where data is semi-permanently stored in the storage medium. There is no distinction between temporary storage cases.

일 실시 예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어™)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, methods according to various embodiments disclosed in this document may be included and provided in a computer program product. Computer program products are commodities and can be traded between sellers and buyers. The computer program product may be distributed in the form of a machine-readable storage medium (e.g. compact disc read only memory (CD-ROM)) or through an application store (e.g. Play Store™) or on two user devices (e.g. It can be distributed (e.g. downloaded or uploaded) directly between smart phones) or online. In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or temporarily created in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (e.g., module or program) of the above-described components may include a single or plural entity, and some of the plurality of entities may be separately placed in other components. there is. According to various embodiments, one or more of the components or operations described above may be omitted, or one or more other components or operations may be added. Alternatively or additionally, multiple components (eg, modules or programs) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each component of the plurality of components in the same or similar manner as those performed by the corresponding component of the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, or omitted. Alternatively, one or more other operations may be added.

Claims (20)

전자 장치에 있어서,
제1 버전의 OS(Operating System)가 설치된 제1 영역, 상기 제1 영역과 상이한 제2 영역, 및 상기 OS의 버전 정보가 저장된 보안 영역을 포함하는 메모리; 및
프로세서를 포함하고,
상기 메모리는 상기 프로세서에 의하여 실행되었을 때, 상기 프로세서가:
상기 OS의 제2 버전에 대응하는 업데이트 데이터를 상기 제2 영역에 저장하고,
상기 업데이트 데이터가 저장된 상기 제2 영역의 일부와 상기 제1 영역의 일부를 가상 파티션으로 설정하고,
상기 가상 파티션에 설치된 상기 제2 버전의 OS를 이용하여 부팅을 시도하고,
상기 부팅의 결과를 상기 보안 영역으로 전달하고,
상기 결과에 기반하여 상기 보안 영역에 저장된 상기 버전 정보의 변경 여부를 결정하도록 하는 인스트럭션들을 저장하는, 전자 장치.
In electronic devices,
a memory including a first area in which a first version of an operating system (OS) is installed, a second area different from the first area, and a security area in which version information of the OS is stored; and
Includes a processor,
When the memory is executed by the processor, the processor:
Store update data corresponding to a second version of the OS in the second area,
Setting a part of the second area and a part of the first area where the update data is stored as a virtual partition,
Attempt to boot using the second version of the OS installed in the virtual partition,
Transfer the result of the booting to the security area,
An electronic device that stores instructions for determining whether to change the version information stored in the security area based on the results.
제 1 항에 있어서,
상기 인스트럭션들은 상기 프로세서에 의하여 실행되었을 때, 상기 프로세서가,
상기 보안 영역에 저장된 상기 버전 정보 보다 이전의 버전으로 상기 OS가 롤백(ROLL BACK)되는 것을 방지하도록 하는, 전자 장치.
According to claim 1,
When the instructions are executed by the processor, the processor
An electronic device that prevents the OS from being rolled back to a version older than the version information stored in the security area.
제 2 항에 있어서,
상기 인스트럭션들은 상기 프로세서에 의하여 실행되었을 때, 상기 프로세서가,
상기 결과가 성공을 지시하면, 상기 버전 정보를 상기 제1 버전으로부터 상기 제2 버전으로 변경하도록 하는, 전자 장치.
According to claim 2,
When the instructions are executed by the processor, the processor
If the result indicates success, change the version information from the first version to the second version.
제 3 항에 있어서,
상기 인스트럭션들은 상기 프로세서에 의하여 실행되었을 때, 상기 프로세서가,
상기 버전 정보의 변경 후, 상기 업데이트 데이터를 상기 제1 영역의 OS 데이터 중 상기 업데이트 데이터에 대응하는 부분에 기록함으로써 상기 제1 영역의 OS를 상기 제2 버전의 OS로 업데이트 하도록 하는, 전자 장치.
According to claim 3,
When the instructions are executed by the processor, the processor
After changing the version information, the electronic device updates the OS of the first area to the second version of the OS by recording the update data in a portion corresponding to the update data among the OS data of the first area.
제 2 항에 있어서,
상기 인스트럭션들은 상기 프로세서에 의하여 실행되었을 때, 상기 프로세서가,
상기 결과가 실패를 지시하면, 상기 버전 정보를 상기 제1 버전으로 유지하고,
상기 제1 영역에 저장된 상기 제1 버전의 OS를 이용하여 부팅을 시도하도록 하는, 전자 장치.
According to claim 2,
When the instructions are executed by the processor, the processor
If the result indicates a failure, keep the version information as the first version,
An electronic device that attempts to boot using the first version of the OS stored in the first area.
제 1 항에 있어서,
상기 보안 영역은, 상기 OS와 상이한 보안 OS에 기반하여 운영되는, 전자 장치.
According to claim 1,
The security area is operated based on a security OS that is different from the OS.
제 6 항에 있어서,
상기 인스트럭션들은 상기 프로세서에 의하여 실행되었을 때, 상기 프로세서가,
상기 보안 OS 상의 프로그램을 이용하여, 상기 결과에 기반하여 상기 보안 영역에 저장된 상기 버전 정보를 변경 또는 유지하도록 하는, 전자 장치.
According to claim 6,
When the instructions are executed by the processor, the processor
An electronic device that uses a program on the secure OS to change or maintain the version information stored in the secure area based on the results.
제 1 항에 있어서,
상기 제1 영역 및 상기 제2 영역은 REE(Rich Execution Environment) 내의 메모리 영역이고, 상기 보안 영역은 TEE(Trusted Execution Environment) 내의 메모리 영역인, 전자 장치.
According to claim 1,
The first area and the second area are memory areas within a Rich Execution Environment (REE), and the security area is a memory area within a Trusted Execution Environment (TEE).
메모리 및 프로세서를 포함하는 전자 장치의 업데이트를 위한 방법에 있어서,
상기 메모리의 제1 영역 내에 설치된 제1 버전의 OS의 데이터 영역의 일부와 상기 메모리의 제2 영역에 저장된 제2 버전의 업데이트 데이터의 데이터 영역을 가상 파티션으로 설정하는 동작;
상기 가상 파티션에 설치된 상기 제2 버전의 OS를 이용하여 부팅을 시도하는 동작;
상기 부팅의 결과를 상기 메모리의 보안 영역으로 전달하는 동작; 및
상기 결과에 기반하여 상기 보안 영역에 저장된 상기 OS의 버전 정보의 변경 여부를 결정하는 동작을 포함하는, 방법.
In a method for updating an electronic device including memory and processor,
setting a part of the data area of the first version of the OS installed in the first area of the memory and the data area of the second version of the update data stored in the second area of the memory as a virtual partition;
Attempting to boot using the second version of the OS installed in the virtual partition;
An operation of transferring the result of the booting to a secure area of the memory; and
A method comprising determining whether to change the version information of the OS stored in the security area based on the results.
제 9 항에 있어서,
상기 프로세서는, 상기 보안 영역에 저장된 상기 버전 정보 보다 이전의 버전으로 상기 OS가 롤백(ROLL BACK)되는 것을 방지하도록 설정된, 방법.
According to clause 9,
The processor is set to prevent the OS from being rolled back to a version older than the version information stored in the security area.
제 12 항에 있어서,
상기 버전 정보의 변경 여부를 결정하는 동작은, 상기 결과가 성공을 지시하면, 상기 버전 정보를 상기 제1 버전으로부터 상기 제2 버전으로 변경하는 동작을 포함하는, 방법.
According to claim 12,
The operation of determining whether to change the version information includes, if the result indicates success, changing the version information from the first version to the second version.
제 11 항에 있어서,
상기 버전 정보의 변경 후, 상기 업데이트 데이터를 상기 제1 영역의 OS의 데이터 중 상기 업데이트 데이터에 대응하는 부분에 기록함으로써 상기 제1 영역의 OS를 상기 제2 버전의 OS로 업데이트 하는 동작을 더 포함하는, 방법.
According to claim 11,
After changing the version information, updating the OS of the first area to the second version of the OS by recording the update data in a portion corresponding to the update data among the data of the OS of the first area. How to.
제 10 항에 있어서,
상기 버전 정보의 변경 여부를 결정하는 동작은,
상기 결과가 실패를 지시하면, 상기 버전 정보를 상기 제1 버전으로 유지하는 동작; 및
상기 제1 영역에 저장된 상기 제1 버전의 OS를 이용하여 부팅을 시도하는 동작을 포함하는, 방법.
According to claim 10,
The operation of determining whether to change the version information is,
If the result indicates failure, maintaining the version information as the first version; and
A method comprising attempting to boot using the first version of the OS stored in the first area.
제 9 항에 있어서,
상기 보안 영역은, 상기 OS와 상이한 보안 OS에 기반하여 운영되는, 방법.
According to clause 9,
The method wherein the security area is operated based on a security OS different from the OS.
제 14 항에 있어서,
상기 버전 정보의 변경 여부를 결정하는 동작은, 상기 보안 OS 상의 프로그램을 이용하여, 상기 결과에 기반하여 상기 보안 영역에 저장된 상기 버전 정보를 변경 또는 유지하는 동작을 포함하는, 방법.
According to claim 14,
The operation of determining whether to change the version information includes the operation of changing or maintaining the version information stored in the secure area based on the result using a program on the secure OS.
제 9 항에 있어서,
상기 제1 영역 및 상기 제2 영역은 REE(Rich Execution Environment) 내의 메모리 영역이고, 상기 보안 영역은 TEE(Trusted Execution Environment) 내의 메모리 영역인, 방법.
According to clause 9,
The first area and the second area are memory areas within a Rich Execution Environment (REE), and the security area is a memory area within a Trusted Execution Environment (TEE).
프로세서에 의하여 실행가능한 인스트럭션들을 저장하는 컴퓨터 판독가능 저장 매체로서, 상기 인스트럭션들은 실행 되었을 때 상기 프로세서가,
메모리의 제1 영역 내에 설치된 제1 버전의 OS의 데이터 영역의 일부와 상기 메모리의 제2 영역에 저장된 제2 버전의 업데이트 데이터의 데이터 영역을 가상 파티션으로 설정하는 동작;
상기 가상 파티션에 설치된 상기 제2 버전의 OS를 이용하여 부팅을 시도하는 동작; 및
상기 부팅의 결과를 상기 메모리의 보안 영역으로 전달하는 동작; 및
상기 결과에 기반하여 상기 보안 영역에 저장된 상기 OS의 버전 정보의 변경 여부를 결정하는 동작을 수행하도록 하는, 컴퓨터 판독가능 저장 매체.
A computer-readable storage medium storing instructions executable by a processor, wherein the instructions, when executed, cause the processor to:
Setting a part of the data area of the first version of the OS installed in the first area of the memory and the data area of the second version of the update data stored in the second area of the memory as a virtual partition;
Attempting to boot using the second version of the OS installed in the virtual partition; and
An operation of transferring the result of the booting to a secure area of the memory; and
A computer-readable storage medium that performs an operation of determining whether to change the version information of the OS stored in the security area based on the result.
제 17 항에 있어서,
상기 인스트럭션들은 실행 되었을 때 상기 프로세서가, 상기 보안 영역에 저장된 상기 버전 정보 보다 이전의 버전으로 상기 OS가 롤백(ROLL BACK)되는 것을 방지하도록 하는, 컴퓨터 판독가능 저장 매체.
According to claim 17,
When the instructions are executed, the processor prevents the OS from being rolled back to a version older than the version information stored in the security area.
제 18 항에 있어서,
상기 인스트럭션들은 실행되었을 때 상기 프로세서가, 상기 결과가 성공을 지시하면, 상기 버전 정보를 상기 제1 버전으로부터 상기 제2 버전으로 변경하도록 하는, 컴퓨터 판독가능 저장 매체.
According to claim 18,
wherein the instructions, when executed, cause the processor to change the version information from the first version to the second version if the result indicates success.
제 19 항에 있어서,
상기 인스트럭션들은 실행되었을 때 상기 프로세서가, 상기 버전 정보의 변경 후, 상기 업데이트 데이터를 상기 제1 영역의 OS의 데이터 중 상기 업데이트 데이터에 대응하는 부분에 기록함으로써 상기 제1 영역의 OS를 상기 제2 버전의 OS로 업데이트 하도록 하는, 컴퓨터 판독가능 저장 매체.
According to claim 19,
When the instructions are executed, the processor, after changing the version information, records the update data in a portion corresponding to the update data among the data of the OS of the first area, thereby converting the OS of the first area to the second area. A computer-readable storage medium that allows updating to the current version of the OS.
KR1020220142123A 2022-09-30 2022-10-31 Method of update and electronic device therefor KR20240045929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2023/014533 WO2024071861A1 (en) 2022-09-30 2023-09-22 Update method and electronic device therefor

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020220125181 2022-09-30
KR20220125181 2022-09-30

Publications (1)

Publication Number Publication Date
KR20240045929A true KR20240045929A (en) 2024-04-08

Family

ID=90715199

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220142123A KR20240045929A (en) 2022-09-30 2022-10-31 Method of update and electronic device therefor

Country Status (1)

Country Link
KR (1) KR20240045929A (en)

Similar Documents

Publication Publication Date Title
US20220156029A1 (en) Electronic device and method for providing application screen of display of external device thereof
KR20220016544A (en) Electronic device for supporting audio sharing
US20230305919A1 (en) Electronic apparatus and operating method thereof
KR20220101856A (en) Electronic device and method for providing user interface
KR20230049392A (en) Electronic device for processing multi-signed apk file and operation method thereof
KR20240045929A (en) Method of update and electronic device therefor
KR20220101789A (en) Electronic device and operation method thereof
WO2024071861A1 (en) Update method and electronic device therefor
US20230359473A1 (en) Electronic device preloading abnormal application in background, and operation method thereof
EP4390694A1 (en) Electronic device for recovering file and operation method of electronic device
US20230237025A1 (en) Electronic device for managing journal file and operation method thereof
US20240118887A1 (en) Method for updating application and electronic device thereof
KR20240025417A (en) Method for managing memory and electronic device supporting the same
KR20240047263A (en) Electronic device for providing trusted execution environment
US20240178990A1 (en) Electronic device for storing secure data and method for operating the same
KR20240045935A (en) electronic device and method for communicating between applications
US20230052759A1 (en) Electronic device using division permission and operation method thereof
EP4386558A1 (en) Method for recovering database file in electronic device
WO2024075929A1 (en) Electronic device for providing trusted execution environment
US20230030132A1 (en) Application optimization method and apparatus supporting the same
KR20230023176A (en) Electronic device for interworking with wearable device and operating method thereof
KR20220153959A (en) Electronic device and method for managing file thereof
KR20240077842A (en) Electronic device for storing secure data and method for operating thereof
KR20240070361A (en) Electronic device, operting method, and storage medium supporting file transfer between devices connected over a network
KR20240034076A (en) Electronic device providing security mode and operating method of the electronic deivce thereof