WO2023085853A1 - 파일을 복구하기 위한 전자 장치 및 전자 장치의 동작 방법 - Google Patents

파일을 복구하기 위한 전자 장치 및 전자 장치의 동작 방법 Download PDF

Info

Publication number
WO2023085853A1
WO2023085853A1 PCT/KR2022/017768 KR2022017768W WO2023085853A1 WO 2023085853 A1 WO2023085853 A1 WO 2023085853A1 KR 2022017768 W KR2022017768 W KR 2022017768W WO 2023085853 A1 WO2023085853 A1 WO 2023085853A1
Authority
WO
WIPO (PCT)
Prior art keywords
apex
file
electronic device
uncompressed
uncompressed file
Prior art date
Application number
PCT/KR2022/017768
Other languages
English (en)
French (fr)
Inventor
이해욱
김현준
정관희
김효종
Original Assignee
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Publication of WO2023085853A1 publication Critical patent/WO2023085853A1/ko

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1417Boot up procedures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/142Reconfiguring to eliminate the error
    • G06F11/143Reconfiguring to eliminate the error with loss of software functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1471Saving, restoring, recovering or retrying involving logging of persistent data for recovery
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction

Definitions

  • Various embodiments disclosed in this document relate to an electronic device for restoring a file and a method of operating the electronic device. Specifically, it relates to an electronic device for restoring a file in which at least one module included in a framework is packaged and a method of operating the electronic device.
  • APEX (Android Pony Express) is a method in which some modules included in the framework are configured and used as a single package.
  • One APEX file composed of a package has an “apex” extension.
  • the main files included in APEX can be the main modules of the framework, which can include executable files such as “executable”, native libraries such as “so”, Java libraries such as “jar”, and various other data files. there is.
  • a method of updating APEX may correspond to a method of updating an application (apk). Although there are differences in the specific operation process of the update, the main advantage and purpose of the APEX method can be that the main modules of the framework can be updated through a store app (eg play store).
  • CAPEX compressed APEX is a method of compressing an existing apex file once more. It was introduced for the purpose of reducing the size of the apex file.
  • APEXD is a native process for apex files and can be responsible for authenticating, installing, and uninstalling APEX files.
  • APEXD creates APEX by decompressing CAPEX, and can mount modules in APEX.
  • the original apex file can be stored in the user data area where read/write is possible. Unlike the apex file in the read only area, file corruption in the user data area can occur.
  • APEXD can use 'dm-verity' logic to check file corruption for apex files. 'dm-verity' may be logic performed by the kernel to check the integrity and consistency of files stored in the user data area.
  • a PackageManagerService (PKMS) module may be a service module of a framework that manages installed applications (apk).
  • the PKMS module may perform a signature check of the apk file while scanning all apk files stored in the terminal during the framework initialization process. For example, the PKMS module can check whether the previously checked signature value matches the signature extracted from the apk file.
  • apks-in-apex apks-in-apex
  • PKMS can perform a signature check on the apk file included in the mounted apex module.
  • a panic may occur due to the 'dm-verity' logic of the kernel. If the original apex file is modified, panic due to 'dmv-corrupt' is repeated, and the terminal cannot be booted, making it unusable.
  • PKMS can perform signature check by scanning apks-in-apex files.
  • PKMS may generate an exception and perform platform restart in response to a difference between the previously verified signature value and the signature extracted from the apks-in-apex file. If the signature of the apks-in-apex file is in a damaged state, platform restart is repeated due to an exception, and the device may not boot and become unusable.
  • Various embodiments disclosed in this document may provide an electronic device that checks the occurrence of a modification when an apex file is modified and performs a recovery operation on the modified apex file.
  • the electronic device may check a panic message stored in a node designated by the kernel to recover the apex file.
  • the electronic device may restore the apex file when the PKMS signature check is inconsistent with the apex file.
  • the electronic device may restore the apex file by deleting the decompressed original apex file and decompressing the compressed apex file again for the modified apex.
  • An electronic device includes a memory and a processor for storing a file obtained by compressing a file comprising at least one module as a package, and the processor decompresses the compressed file to obtain an uncompressed file. generating, storing the generated uncompressed file in the memory, checking whether deformation occurs in the uncompressed file while booting the electronic device, and responding to the occurrence of deformation in the uncompressed file, A recovery operation may be performed on the uncompressed file.
  • An operating method of an electronic device includes an operation of generating an uncompressed file by decompressing a file obtained by compressing a file comprising at least one module as a package, and storing the generated uncompressed file in a memory.
  • the electronic device may identify an apex file in which a problem occurs.
  • the electronic device may recover an apex file in which a problem occurs.
  • the electronic device can restore the problem and boot normally without entering a kernel panic state.
  • the electronic device can recover the problem and boot normally without switching to a platform restart state.
  • FIG. 1 is a block diagram of an electronic device in a network environment, according to various embodiments.
  • FIG. 2 is a block diagram illustrating a program according to various embodiments.
  • FIG. 3 is a diagram illustrating a format of a compressed APEX file according to various embodiments.
  • FIG. 4 is a diagram illustrating a configuration of an operating system of an electronic device according to various embodiments.
  • 5A is a flowchart illustrating a method of performing a recovery routine for an APEX file by an APEX manager according to various embodiments.
  • 5B is a flowchart illustrating a method of restoring an APEX file by an APEX manager according to various embodiments.
  • 6A is a flowchart illustrating a method of performing a recovery routine for an APEX file by an APEX manager according to various embodiments.
  • 6B is a flowchart illustrating an operation of an electronic device for a modified APEX file, according to various embodiments.
  • 7A is a flowchart illustrating a method in which a package manager and an APEX manager perform a repair routine for an APEX file according to both embodiments.
  • FIG. 7B is a flowchart illustrating an operation of an electronic device for a modified APEX file, according to various embodiments.
  • 7C is a flowchart illustrating an operation of an electronic device for a modified APEX file, according to various embodiments.
  • FIG. 1 is a block diagram of an electronic device 101 within a network environment 100, according to various embodiments.
  • an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or through a second network 199. It may communicate with at least one of the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • a first network 198 eg, a short-range wireless communication network
  • the server 108 e.g, a long-distance wireless communication network
  • the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or the antenna module 197 may be included.
  • at least one of these components eg, the connection terminal 178) may be omitted or one or more other components may be added.
  • some of these components eg, sensor module 176, camera module 180, or antenna module 197) are integrated into a single component (eg, display module 160). It can be.
  • the processor 120 for example, executes software (eg, the program 140) to cause at least one other component (eg, hardware or software component) of the electronic device 101 connected to the processor 120. It can control and perform various data processing or calculations. According to one embodiment, as at least part of data processing or operation, the processor 120 transfers instructions or data received from other components (e.g., sensor module 176 or communication module 190) to volatile memory 132. , processing commands or data stored in the volatile memory 132 , and storing resultant data in the non-volatile memory 134 .
  • software eg, the program 140
  • the processor 120 transfers instructions or data received from other components (e.g., sensor module 176 or communication module 190) to volatile memory 132. , processing commands or data stored in the volatile memory 132 , and storing resultant data in the non-volatile memory 134 .
  • the processor 120 may include a main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit ( NPU: neural processing unit (NPU), image signal processor, sensor hub processor, or communication processor).
  • a main processor 121 eg, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphic processing unit, a neural network processing unit ( NPU: neural processing unit (NPU), image signal processor, sensor hub processor, or communication processor.
  • NPU neural network processing unit
  • the secondary processor 123 may be implemented separately from or as part of the main processor 121 .
  • the secondary processor 123 may, for example, take the place of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, running an application). ) state, together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states.
  • the auxiliary processor 123 eg, image signal processor or communication processor
  • the auxiliary processor 123 may include a hardware structure specialized for processing an artificial intelligence model.
  • AI models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself where the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108).
  • the learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning or reinforcement learning, but in the above example Not limited.
  • the artificial intelligence model may include a plurality of artificial neural network layers.
  • Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the foregoing, but is not limited to the foregoing examples.
  • the artificial intelligence model may include, in addition or alternatively, software structures in addition to hardware structures.
  • the memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176) of the electronic device 101 .
  • the data may include, for example, input data or output data for software (eg, program 140) and commands related thereto.
  • the memory 130 may include volatile memory 132 or non-volatile memory 134 .
  • the program 140 may be stored as software in the memory 130 and may include, for example, an operating system 142 , middleware 144 , or an application 146 .
  • the input module 150 may receive a command or data to be used by a component (eg, the processor 120) of the electronic device 101 from the outside of the electronic device 101 (eg, a user).
  • the input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
  • the sound output module 155 may output sound signals to the outside of the electronic device 101 .
  • the sound output module 155 may include, for example, a speaker or a receiver.
  • the speaker can be used for general purposes such as multimedia playback or recording playback.
  • a receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.
  • the display module 160 may visually provide information to the outside of the electronic device 101 (eg, a user).
  • the display module 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device.
  • the display module 160 may include a touch sensor set to detect a touch or a pressure sensor set to measure the intensity of force generated by the touch.
  • the audio module 170 may convert sound into an electrical signal or vice versa. According to one embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device connected directly or wirelessly to the electronic device 101 (eg: Sound may be output through the electronic device 102 (eg, a speaker or a headphone).
  • the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device connected directly or wirelessly to the electronic device 101 (eg: Sound may be output through the electronic device 102 (eg, a speaker or a headphone).
  • the sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the detected state. can do.
  • the sensor module 176 may include, 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 bio sensor, It may include a temperature sensor, humidity sensor, or light sensor.
  • the interface 177 may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device 101 to an external electronic device (eg, the electronic device 102).
  • the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
  • HDMI high definition multimedia interface
  • USB universal serial bus
  • SD card interface Secure Digital Card interface
  • audio interface audio interface
  • connection terminal 178 may include a connector through which the electronic device 101 may be physically connected to an external electronic device (eg, the electronic device 102).
  • the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 179 may convert electrical signals into mechanical stimuli (eg, vibration or motion) or electrical stimuli that a user may perceive through tactile or kinesthetic senses.
  • the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 180 may capture still images and moving images. According to one embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 188 may manage power supplied to the electronic device 101 .
  • the power management module 188 may be implemented as at least part of a power management integrated circuit (PMIC), for example.
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 101 .
  • the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). Establishment and communication through the established communication channel may be supported.
  • the communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication.
  • the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : a local area network (LAN) communication module or a power line communication module).
  • a wireless communication module 192 eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module
  • GNSS global navigation satellite system
  • wired communication module 194 eg, : a local area network (LAN) communication module or a power line communication module.
  • a corresponding communication module is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a telecommunications network such as a computer network (eg, a LAN or a WAN).
  • a telecommunications network such as a computer network (eg, a LAN or a WAN).
  • These various types of communication modules may be integrated as one component (eg, a single chip) or implemented as a plurality of separate components (eg, multiple chips).
  • the wireless communication module 192 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199.
  • subscriber information eg, International Mobile Subscriber Identifier (IMSI)
  • IMSI International Mobile Subscriber Identifier
  • the electronic device 101 may be identified or authenticated.
  • the wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, NR access technology (new radio access technology).
  • NR access technologies include high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and access of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low latency (URLLC)).
  • eMBB enhanced mobile broadband
  • mMTC massive machine type communications
  • URLLC ultra-reliable and low latency
  • -latency communications can be supported.
  • the wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example.
  • the wireless communication module 192 uses various technologies for securing performance in a high frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. Technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna may be supported.
  • the wireless communication module 192 may support various requirements defined for the electronic device 101, an external electronic device (eg, the electronic device 104), or a network system (eg, the second network 199).
  • the wireless communication module 192 is a peak data rate for eMBB realization (eg, 20 Gbps or more), a loss coverage for mMTC realization (eg, 164 dB or less), or a U-plane latency for URLLC realization (eg, Example: downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) may be supported.
  • eMBB peak data rate for eMBB realization
  • a loss coverage for mMTC realization eg, 164 dB or less
  • U-plane latency for URLLC realization eg, Example: downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less
  • the antenna module 197 may transmit or receive signals or power to the outside (eg, an external electronic device).
  • the antenna module 197 may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (eg, PCB).
  • the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is selected from the plurality of antennas by the communication module 190, for example. can be chosen A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna.
  • other components eg, a radio frequency integrated circuit (RFIC) may be additionally formed as a part of the antenna module 197 in addition to the radiator.
  • RFIC radio frequency integrated circuit
  • the antenna module 197 may form a mmWave antenna module.
  • the mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent to a first surface (eg, a lower surface) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, array antennas) disposed on or adjacent to a second surface (eg, a top surface or a side surface) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
  • peripheral devices eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • signal e.g. commands or data
  • commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 .
  • Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 .
  • all or part of operations executed in the electronic device 101 may be executed in one or more external electronic devices among the external electronic devices 102 , 104 , or 108 .
  • the electronic device 101 when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 instead of executing the function or service by itself.
  • one or more external electronic devices may be requested to perform the function or at least part of the service.
  • One or more external electronic devices receiving the request may execute at least a part of the requested function or service or an additional function or service related to the request, and deliver the execution result to the electronic device 101 .
  • the electronic device 101 may provide the result as at least part of a response to the request as it is or additionally processed.
  • cloud computing distributed computing, mobile edge computing (MEC), or client-server computing technology may be used.
  • the electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing.
  • the external electronic device 104 may include an internet of things (IoT) device.
  • Server 108 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 104 or server 108 may be included in the second network 199 .
  • the electronic device 101 may be applied to intelligent services (eg, smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology. ⁇
  • the program 140 includes an operating system 142, middleware 144, or an application 146 executable in the operating system 142 for controlling one or more resources of the electronic device 101.
  • the operating system 142 may include, for example, AndroidTM, iOSTM, WindowsTM, SymbianTM, TizenTM, or BadaTM.
  • At least some of the programs 140 are, for example, preloaded in the electronic device 101 at the time of manufacture, or when used by a user, an external electronic device (eg, the electronic device 102 or 104), or a server ( 108)) can be downloaded or updated.
  • the operating system 142 may control management (eg, allocation or reclamation) of one or more system resources (eg, process, memory, or power) of the electronic device 101 .
  • Operating system 142 may additionally or alternatively include other hardware devices of electronic device 101 , such as input module 150 , sound output module 155 , display module 160 , audio module 170 . , sensor module 176, interface 177, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196, or It may include one or more driver programs for driving the antenna module 197.
  • the middleware 144 may provide various functions to the application 146 so that the function or information provided from one or more resources of the electronic device 101 may be used by the application 146 .
  • the middleware 144 includes, for example, the application manager 201, the window manager 203, the multimedia manager 205, the resource manager 207, the power manager 209, the database manager 211, and the package manager 213. ), connectivity manager 215, notification manager 217, location manager 219, graphics manager 221, security manager 223, call manager 225, or voice recognition manager 227. can
  • the application manager 201 may manage the life cycle of the application 146 , for example.
  • the window manager 203 may manage one or more GUI resources used in a screen, for example.
  • the multimedia manager 205 identifies, for example, one or more formats necessary for reproducing media files, and encodes or decodes a corresponding media file among the media files using a codec suitable for the selected format. can be done
  • the resource manager 207 may manage a source code of the application 146 or a memory space of the memory 130 .
  • the power manager 209 may manage, for example, the capacity, temperature, or power of the battery 189, and determine or provide related information necessary for the operation of the electronic device 101 by using corresponding information among them. . According to an embodiment, the power manager 209 may interoperate with a basic input/output system (BIOS) (not shown) of the electronic device 101 .
  • BIOS basic input/output system
  • the database manager 211 may create, search, or change a database to be used by the application 146, for example.
  • the package manager 213 may manage installation or update of applications distributed in the form of package files, for example.
  • the connectivity manager 215 may manage, for example, a wireless connection or a direct connection between the electronic device 101 and an external electronic device.
  • the notification manager 217 may provide a function for notifying a user of occurrence of a designated event (eg, an incoming call, message, or alarm), for example.
  • the location manager 219 may manage location information of the electronic device 101, for example.
  • the graphic manager 221 may manage, for example, one or more graphic effects to be provided to a user or a user interface related thereto.
  • Security manager 223 may provide system security or user authentication, for example.
  • the telephony manager 225 may manage, for example, a voice call function or a video call function provided by the electronic device 101 .
  • the voice recognition manager 227 transmits, for example, the user's voice data to the server 108, and at least partially based on the voice data, a command corresponding to a function to be performed in the electronic device 101; Alternatively, text data converted at least partially based on the voice data may be received from the server 108 .
  • the middleware 244 may dynamically delete some existing components or add new components.
  • at least part of the middleware 144 may be included as part of the operating system 142 or may be implemented as separate software different from the operating system 142 .
  • the application 146 includes, for example, a home 251, a dialer 253, an SMS/MMS 255, an instant message (IM) 257, a browser 259, a camera 261, and an alarm 263. , Contacts (265), Voice Recognition (267), Email (269), Calendar (271), Media Player (273), Albums (275), Watch (277), Health (279) (e.g. exercise or blood sugar) measurement of biometric information) or environmental information 281 (eg, measurement of atmospheric pressure, humidity, or temperature information). According to an embodiment, the application 146 may further include an information exchange application (not shown) capable of supporting information exchange between the electronic device 101 and an external electronic device.
  • an information exchange application not shown
  • the information exchange application may include, for example, a notification relay application configured to transmit designated information (eg, a call, message, or alarm) to an external electronic device, or a device management application configured to manage an external electronic device.
  • the notification relay application for example, transmits notification information corresponding to a designated event (eg, mail reception) generated in another application (eg, the email application 269) of the electronic device 101 to an external electronic device.
  • the notification relay application may receive notification information from an external electronic device and provide the notification information to the user of the electronic device 101 .
  • the device management application is, for example, a power source (eg, turn-on or turn-off) of an external electronic device that communicates with the electronic device 101 or some component thereof (eg, a display module or a camera module of the external electronic device). ) or functions (eg brightness, resolution, or focus).
  • the device management application may additionally or alternatively support installation, deletion, or update of an application operating in an external electronic device.
  • FIG. 3 is a diagram illustrating a format of a compressed APEX 300 file according to various embodiments.
  • the compressed APEX 300 may include compressed metadata and uncompressed APEX 350 .
  • the uncompressed APEX 350 may include an APEX module 360 including original metadata and a first file 361 and/or a second file 362 .
  • the components included in FIG. 3 are for some of the components included in the compressed APEX 300, and the compressed APEX 300 may include various other components.
  • the uncompressed APEX 350 may be an original uncompressed APEX file.
  • the uncompressed APEX 350 may be a zip file in which some modules included in the framework are configured in a package form.
  • the uncompressed APEX 350 may correspond to an original apex file and/or an uncompressed APEX 350 file (eg, original apex and/or decompressed apex).
  • the uncompressed APEX 350 may include an APEX module 360.
  • the APEX module 360 may be a file system including a first file 361 and/or a second file 362 which are general files.
  • the APEX modules 360 and 350 may include an executable file such as "executable”, a native library such as "so", and a data file such as a Java library such as "jar”.
  • the uncompressed APEX 350 may include APEX metadata 351.
  • the APEX metadata 351 may include data related to APEX, such as a package name and version indicating an APEX file, and/or a public key used in a file system.
  • the uncompressed APEX 350 may be stored in a designated location in the memory 130 (eg, a read/write user data area, /data/apex/decompressed).
  • the APEX manager 421 may activate the APEX module 360 by mounting the uncompressed APEX 350 at a designated location.
  • the APEX module 360 mounted at a designated location eg, /data/apex/active
  • a user process eg, an application
  • the compressed APEX 300 may be a file obtained by compressing the uncompressed APEX 350.
  • the compressed APEX 300 may correspond to a capex file (eg, compressed apex).
  • the compressed APEX 300 may include compressed metadata 301.
  • the compression metadata 301 may include data related to APEX, such as a package name and version indicating an APEX file, and/or a public key used in a file system.
  • the compressed APEX 300 may include an uncompressed APEX 350.
  • the APEX manager 421 decompresses the compressed APEX 300 to create an uncompressed APEX 350, and stores the generated uncompressed APEX 350 in a designated location of the memory 130 (eg: It can be stored in the user data area that can be read/written, /data/apex/decompressed).
  • the compressed APEX 300 may be located in a designated location (eg, a read-only area, /system) of the memory 130 .
  • FIG. 4 is a diagram illustrating a configuration of an operating system 400 of an electronic device 101 according to various embodiments.
  • the operating system 400 of the electronic device 101 may be implemented in a processor (eg, the processor 120 of FIG. 1 ).
  • the operating system 400 of the electronic device 101 may include an application 430 , a framework 420 , and/or a kernel 410 .
  • the kernel 410 is the lowest layer in the operating system of the electronic device 101 (100) and can manage the system of the electronic device 101 (100).
  • the kernel 410 may perform an integrity check (eg, dm-verity (device-mapper-verity)) to check integrity and consistency of files stored in the user data area.
  • the integrity check may be a method of storing a previously loaded hash value in an internally generated hash tree and comparing a new hash value generated when a file is loaded to check whether they match.
  • the kernel 410 may generate a kernel panic in response to a mismatch of hash values in an integrity check as a file is modified.
  • the kernel 410 in response to deformation of the uncompressed APEX 350, the kernel 410 generates a kernel panic (dmv corrupt) in an integrity check on the uncompressed APEX 350, and You can store panic messages in a node (e.g. /proc/extra node).
  • a kernel panic dmv corrupt
  • You can store panic messages in a node e.g. /proc/extra node.
  • the framework 420 is an upper layer of the kernel 410 and a lower layer of the application 430 in the operating system of the electronic device 101 (100), and of the electronic device 101 (100). It can implement a standard structure for an operating system.
  • the framework 420 may include an APEX manager 421 and a package manager 422 .
  • the APEX manager 421 may be a stand-alone native process responsible for authentication, installation, and uninstallation of APEX files.
  • the APEX manager 421 may manage the compressed APEX 300 and/or the uncompressed APEX 350.
  • the APEX manager 421 decompresses the compressed APEX 300 to create an uncompressed APEX 350, and stores the generated uncompressed APEX 350 in a designated location in the memory 130 (eg, a user capable of reading/writing). data area, /data/apex/decompressed).
  • the APEX manager 421 may activate the APEX module 360 by mounting the uncompressed APEX 350 at a designated location.
  • the APEX manager 421 may read the uncompressed APEX 350 to determine validity, and mount the uncompressed APEX 350 determined to be valid in a designated location.
  • the APEX module 360 mounted at a designated location eg, /data/apex/active
  • a user process eg, the application 430.
  • the package manager 422 may be a service module of the framework 420 that performs management operations on applications installed in the electronic device 101 .
  • the package manager 422 may scan application files (eg, apk files) stored in the electronic device 101 in the framework initialization process and check the signatures of the application files. .
  • the package manager 422 may perform a signature check on an application file included in the APEX module 360.
  • the signature check may be a check in which the package manager 422 determines whether the signature designated for the application file and the verified signature match.
  • the package manager 422 can confirm that the application file is integrity if the signature verified for the application file matches the designated signature, and that the application file is damaged if they do not match.
  • the package manager 422 may determine an exception and restart the platform in response to determining that the application file is damaged in the signature check.
  • the memory 130 may store the compressed APEX 300 , the uncompressed APEX 350 , and/or the APEX module 360 .
  • the APEX manager 421 may generate an uncompressed APEX 350 by decompressing the compressed APEX 300 .
  • the uncompressed APEX 350 may be stored in a designated location in the memory 130 (eg, a read/write user data area, /data/apex/decompressed).
  • the APEX manager 421 may generate the compressed APEX 300 by compressing the uncompressed APEX 350 .
  • the APEX manager 421 can create the APEX module 360 by mounting it in the uncompressed APEX 350 .
  • the APEX manager 421 may activate the APEX module 360 by mounting the uncompressed APEX 350 at a designated location.
  • the APEX module 360 mounted at a designated location eg, /data/apex/active
  • can be used by a user process eg, an application.
  • the APEX manager 421 may create an uncompressed APEX 350 by unmounting the APEX module 360 .
  • 5A is a flowchart illustrating a method in which the APEX manager 421 performs a recovery routine on an APEX file according to various embodiments.
  • the APEX manager 421, in operation 510, may check whether APEX recovery is necessary.
  • the APEX manager 421 may check whether APEX recovery is necessary in response to checking a panic message in a designated node.
  • the kernel 410 responds to the occurrence of deformation in the uncompressed APEX 350, generates a kernel panic (dmv corrupt) by an integrity check, and generates a designated node of the memory 130 (eg /proc/ panic message can be stored in the extra node).
  • the APEX manager 421 may check the panic message stored in the designated node to determine whether a kernel panic occurs.
  • the APEX manager 421 may check whether APEX recovery is necessary in response to checking a property set by the package manager.
  • the package manager 422 may set a property for informing the APEX manager 421 of the APEX module 360 to be restored.
  • property setting may be a method in which the APEX manager 421 stores a designated value in a designated area of a memory (eg, the memory 130 of FIG. 1 ).
  • the APEX manager 421, in operation 520 may perform an APEX recovery routine.
  • the APEX manager 421 may notify occurrence of an APEX problem and/or completion of repair in operation 530 .
  • the APEX manager 421 may notify occurrence of an APEX problem and/or completion of restoration in response to checking a property indicating that a recovery routine for APEX is to be performed.
  • the APEX manager 421 may display information for notifying the occurrence of an APEX problem and/or completion of repair on a display (eg, the display module 160 of FIG. 1 ).
  • the APEX manager 421 may display information for notifying the occurrence of an APEX problem and/or completion of repair in the form of a nofitification and/or a popup window.
  • the APEX manager 421 corresponds to the fact that the restored uncompressed APEX 350 is a designated type of non-compressed APEX 350, information that can inform that the designated uncompressed APEX 350 has been restored. can be displayed.
  • 5B is a flowchart illustrating a method of restoring an APEX file by the APEX manager 421 according to various embodiments.
  • the flowchart shown in FIG. 5B may be a specific embodiment of operation 520 of FIG. 5A.
  • the APEX manager 421 may delete the modified uncompressed APEX 350 file in operation 521 .
  • the APEX manager 421 may delete the modified uncompressed APEX 350 file in response to confirming whether APEX recovery is necessary in operation 510 .
  • the APEX manager 421 may delete the modified APEX file corresponding to the panic message in response to confirming the panic message in the designated node.
  • the kernel 410 responds to the occurrence of deformation in the uncompressed APEX 350, generates a kernel panic (dmv corrupt) by an integrity check, and generates a designated node of the memory 130 (eg /proc/ panic message can be stored in the extra node).
  • the APEX manager 421 may check the panic message stored in the designated node to determine whether a kernel panic occurs.
  • the APEX manager 421 may delete the modified APEX file corresponding to the property in response to checking the property set by the package manager.
  • the package manager 422 may set a property for informing the APEX manager 421 of the APEX module 360 to be restored.
  • property setting may be a method in which the APEX manager 421 stores a designated value in a designated area of a memory (eg, the memory 130 of FIG. 1 ).
  • the APEX manager 421 may indicate performing a recovery routine.
  • the APEX manager 421 may set a property to indicate that a recovery routine for APEX is performed.
  • property setting may be a method in which the APEX manager 421 stores a designated value in a designated area of a memory (eg, the memory 130 of FIG. 1 ).
  • the APEX manager 421, in operation 523 may decompress the compressed APEX 300 to regenerate the uncompressed APEX 350 and store it.
  • the APEX manager 421 may decompress the compressed APEX 300 file in response to the non-compressed APEX 350 file not existing in the memory 130 .
  • the APEX manager 421 decompresses the compressed APEX 300 to create an uncompressed APEX 350, and stores the generated uncompressed APEX 350 in a designated location of the memory 130 (eg, read/write It can be stored in the writable user data area, /data/apex/decompressed).
  • the APEX manager 421 may mount the regenerated uncompressed APEX 350 module in operation 524 .
  • the APEX manager 421 may mount the APEX module 360 included in the regenerated uncompressed APEX 350 in a designated path.
  • the APEX manager 421 may activate the APEX module 360 by mounting the uncompressed APEX 350 at a designated location.
  • the APEX module 360 mounted at a designated location eg, /data/apex/active
  • can be used by a user process eg, an application.
  • 6A is a flowchart illustrating a method in which the APEX manager 421 performs a recovery routine on an APEX file according to various embodiments.
  • the APEX manager 421, in operation 610 may check whether a kernel panic occurs.
  • the APEX manager 421 may check whether a kernel panic occurs by checking a panic message stored in a node designated by the kernel 410 .
  • the kernel panic may be an operation performed in response to modification of a file when the kernel 410 performs self-checking booting through an integrity check to check the integrity and consistency of a file stored in the user data area.
  • the integrity check may be a method of storing a previously loaded hash value in an internally generated hash tree and comparing a new hash value generated when a file is loaded to check whether they match.
  • the kernel 410 responds to the occurrence of deformation in the uncompressed APEX 350, generates a kernel panic (dmv corrupt) by an integrity check, and generates a designated node of the memory 130 (eg /proc/ panic message can be stored in the extra node).
  • the APEX manager 421 may check the panic message stored in the designated node to determine whether a kernel panic occurs.
  • the APEX manager 421, in operation 620 may perform a recovery routine.
  • the APEX manager 421 may perform a recovery routine according to operations 521 to 524 of FIG. 5B in response to checking whether a kernel panic occurs.
  • the APEX manager 421 may notify occurrence of an APEX problem and/or completion of performing a recovery routine in operation 630 .
  • the APEX manager 421 may notify occurrence of an APEX problem and/or completion of restoration in response to checking a property indicating that a recovery routine for APEX is to be performed.
  • the APEX manager 421 may display information for notifying the occurrence of an APEX problem and/or completion of repair on a display (eg, the display module 160 of FIG. 1 ).
  • the APEX manager 421 may display information for notifying the occurrence of an APEX problem and/or completion of repair in the form of a nofitification and/or a popup window.
  • 6B is a flowchart illustrating an operation of the electronic device 101 for a modified APEX file, according to various embodiments.
  • routine A is a routine in the case of not performing the recovery routine for the APEX file shown in FIG. 6A
  • routine B is added in the case of performing the recovery routine for the APEX file shown in FIG. 6A. It may be a routine that becomes
  • the electronic device 101 may boot the electronic device 101.
  • the APEX manager 421 decompresses the compressed APEX 300 to create an uncompressed APEX 350 and the generated uncompressed APEX 350. It can be stored in a designated location of the memory 130 (eg, a read/write user data area, /data/apex/decompressed).
  • the uncompressed APEX 350 may be in a state in which corruption occurs due to a problem occurring in the process of releasing the compressed APEX 300 .
  • the electronic device 101 may mount the uncompressed APEX 350 in operation 602 .
  • the APEX manager 421 may activate the APEX module 360 by mounting the uncompressed APEX 350 at a designated location.
  • a user process may access the APEX module 360.
  • a user process may access the APEX module 360 mounted at a designated location (eg, /data/apex/active) and perform an operation to read the APEX module 360.
  • a designated location eg, /data/apex/active
  • the electronic device 101 may enter a kernel panic state in operation 604 .
  • the kernel 410 performs an integrity check (eg, dm-verity (device-mapper-verity)) to check the integrity and consistency of the uncompressed APEX 350 and/or the APEX module 360.
  • an integrity check eg, dm-verity (device-mapper-verity)
  • the integrity check may be a method of storing a previously loaded hash value in an internally generated hash tree and comparing a new hash value generated when a file is loaded to check whether they match.
  • the kernel 410 may generate a kernel panic in response to a mismatch of hash values in an integrity check as a file is modified.
  • the kernel 410 performs an integrity check on the uncompressed APEX 350 and/or the APEX module 360 in response to deformation occurring in the uncompressed APEX 350 and/or the APEX module 360. It can cause a kernel panic (dmv corrupt).
  • the kernel 410 may store a panic message in a designated node (eg, /proc/extra node) of the memory 130 .
  • the electronic device 101 may perform operation 601 again after performing operation 604 .
  • the electronic device 101 may perform operation 602 after performing operation 601 .
  • the electronic device 101 may perform operation 621 after performing operation 601 .
  • the electronic device 101 may perform a recovery routine.
  • the APEX manager 421 may check a panic message stored in a designated node to determine whether a kernel panic occurs.
  • the APEX manager 421 may perform a recovery routine according to operations 521 to 524 of FIG. 5B in response to checking whether a kernel panic occurs.
  • a user process may access the APEX module 360.
  • the electronic device 101 may use the APEX module 360 mounted at a designated location (eg, /data/apex/active) by a user process.
  • a designated location eg, /data/apex/active
  • the electronic device 101 may complete booting of the electronic device 101 in operation 622 .
  • the APEX manager 421 may complete booting of the electronic device 101 in response to completing a recovery routine for the APEX.
  • the APEX manager 421 may notify occurrence of an APEX problem and/or completion of restoration in response to checking a property indicating that a recovery routine for APEX is to be performed.
  • the APEX manager 421 may display information for notifying the occurrence of an APEX problem and/or completion of repair on a display (eg, the display module 160 of FIG. 1 ).
  • the APEX manager 421 may display information for notifying the occurrence of an APEX problem and/or completion of repair in the form of a nofitification and/or a popup window.
  • 7A is a flowchart illustrating a method in which the package manager 422 and the APEX manager 421 perform a repair routine on an APEX file according to both embodiments.
  • the package manager 422, in operation 710, may scan the APEX module 360 to perform a signature check.
  • the APEX manager 421 may mount a file in the APEX module 360 included in the uncompressed APEX 350 at a designated location.
  • the package manager 422 scans the APEX module 360 mounted by the APEX manager 421 to find application files included in the APEX module 360 (eg, the first file 361 and /or signature check may be performed on the second file 362 .
  • the signature check may be a check in which the package manager 422 determines whether the signature designated for the application file and the verified signature match.
  • the package manager 422 can confirm that the application file is integrity if the signature verified for the application file matches the designated signature, and that the application file is damaged if they do not match.
  • the package manager 422 performs a signature check on the application files (eg, the first file 361 and/or the second file 362) included in the APEX module 360 a specified number of times or more. and it can be confirmed that the application file is damaged in response to the signature mismatch more than the specified number of times.
  • the package manager 422, in operation 720, may display a mark for informing the APEX manager 421 of the APEX module 360 to be restored.
  • the package manager 422 displays a display to inform the APEX manager 421 of the APEX module 360 to be restored.
  • the package manager 422 may set a property for informing the APEX manager 421 of the APEX module 360 to be restored.
  • property setting may be a method in which the APEX manager 421 stores a designated value in a designated area of a memory (eg, the memory 130 of FIG. 1 ).
  • the package manager 422 transmits and/or checks data between modules and/or functions to the APEX manager 421 in various ways (eg, binder inter process communication (IPC)). information related to the APEX module 360 to be restored may be delivered.
  • IPC binder inter process communication
  • the package manager 422 may reboot the electronic device 101 in operation 730 .
  • the package manager 422 may perform a rebooting operation of the electronic device 101 .
  • the package manager 422 may perform operation 740 without rebooting the electronic device 101 according to operation 730 .
  • the APEX manager 421 may unmount the mounted APEX module 360 in operation 740 and perform an APEX recovery routine.
  • the APEX manager 421 may unmount the mounted APEX module 360.
  • the APEX manager 421 may delete the unmounted uncompressed APEX 350 corresponding to the APEX module 360 to be restored.
  • the APEX manager 421 may check the properties set by the package manager 422 and delete the unmounted uncompressed APEX 350 corresponding to the APEX module 360 to be restored.
  • the APEX manager 421 is based on information received from the package manager 422 by various methods (eg, binder IPC) for transferring and/or verifying data between modules and/or functions.
  • the unmounted uncompressed APEX 350 corresponding to the APEX module 360 to be restored may be deleted.
  • the APEX manager 421 may perform a recovery routine according to operations 521 to 524 of FIG. 5B.
  • the APEX manager 421 transmits and/or verifies data between modules and/or functions by using various methods (eg, binder IPC) to send information related to the completion of a recovery routine to the package manager. (422).
  • various methods eg, binder IPC
  • the APEX manager 421 may notify occurrence of an APEX problem and/or completion of performing a recovery routine in operation 750 .
  • the APEX manager 421 may notify occurrence of an APEX problem and/or completion of restoration in response to checking a property indicating that a recovery routine for APEX is to be performed.
  • the APEX manager 421 may display information for notifying the occurrence of an APEX problem and/or completion of repair on a display (eg, the display module 160 of FIG. 1 ).
  • the APEX manager 421 may display information for notifying the occurrence of an APEX problem and/or completion of repair in the form of a nofitification and/or a popup window.
  • 7B is a flowchart illustrating an operation of the electronic device 101 for a modified APEX file, according to various embodiments.
  • routine A is a routine in the case of not performing the recovery routine for the APEX file shown in FIG. 7A
  • routine B is added in the case of performing the recovery routine for the APEX file shown in FIG. 7A. It may be a routine that becomes
  • the electronic device 101 may boot the electronic device 101.
  • the APEX manager 421 decompresses the compressed APEX 300 to create an uncompressed APEX 350 and the generated uncompressed APEX 350. It can be stored in a designated location of the memory 130 (eg, a read/write user data area, /data/apex/decompressed).
  • the uncompressed APEX 350 may be in a state in which corruption occurs due to a problem occurring in the process of releasing the compressed APEX 300 .
  • the electronic device 101 may mount the uncompressed APEX 350 in operation 702 .
  • the APEX manager 421 may activate the APEX module 360 by mounting the uncompressed APEX 350 at a designated location.
  • the electronic device 101 may perform signature check by scanning the APEX module 360.
  • the package manager 422 scans the APEX module 360 mounted by the APEX manager 421 to find application files included in the APEX module 360 (eg, the first file 361 and /or signature check may be performed on the second file 362 .
  • the signature check may be a check in which the package manager 422 determines whether the signature designated for the application file and the verified signature match.
  • the package manager 422 may confirm that the application file is damaged in response to a mismatch between the signature verified for the application file and a designated signature.
  • the electronic device 101 may perform operation 704 after performing operation 703 .
  • the electronic device 101 may perform operation 741 after performing operation 703 .
  • the electronic device 101 may restart the platform.
  • the package manager 422 determines that an exception occurs in response to determining that the application file is corrupted in the signature check of the application file included in the APEX module 360, and restarts the platform. can be performed.
  • the electronic device 101 may perform a recovery routine.
  • the APEX manager 421 may check a panic message stored in a designated node to determine whether a kernel panic occurs.
  • the APEX manager 421 may perform a recovery routine according to operations 521 to 524 of FIG. 5B in response to checking whether a kernel panic occurs.
  • the electronic device 101 may reboot the electronic device 101 in operation 701 .
  • the electronic device 101 may reboot the electronic device 101 while performing a recovery routine.
  • the electronic device 101 may perform signature check by scanning the APEX module 360.
  • the package manager 422 scans the APEX module 360 mounted by the APEX manager 421 to find application files included in the APEX module 360 (eg, the first file 361 and /or signature check may be performed on the second file 362 .
  • the signature check may be a check in which the package manager 422 determines whether the signature designated for the application file and the verified signature match.
  • the package manager 422 may confirm that the application file is integrity in response to that the signature verified for the application file matches the designated signature.
  • the electronic device 101 may complete booting of the electronic device 101 in operation 742 .
  • the APEX manager 421 may complete booting of the electronic device 101 in response to completing a recovery routine for the APEX.
  • the APEX manager 421 may notify occurrence of an APEX problem and/or completion of restoration in response to checking a property indicating that a recovery routine for APEX is to be performed.
  • the APEX manager 421 may display information for notifying the occurrence of an APEX problem and/or completion of repair on a display (eg, the display module 160 of FIG. 1 ).
  • the APEX manager 421 may display information for notifying the occurrence of an APEX problem and/or completion of repair in the form of a nofitification and/or a popup window.
  • 7C is a flowchart illustrating an operation of the electronic device 101 for a modified APEX file, according to various embodiments.
  • routine A is a routine in the case of not performing the recovery routine for the APEX file shown in FIG. 7A
  • routine B is added in the case of performing the recovery routine for the APEX file shown in FIG. 7A. It may be a routine that becomes
  • the electronic device 101 may boot the electronic device 101.
  • the APEX manager 421 decompresses the compressed APEX 300 to create an uncompressed APEX 350 and the generated uncompressed APEX 350. It can be stored in a designated location of the memory 130 (eg, a read/write user data area, /data/apex/decompressed).
  • the uncompressed APEX 350 may be in a state in which corruption occurs due to a problem occurring in the process of releasing the compressed APEX 300 .
  • the electronic device 101 may mount the uncompressed APEX 350 in operation 702 .
  • the APEX manager 421 may activate the APEX module 360 by mounting the uncompressed APEX 350 at a designated location.
  • the electronic device 101 may perform signature check by scanning the APEX module 360.
  • the package manager 422 scans the APEX module 360 mounted by the APEX manager 421 to find application files included in the APEX module 360 (eg, the first file 361 and /or signature check may be performed on the second file 362 .
  • the signature check may be a check in which the package manager 422 determines whether the signature designated for the application file and the verified signature match.
  • the package manager 422 may confirm that the application file is damaged in response to a mismatch between the signature verified for the application file and a designated signature.
  • the electronic device 101 may perform operation 704 after performing operation 703 .
  • the electronic device 101 may perform operation 741 after performing operation 703 .
  • the electronic device 101 may restart the platform.
  • the package manager 422 determines that an exception occurs in response to determining that the application file is corrupted in the signature check of the application file included in the APEX module 360, and restarts the platform. can be performed.
  • the electronic device 101 may perform a recovery routine.
  • the APEX manager 421 may check a panic message stored in a designated node to determine whether a kernel panic occurs.
  • the APEX manager 421 may perform a recovery routine according to operations 521 to 524 of FIG. 5B in response to checking whether a kernel panic occurs.
  • the electronic device 101 may perform a recovery routine without rebooting the electronic device 101 .
  • the electronic device 101 may perform signature check by scanning the APEX module 360.
  • the package manager 422 scans the APEX module 360 mounted by the APEX manager 421 to find application files included in the APEX module 360 (eg, the first file 361 and /or signature check may be performed on the second file 362 .
  • the signature check may be a check in which the package manager 422 determines whether the signature designated for the application file and the verified signature match.
  • the package manager 422 may confirm that the application file is integrity in response to that the signature verified for the application file matches the designated signature.
  • the electronic device 101 may complete booting of the electronic device 101 in operation 742 .
  • the APEX manager 421 may complete booting of the electronic device 101 in response to completing a recovery routine for the APEX.
  • the APEX manager 421 may notify occurrence of an APEX problem and/or completion of restoration in response to checking a property indicating that a recovery routine for APEX is to be performed.
  • the APEX manager 421 may display information for notifying the occurrence of an APEX problem and/or completion of repair on a display (eg, the display module 160 of FIG. 1 ).
  • the APEX manager 421 may display information for notifying the occurrence of an APEX problem and/or completion of repair in the form of a nofitification and/or a popup window.
  • the electronic device 101 includes a memory 130 and a processor 120 that store a file 300 in which a file 350 in which at least one module 360 is packaged is compressed, and The processor 120 decompresses the compressed file 300 to generate an uncompressed file 350, stores the generated uncompressed file 350 in the memory 130, and the electronic device 101 ) is booted, it is checked whether deformation has occurred in the uncompressed file 350, and in response to the deformation occurring in the uncompressed file 350, a recovery operation for the uncompressed file 350 is performed. can be done
  • the processor 120 deletes the uncompressed file 350 in which the transformation occurs, decompresses the compressed file 300 stored in the memory 130, and
  • the recovery operation may be performed by regenerating the compressed file 350 and mounting the at least one module 360 based on the regenerated non-compressed file 350 .
  • the processor 120 in response to performing the recovery operation, may store a designated value in a designated area of the memory 130 to inform that the recovery operation is being performed. .
  • the processor 120 determines whether a hash value specified for the uncompressed file 350 and a hash value generated for the uncompressed file 350 match. and, in response to the fact that the hash values do not match, it is confirmed that deformation occurs in the uncompressed file 350, a panic message is stored in a designated node in response to the check result, and the stored panic message is stored. Corresponding to confirmation, it can be confirmed that deformation occurs in the uncompressed file 350.
  • the processor 120 mounts the at least one module 360 included in the uncompressed file 350, and the mounted module 360 is designated as Based on the signature check to determine whether the signature matches the signature of the mounted module 360, it is checked whether modification has occurred in the uncompressed file 350, and in response to the signature inconsistency, the non-compressed file 350 is checked. It can be confirmed that deformation occurs in the compressed file 350.
  • the processor 120 stores a specified value in a specified area of the memory 130 in response to confirming that deformation occurs in the uncompressed file 350. By doing so, information related to the uncompressed file 350 having the deformation may be notified.
  • the processor 120 may reboot the electronic device 101 before restoring the uncompressed file 350 .
  • the processor 120 may perform a recovery operation on the uncompressed file 350 without rebooting the electronic device 101 .
  • the processor 120 unmounts the at least one mounted module 360 in response to confirming that deformation occurs in the uncompressed file 350, and , the modified uncompressed file 350 including the at least one unmounted module 360 may be deleted.
  • the processor 120 may display information indicating completion of restoration on the display 160 in response to completion of the recovery operation for the uncompressed file 350. .
  • An operation method of the electronic device 101 includes an operation of generating an uncompressed file 350 by decompressing a file obtained by compressing a file in which at least one module 360 is packaged, and generating the generated non-compressed file 350.
  • An operation of storing the compressed file 350 in the memory 130, an operation of checking whether deformation has occurred in the uncompressed file 350 during booting of the electronic device 101, and an operation of the uncompressed file 350 ), an operation of performing a recovery operation on the uncompressed file 350 may be included.
  • the operation of performing the recovery operation on the uncompressed file 350 includes the operation of deleting the modified uncompressed file 350, the memory 130 An operation of regenerating an uncompressed file 350 by decompressing the compressed file 300 stored in ) and the recovery operation by mounting the at least one module 360 based on the regenerated uncompressed file 350 It may include an operation to perform.
  • the operating method of the electronic device 101 may include an operation of notifying that the recovery operation is performed by storing a designated value in a designated area of the memory 130 in response to performing the recovery operation. there is.
  • the operation of determining whether deformation has occurred in the uncompressed file 350 includes a hash value specified for the uncompressed file 350 and the uncompressed file 350. Operation of checking whether the hash values generated for 350 match, in response to the hash values not matching, confirming that deformation occurs in the uncompressed file 350, and responding to the check result It may include an operation of storing a panic message in a designated node and an operation of confirming that deformation occurs in the uncompressed file 350 in response to checking the stored panic message.
  • the operation of determining whether deformation has occurred in the uncompressed file 350 includes the at least one module 360 included in the uncompressed file 350. ), modification occurs in the uncompressed file 350 based on a signature check that checks whether the signature specified for the mounted module 360 and the signature of the mounted module 360 match. and an operation of confirming that modification occurs in the uncompressed file 350 in response to the inconsistency of the signatures.
  • a specified value is stored in a specified area of the memory 130 so that the deformation occurs. It may include an operation of notifying information related to the uncompressed file 350 that exists.
  • an operation of rebooting the electronic device 101 may be included before a recovery operation of the uncompressed file 350 .
  • an operation of performing a recovery operation on the uncompressed file 350 may be included without rebooting the electronic device 101 .
  • the operation of unmounting the at least one mounted module 360 and the An operation of deleting the modified uncompressed file 350 including at least one unmounted module 360 may be included.
  • an operation of displaying information notifying completion of restoration on the display 160 in response to completion of the recovery operation for the uncompressed file 350 may be included.
  • Electronic devices according to various embodiments disclosed in this document may be devices of various types.
  • the electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance.
  • An electronic device according to an embodiment of the present document is not limited to the aforementioned devices.
  • first, second, or first or secondary may simply be used to distinguish a given component from other corresponding components, and may be used to refer to a given component in another aspect (eg, importance or order) is not limited.
  • a (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.”
  • the certain component may be connected to the other component directly (eg by wire), wirelessly, or through a third component.
  • 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, for example, logic, logical blocks, parts, or circuits.
  • a module may be an integrally constructed component or a minimal unit of components or a portion thereof that performs one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • a storage medium eg, internal memory (#36) or external memory (#38)
  • a machine eg, electronic device (#01)
  • a machine eg, electronic device (#01)
  • It may be implemented as software (eg, program #40) including one or more instructions.
  • a processor eg, processor #20
  • a device eg, electronic device #01
  • the one or more instructions may include code generated by a compiler or code executable by an interpreter.
  • the device-readable storage medium may be provided in the form of a non-transitory storage medium.
  • the storage medium is a tangible device and does not contain a signal (e.g. electromagnetic wave), and this term refers to the case where data is stored semi-permanently in the storage medium. It does not discriminate when it is temporarily stored.
  • a signal e.g. electromagnetic wave
  • the method according to various embodiments disclosed in this document may be included and provided in a computer program product.
  • Computer program products may be traded between sellers and buyers as commodities.
  • a computer program product is distributed in the form of a device-readable storage medium (e.g. compact disc read only memory (CD-ROM)), or through an application store (e.g. Play StoreTM) or on two user devices (e.g. It can be distributed (eg downloaded or uploaded) online, directly between smart phones.
  • a device-readable storage medium e.g. compact disc read only memory (CD-ROM)
  • an application store e.g. Play StoreTM
  • two user devices e.g. It can be distributed (eg downloaded or uploaded) online, directly between smart phones.
  • at least part of the computer program product may be temporarily stored or temporarily created in a device-readable storage medium such as a manufacturer's server, an application store server, or a relay server's memory.
  • each component (eg, module or program) of the above-described components may include a single object or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. there is.
  • one or more components or operations among the aforementioned corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg modules or programs
  • the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by a corresponding component among the plurality of components prior to the integration. .
  • the actions performed by a module, program, or other component are executed sequentially, in parallel, iteratively, or heuristically, or one or more of the actions are executed in a different order, or omitted. or one or more other actions may be added.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

다양한 실시예에 따른 전자 장치에서, 전자 장치는 적어도 하나의 모듈을 패키지로 구성한 파일을 압축한 파일을 저장하는 메모리 및 프로세서를 포함하고, 상기 프로세서는 상기 압축 파일을 압축 해제하여 비압축 파일을 생성하고, 상기 생성한 비압축 파일을 상기 메모리에 저장하고, 상기 전자 장치를 부팅하는 중에, 상기 비압축 파일에 변형이 발생하였는지 여부를 확인하고, 상기 비압축 파일에 변형이 발생함에 대응하여, 상기 비압축 파일에 대한 복구 동작을 수행할 수 있다. 다양한 실시예에 따른 전자 장치의 동작 방법에서, 동작 방법은 적어도 하나의 모듈을 패키지로 구성한 파일을 압축한 파일을 압축 해제하여 비압축 파일을 생성하는 동작, 상기 생성한 비압축 파일을 메모리에 저장하는 동작, 상기 전자 장치를 부팅하는 중에, 상기 비압축 파일에 변형이 발생하였는지 여부를 확인하는 동작 및 상기 비압축 파일에 변형이 발생함에 대응하여, 상기 비압축 파일에 대한 복구 동작을 수행하는 동작을 포함할 수 있다. 이 밖에 다양한 실시예들이 가능하다.

Description

파일을 복구하기 위한 전자 장치 및 전자 장치의 동작 방법
본 문서에 개시된 다양한 실시예들은, 파일을 복구하기 위한 전자 장치 및 전자 장치의 동작 방법에 관한 것이다. 구체적으로, 프레임워크에 포함되는 적어도 하나의 모듈을 패키지로 구성한 파일을 복구하기 위한 전자 장치 및 전자 장치의 동작 방법에 관한 것이다.
APEX(Android Pony Express)는, 프레임워크에 포함되는 일부 모듈을 하나의 패키지 형태로 구성하여 사용하는 방식이다. 패키지로 구성된 하나의 APEX 파일은 “apex” 확장자를 갖는다. APEX에 포함되는 주요 파일들은 프레임워크의 주요 모듈들이 될 수 있는데, “executable”과 같은 실행 파일, “so”와 같은 네이티브 라이브러리, “jar”와 같은 자바 라이브러리, 그 외에 각종 데이터 파일을 포함할 수 있다.
APEX 방식을 사용하게 되면, 프레임워크의 주요 모듈들을 쉽게 업데이트할 수 있다. APEX를 업데이트 하는 방식은 어플리케이션(apk)을 업데이트 하는 방식에 대응될 수 있다. 업데이트의 구체적인 동작 과정에는 차이가 있지만, 프레임워크의 주요 모듈들을 스토어 앱(예 : play store)을 통해 업데이트 할 수 있다는 점이 APEX 방식의 주된 장점이자 목적일 수 있다.
CAPEX (압축된 APEX, compressed APEX)는 기존의 apex 파일을 한 번 더 압축하는 방식이다. apex 파일의 용량을 줄이기 위한 목적으로 도입되었다.
APEXD는 apex 파일에 대한 네이티브 프로세스로, APEX 파일의 인증, 설치, 설치 제거를 담당할 수 있다. APEXD는 CAPEX를 압축 해제하여 APEX를 생성하고, APEX 내의 모듈들을 마운트할 수 있다.
원본 apex 파일은 read/write가 가능한 user data 영역에 저장될 수 있다. Read only 영역의 apex 파일과는 달리, user data 영역은 파일 깨짐 현상이 발생할 수 있다. APEXD는 apex 파일에 대한 파일 깨짐을 확인하기 위하여, 'dm-verity' 로직을 사용할 수 있다. 'dm-verity'는 커널이 user data 영역에 저장된 파일의 무결성 및 정합성을 확인하기 위하여 수행하는 로직일 수 있다.
한편, PKMS(PackageManagerService) 모듈은, 설치된 어플리케이션(apk)에 대한 관리를 수행하는 프레임워크의 서비스 모듈일 수 있다. PKMS 모듈은, apk의 정상 동작을 확인하기 위하여, 프레임워크 초기화 과정에서 단말에 저장되어 있는 apk 파일들을 모두 스캐닝하면서 apk 파일의 서명(signature)에 대한 검사를 수행할 수 있다. 예를 들어, PKMS 모듈은 기존에 확인한 시그니쳐 값과 apk 파일에서 추출한 시그니쳐가 일치하는지 여부를 확인할 수 있다. Apex 모듈 내에 존재하는 apk 파일(이하 apks-in-apex)에 대하여 정상 동작을 확인하기 위하여, PKMS는 마운트된 apex 모듈에 포함된 apk 파일의 시그니쳐에 대한 검사를 수행할 수 있다.
APEXD가 capex 파일로부터 압축을 해제한 원본 apex 파일(decompressed apex)에 변형(corruption)이 발생한 경우, 커널의 'dm-verity' 로직에 의해 패닉(dmv corrupt)이 발생할 수 있다. 원본 apex 파일에 변형이 발생한 경우, 'dmv-corrupt'로 인한 패닉이 반복되고, 해당 단말은 부팅이 되지 않아 사용이 불가능해질 수 있다.
한편, PKMS는 apks-in-apex 파일을 스캐닝하여 서명 검사를 수행할 수 있다. PKMS는 기존에 확인한 서명 값과 apks-in-apex 파일에서 추출한 서명이 상이함에 대응하여, 익셉션(exception)을 발생시키고, 플랫폼 재시작(platform restart)을 수행할 수 있다. apks-in-apex 파일의 시그니쳐가 손상된 상태인 경우, 익셉션(exception)에 의해 플랫폼 재시작(platform restart)이 반복되고, 해당 단말은 부팅이 되지 않아 사용이 불가능해질 수 있다.
본 문서에 개시된 다양한 실시예는 apex 파일에 변형이 발생한 경우, 변형 발생을 확인하고, 변형된 apex 파일에 대하여 복구 동작을 수행하는 전자 장치를 제공할 수 있다.
예를 들어, 다양한 실시예의 전자 장치는 apex 파일에 커널 패닉이 발생한 경우, 커널이 지정된 노드에 저장한 패닉 메시지를 확인하여 apex 파일을 복구할 수 있다.
예를 들어, 다양한 실시예의 전자 장치는 apex 파일에 대하여 PKMS의 서명 검사가 불일치한 경우, 해당 apex 파일을 복구할 수 있다.
예를 들어, 다양한 실시예에 따른 전자 장치는, 변형이 발생한 apex에 대하여 압축 해제된 원본 apex 파일을 삭제하고, 압축된 apex 파일을 다시 압축 해제하여 apex 파일을 복구할 수 있다.
본 문서에서 이루고자 하는 기술적 과제는 이상에서 언급한 기술적 과제로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.
본 문서에 개시된 다양한 실시예에 따른 전자 장치는, 적어도 하나의 모듈을 패키지로 구성한 파일을 압축한 파일을 저장하는 메모리 및 프로세서를 포함하고, 상기 프로세서는 상기 압축 파일을 압축 해제하여 비압축 파일을 생성하고, 상기 생성한 비압축 파일을 상기 메모리에 저장하고, 상기 전자 장치를 부팅하는 중에, 상기 비압축 파일에 변형이 발생하였는지 여부를 확인하고, 상기 비압축 파일에 변형이 발생함에 대응하여, 상기 비압축 파일에 대한 복구 동작을 수행할 수 있다.
본 문서에 개시된 다양한 실시예에 따른 전자 장치의 동작 방법은, 적어도 하나의 모듈을 패키지로 구성한 파일을 압축한 파일을 압축 해제하여 비압축 파일을 생성하는 동작, 상기 생성한 비압축 파일을 메모리에 저장하는 동작, 상기 전자 장치를 부팅하는 중에, 상기 비압축 파일에 변형이 발생하였는지 여부를 확인하는 동작 및 상기 비압축 파일에 변형이 발생함에 대응하여, 상기 비압축 파일에 대한 복구 동작을 수행하는 동작을 포함할 수 있다.
다양한 실시예에 따르면, 전자 장치는 문제가 발생한 apex 파일을 확인할 수 있다.
다양한 실시예에 따르면, 전자 장치는 문제가 발생한 apex 파일을 복구할 수 있다.
다양한 실시예예 따르면, 전자 장치는 apex 파일에 문제가 발생하였더라도 이를 복구하여 커널 패닉 상태로 전환되지 않고 정상적으로 부팅할 수 있다.
다양한 실시예에 따르면, 전자 장치는 apex 파일에 문제가 발생하였더라도 이를 복구하여 플랫폼 재시작 상태로 전환되지 않고 정상적으로 부팅할 수 있다.
도면의 설명과 관련하여, 동일 또는 유사한 구성 요소에 대해서는 동일 또는 유사한 참조 부호가 사용될 수 있다.
도 1은, 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블럭도이다.
도 2은 다양한 실시예에 따른 프로그램을 예시하는 블록도이다.
도 3은, 다양한 실시예에 따른 압축 APEX 파일의 형식을 도시한 도면이다.
도 4는, 다양한 실시예에 따른 전자 장치의 운영 체제의 구성을 도시한 도면이다.
도 5a는, 다양한 실시예에 따른 APEX 매니저가 APEX 파일에 대하여 복구 루틴을 수행하는 방법을 도시한 흐름도이다.
도 5b는, 다양한 실시예에 따른 APEX 매니저가 APEX 파일을 복구하는 방법을 도시한 흐름도이다.
도 6a는, 다양한 실시예에 따른 APEX 매니저가 APEX 파일에 대하여 복구 루틴을 수행하는 방법을 도시한 흐름도이다.
도 6b는, 다양한 실시예에 따라, 변형된 APEX 파일에 대한 전자 장치의 동작을 도시한 흐름도이다.
도 7a는, 양한 실시예에 따른 패키지 매니저 및 APEX 매니저가 APEX 파일에 대하여 복구 루틴을 수행하는 방법을 도시한 흐름도이다.
도 7b는, 다양한 실시예에 따라, 변형된 APEX 파일에 대한 전자 장치의 동작을 도시한 흐름도이다.
도 7c는, 다양한 실시예에 따라, 변형된 APEX 파일에 대한 전자 장치의 동작을 도시한 흐름도이다.
도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(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) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다.
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다.
입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.
음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.
디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.
인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.
배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.
통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다.
무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.
다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.
일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.\
도 2은 다양한 실시예에 따른 프로그램(140)을 예시하는 블록도(200)이다. 일실시예에 따르면, 프로그램(140)은 전자 장치(101)의 하나 이상의 리소스들을 제어하기 위한 운영 체제(142), 미들웨어(144), 또는 상기 운영 체제(142)에서 실행 가능한 어플리케이션(146)을 포함할 수 있다. 운영 체제(142)는, 예를 들면, AndroidTM, iOSTM, WindowsTM, SymbianTM, TizenTM, 또는 BadaTM를 포함할 수 있다. 프로그램(140) 중 적어도 일부 프로그램은, 예를 들면, 제조 시에 전자 장치(101)에 프리로드되거나, 또는 사용자에 의해 사용 시 외부 전자 장치(예: 전자 장치(102 또는 104), 또는 서버(108))로부터 다운로드되거나 갱신 될 수 있다.
운영 체제(142)는 전자 장치(101)의 하나 이상의 시스템 리소스들(예: 프로세스, 메모리, 또는 전원)의 관리(예: 할당 또는 회수)를 제어할 수 있다. 운영 체제(142)는, 추가적으로 또는 대체적으로, 전자 장치(101)의 다른 하드웨어 디바이스, 예를 들면, 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 구동하기 위한 하나 이상의 드라이버 프로그램들을 포함할 수 있다.
미들웨어(144)는 전자 장치(101)의 하나 이상의 리소스들로부터 제공되는 기능 또는 정보가 어플리케이션(146)에 의해 사용될 수 있도록 다양한 기능들을 어플리케이션(146)으로 제공할 수 있다. 미들웨어(144)는, 예를 들면, 어플리케이션 매니저(201), 윈도우 매니저(203), 멀티미디어 매니저(205), 리소스 매니저(207), 파워 매니저(209), 데이터베이스 매니저(211), 패키지 매니저(213), 커넥티비티 매니저(215), 노티피케이션 매니저(217), 로케이션 매니저(219), 그래픽 매니저(221), 시큐리티 매니저(223), 통화 매니저(225), 또는 음성 인식 매니저(227)를 포함할 수 있다.
어플리케이션 매니저(201)는, 예를 들면, 어플리케이션(146)의 생명 주기를 관리할 수 있다. 윈도우 매니저(203)는, 예를 들면, 화면에서 사용되는 하나 이상의 GUI 자원들을 관리할 수 있다. 멀티미디어 매니저(205)는, 예를 들면, 미디어 파일들의 재생에 필요한 하나 이상의 포맷들을 파악하고, 그 중 선택된 해당하는 포맷에 맞는 코덱을 이용하여 상기 미디어 파일들 중 해당하는 미디어 파일의 인코딩 또는 디코딩을 수행할 수 있다. 리소스 매니저(207)는, 예를 들면, 어플리케이션(146)의 소스 코드 또는 메모리(130)의 메모리의 공간을 관리할 수 있다. 파워 매니저(209)는, 예를 들면, 배터리(189)의 용량, 온도 또는 전원을 관리하고, 이 중 해당 정보를 이용하여 전자 장치(101)의 동작에 필요한 관련 정보를 결정 또는 제공할 수 있다. 일실시예에 따르면, 파워 매니저(209)는 전자 장치(101)의 바이오스(BIOS: basic input/output system)(미도시)와 연동할 수 있다.
데이터베이스 매니저(211)는, 예를 들면, 어플리케이션(146)에 의해 사용될 데이터베이스를 생성, 검색, 또는 변경할 수 있다. 패키지 매니저(213)는, 예를 들면, 패키지 파일의 형태로 배포되는 어플리케이션의 설치 또는 갱신을 관리할 수 있다. 커넥티비티 매니저(215)는, 예를 들면, 전자 장치(101)와 외부 전자 장치 간의 무선 연결 또는 직접 연결을 관리할 수 있다. 노티피케이션 매니저(217)는, 예를 들면, 지정된 이벤트(예: 착신 통화, 메시지, 또는 알람)의 발생을 사용자에게 알리기 위한 기능을 제공할 수 있다. 로케이션 매니저(219)는, 예를 들면, 전자 장치(101)의 위치 정보를 관리할 수 있다. 그래픽 매니저(221)는, 예를 들면, 사용자에게 제공될 하나 이상의 그래픽 효과들 또는 이와 관련된 사용자 인터페이스를 관리할 수 있다.
시큐리티 매니저(223)는, 예를 들면, 시스템 보안 또는 사용자 인증을 제공할 수 있다. 통화(telephony) 매니저(225)는, 예를 들면, 전자 장치(101)에 의해 제공되는 음성 통화 기능 또는 영상 통화 기능을 관리할 수 있다. 음성 인식 매니저(227)는, 예를 들면, 사용자의 음성 데이터를 서버(108)로 전송하고, 그 음성 데이터에 적어도 일부 기반하여 전자 장치(101)에서 수행될 기능에 대응하는 명령어(command), 또는 그 음성 데이터에 적어도 일부 기반하여 변환된 문자 데이터를 서버(108)로부터 수신할 수 있다. 일 실시예에 따르면, 미들웨어(244)는 동적으로 기존의 구성요소를 일부 삭제하거나 새로운 구성요소들을 추가할 수 있다. 일 실시예에 따르면, 미들웨어(144)의 적어도 일부는 운영 체제(142)의 일부로 포함되거나, 또는 운영 체제(142)와는 다른 별도의 소프트웨어로 구현될 수 있다.
어플리케이션(146)은, 예를 들면, 홈(251), 다이얼러(253), SMS/MMS(255), IM(instant message)(257), 브라우저(259), 카메라(261), 알람(263), 컨택트(265), 음성 인식(267), 이메일(269), 달력(271), 미디어 플레이어(273), 앨범(275), 와치(277), 헬스(279)(예: 운동량 또는 혈당과 같은 생체 정보를 측정), 또는 환경 정보(281)(예: 기압, 습도, 또는 온도 정보 측정) 어플리케이션을 포함할 수 있다. 일실시예에 따르면, 어플리케이션(146)은 전자 장치(101)와 외부 전자 장치 사이의 정보 교환을 지원할 수 있는 정보 교환 어플리케이션(미도시)을 더 포함할 수 있다. 정보 교환 어플리케이션은, 예를 들면, 외부 전자 장치로 지정된 정보 (예: 통화, 메시지, 또는 알람)를 전달하도록 설정된 노티피케이션 릴레이 어플리케이션, 또는 외부 전자 장치를 관리하도록 설정된 장치 관리 어플리케이션을 포함할 수 있다. 노티피케이션 릴레이 어플리케이션은, 예를 들면, 전자 장치(101)의 다른 어플리케이션(예: 이메일 어플리케이션(269))에서 발생된 지정된 이벤트(예: 메일 수신)에 대응하는 알림 정보를 외부 전자 장치로 전달할 수 있다. 추가적으로 또는 대체적으로, 노티피케이션 릴레이 어플리케이션은 외부 전자 장치로부터 알림 정보를 수신하여 전자 장치(101)의 사용자에게 제공할 수 있다.
장치 관리 어플리케이션은, 예를 들면, 전자 장치(101)와 통신하는 외부 전자 장치 또는 그 일부 구성 요소(예: 외부 전자장치의 디스플레이 모듈 또는 카메라 모듈)의 전원(예: 턴-온 또는 턴-오프) 또는 기능(예: 밝기, 해상도, 또는 포커스)을 제어할 수 있다. 장치 관리 어플리케이션은, 추가적으로 또는 대체적으로, 외부 전자 장치에서 동작하는 어플리케이션의 설치, 삭제, 또는 갱신을 지원할 수 있다.
도 3은, 다양한 실시예에 따른 압축 APEX(300) 파일의 형식을 도시한 도면이다.
도 3을 참조하면, 압축 APEX(300)는 압축 메타 데이터, 비압축 APEX(350)를 포함할 수 있다. 비압축 APEX(350)는 원본 메타 데이터 및 제 1 파일(361) 및/또는 제 2 파일(362)을 포함하는 APEX 모듈(360)을 포함할 수 있다. 도 3에 포함된 구성 요소는 압축 APEX(300)에 포함된 구성들의 일부에 대한 것이며 압축 APEX(300)는 이 밖에도 다양한 구성요소를 포함할 수 있다.
다양항 실시예에 따르면, 비압축 APEX(350)는, 압축되지 않은 원본 APEX 파일일수 있다. 비압축 APEX(350)는 프레임 워크에 포함되는 일부 모듈을 하나의 패키지 형태로 구성한 집 파일(zip file)일 수 있다.
일 실시예에 따르면, 비압축 APEX(350)는 원본 apex 파일 및/또는 비압축 APEX(350) 파일(예 : original apex 및/또는 decompressed apex)에 대응될 수 있다.
일 실시예예 따르면, 비압축 APEX(350)는 APEX 모듈(360)을 포함할 수 있다. APEX 모듈(360)은 일반 파일인 제 1 파일(361) 및/또는 제 2 파일(362)을 포함하는 파일 시스템일 수 있다. 예를 들어, APEX 모듈(360)(350)은 "executable"과 같은 실행 파일, "so"와 같은 네이티브 라이브러리, "jar"와 같은 자바 라이브러리와 같은 데이터 파일을 포함할 수 있다.
일 실시예예 따르면, 비압축 APEX(350)는 APEX 메타 데이터(351)를 포함할 수 있다. APEX 메타 데이터(351)는 APEX 파일을 알려주는 패키지 이름, 버전 및/또는 파일 시스템에 사용되는 공개 키와 같은 APEX와 관련된 데이터를 포함할 수 있다.
일 실시예예 따르면, 비압축 APEX(350)는 메모리(130)에서 지정된 위치(예 : 읽기/쓰기가 가능한 사용자 데이터 영역, /data/apex/decompressed)에 저장될 수 있다.
일 실시예예 따르면, APEX 매니저(421)는 비압축 APEX(350)를 지정된 위치에 마운트하여 APEX 모듈(360)을 활성화할 수 있다. 지정된 위치(예 : /data/apex/active)에 마운트된 APEX 모듈(360)은 사용자 프로세스(user process, 예 : 어플리케이션)에 의하여 사용될 수 있다.
다양한 실시예에 따르면, 압축 APEX(300)는 비압축 APEX(350)를 압축한 파일일 수 있다.
일 실시예에 따르면, 압축 APEX(300)는 capex 파일(예 : compressed apex)에 대응될 수 있다.
일 실시예에 따르면, 압축 APEX(300)는 압축 메타 데이터(301)를 포함할 수 있다. 압축 메타 데이터(301)는 APEX 파일을 알려주는 패키지 이름, 버전 및/또는 파일 시스템에 사용되는 공개 키와 같은 APEX와 관련된 데이터를 포함할 수 있다.
일 실시예에 따르면, 압축 APEX(300)는 비압축 APEX(350)를 포함할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는 압축 APEX(300)를 압축 해제하여 비압축 APEX(350)를 생성하고, 생성된 비압축 APEX(350)를 메모리(130)의 지정된 위치(예 : 읽기/쓰기가 가능한 사용자 데이터 영역, /data/apex/decompressed)에 저장할 수 있다.
일 실시예에 따르면, 압축 APEX(300)는 메모리(130)의 지정된 위치(예: 읽기 전용 영역, /system)에 위치할 수 있다.
도 4는, 다양한 실시예에 따른 전자 장치(101)의 운영 체제(400)의 구성을 도시한 도면이다.
다양한 실시예에 따르면, 전자 장치(101)의 운영 체제(400)는 프로세서(예 : 도 1의 프로세서(120))에 구현될 수 있다.
다양한 실시예에 따르면, 전자 장치(101)의 운영 체제(400)는 어플리케이션(430), 프레임워크(420) 및/또는 커널(410)을 포함할 수 있다.
다양한 실시예에 따르면, 커널(410)은 전자 장치(101)(100)의 운영 체제에서 최하위 레이어로, 전자 장치(101)(100)의 시스템을 관리할 수 있다.
일 실시예에 따르면, 커널(410)은 사용자 데이터 영역에 저장된 파일의 무결성 및 정합성을 확인하기 위하여 무결성 검사(예 : dm-verity(device-mapper-verity))를 수행할 수 있다. 예를 들어, 무결성 검사는 내부적으로 생성된 해시 트리에서, 이전에 로딩된 해시 값을 저장하고, 새로이 파일 로딩 시 생성되는 해시 값을 비교하여 일치 여부를 확인하는 방식일 수 있다. 예를 들어, 파일에 변형이 있음에 따라 무결성 검사에서 해시값이 불일치함에 대응하여, 커널(410)은 커널 패닉을 발생시킬 수 있다.
예를 들어, 커널(410)은 비압축 APEX(350)에 변형이 발생함에 대응하여, 비압축 APEX(350)에 대한 무결성 검사에서 커널 패닉(dmv corrupt)을 발생시키고, 메모리(130)의 지정된 노드(예 : /proc/extra 노드)에 패닉 메시지를 저장할 수 있다.
다양한 실시예에 따르면, 프레임워크(420)는 전자 장치(101)(100)의 운영 체제에서 커널(410)의 상위 레이어 및 어플리케이션(430)의 하위 레이어로, 전자 장치(101)(100)의 운영 체제를 위한 표준 구조를 구현할 수 있다.
일 실시예에 따르면, 프레임워크(420)는 APEX 매니저(421) 및 패키지 매니저(422)를 포함할 수 있다.
다양한 실시예에 따르면, APEX 매니저(421)는 APEX 파일의 인증, 설치, 설치 제거를 담당하는 독립형 네이티브 프로세스(native process)일 수 있다.
일 실시예에 따르면, APEX 매니저(421)는 압축 APEX(300) 및/또는 비압축 APEX(350)를 관리할 수 있다.
APEX 매니저(421)는 압축 APEX(300)를 압축 해제하여 비압축 APEX(350)를 생성하고, 생성된 비압축 APEX(350)를 메모리(130)의 지정된 위치(예 : 읽기/쓰기가 가능한 사용자 데이터 영역, /data/apex/decompressed)에 저장할 수 있다.
일 실시예예 따르면, APEX 매니저(421)는 비압축 APEX(350)를 지정된 위치에 마운트하여 APEX 모듈(360)을 활성화할 수 있다. 예를 들어, APEX 매니저(421)는 비압축 APEX(350)를 읽어유효성을 판단하고, 유효하다고 판단된 비압축 APEX(350)를 지정된 위치에 마운트할 수 있다. 지정된 위치(예 : /data/apex/active)에 마운트된 APEX 모듈(360)은 사용자 프로세스(user process, 예 : 어플리케이션(430))에 의하여 사용될 수 있다.
다양한 실시예에 따르면, 패키지 매니저(422)는 전자 장치(101)에 설치된 어플리케이션에 대한 관리 동작을 수행하는 프레임워크(420)의 서비스 모듈일 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 프레임워크 초기화 과정에서 전자 장치(101)에 저장되어 있는 어플리케이션 파일(예 : apk 파일)들을 스캐닝하고, 어플리케이션 파일의 서명에 대한 검사를 수행할 수 있다. 예를 들어, 패키지 매니저(422)는 APEX 모듈(360)에 포함된 어플리케이션 파일에 대하여 서명 검사를 수행할 수 있다.
서명 검사는, 패키지 매니저(422)가 어플리케이션 파일에 대하여 지정된 서명과, 확인한 서명이 일치하는지 여부를 판단하는 검사일 수 있다. 패키지 매니저(422)는 어플리케이션 파일에 대하여 확인된 서명이 지정된 서명과 일치하는 경우 어플리케이션 파일이 무결성이고, 불일치하는 경우 어플리케이션 파일에 손상이 발생함을 확인할 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 서명 검사에서 어플리케이션 파일에 손상이 발생하였다고 판단함에 대응하여, 예외 상황(exception)으로 판단하고, 플랫폼 재시작을 수행할 수 있다.
다양한 실시예에 따르면, 메모리(130)는 압축 APEX(300), 비압축 APEX(350) 및/또는 APEX 모듈(360)을 저장할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는 압축 APEX(300)를 압축 해제 하여 비압축 APEX(350)를 생성할 수 있다. 비압축 APEX(350)는 메모리(130)에서 지정된 위치(예 : 읽기/쓰기가 가능한 사용자 데이터 영역, /data/apex/decompressed)에 저장될 수 있다.
일 실시예에 따르면, APEX 매니저(421)는 비압축 APEX(350)를 압축하여 압축 APEX(300)를 생성할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는 비압축 APEX(350)에서 마운트하여 APEX 모듈(360)을 생성할 수 있다. APEX 매니저(421)는 비압축 APEX(350)를 지정된 위치에 마운트하여 APEX 모듈(360)을 활성화할 수 있다. 지정된 위치(예 : /data/apex/active)에 마운트된 APEX 모듈(360)은 사용자 프로세스(user process, 예 : 어플리케이션)에 의하여 사용될 수 있다.
일 실시예에 따르면, APEX 매니저(421)는 APEX 모듈(360)을 언마운트하여 비압축 APEX(350)를 생성할 수 있다.
도 5a는, 다양한 실시예에 따른 APEX 매니저(421)가 APEX 파일에 대하여 복구 루틴을 수행하는 방법을 도시한 흐름도이다.
다양한 실시예에 따르면, APEX 매니저(421)는, 동작 510에서, APEX 복구 필요 여부를 확인할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 지정된 노드에 패닉 메시지를 확인함에 대응하여, APEX 복구 필요 여부를 확인할 수 있다. 예를 들어, 커널(410)은 비압축 APEX(350)에 변형이 발생함에 대응하여, 무결성 검사에 의해 커널 패닉(dmv corrupt)을 발생시키고, 메모리(130)의 지정된 노드(예 : /proc/extra 노드)에 패닉 메시지를 저장할 수 있다. APEX 매니저(421)는 지정된 노드에 저장된 패닉 메시지를 확인하여 커널 패닉 여부를 확인할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 패키지 관라지가 설정한 프로퍼티(property)를 확인함에 대응하여, APEX 복구 필요 여부를 확인할 수 있다. 예를 들어, 패키지 매니저(422)는, APEX 매니저(421)에게 복구할 APEX 모듈(360)을 알려주기 위한 프로퍼티(property)를 설정할 수 있다. 예를 들어, 프로퍼티(property) 설정은, APEX 매니저(421)가 메모리(예 : 도 1의 메모리(130))의 지정된 영역에 지정된 값을 저장하는 방식일 수 있다.
다양한 실시예에 따르면, APEX 매니저(421)는, 동작 520에서, APEX 복구 루틴을 수행할 수 있다.
APEX 매니저(421)가 APEX 복구 루틴을 수행하는 구체적인 동작은 이하 도 5b와 관련된 설명에서 후술한다.
다양한 실시예에 따르면, APEX 매니저(421)는, 동작 530에서, APEX 문제 발생 및/또는 복구 완료를 알릴 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, APEX에 대한 복구 루틴을 수행함을 표시한 프로퍼티(property)를 확인함에 대응하여, APEX 문제 발생 및/또는 복구 완료를 알릴 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 디스플레이(예 : 도 1의 디스플레이 모듈(160))에 APEX 문제 발생 및/또는 복구 완료를 알릴 수 있는 정보를 표시할 수 있다. 예를 들어, APEX 매니저(421)는, 노티(nofitification) 및/또는 팝업 윈도우(popup window) 방식으로 APEX 문제 발생 및/또는 복구 완료를 알릴 수 있는 정보를 표시할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 복구한 비압축 APEX(350)가 지정된 유형의 비압축 APEX(350)임에 대응하여, 지정된 비압축 APEX(350)이 복구되었음을 알릴 수 있는 정보를 표시할 수 있다.
도 5b는, 다양한 실시예에 따른 APEX 매니저(421)가 APEX 파일을 복구하는 방법을 도시한 흐름도이다.
도 5b에 도시된 흐름도는, 도 5a의 동작 520의 구체적인 실시예일 수 있다.
다양한 실시예에 따르면, APEX 매니저(421)는, 동작 521에서, 변형된 비압축 APEX(350) 파일을 삭제할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는 동작 510에서 APEX 복구 필요 여부를 확인함에 대응하여, 변형된 비압축 APEX(350) 파일을 삭제할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 지정된 노드에 패닉 메시지를 확인함에 대응하여, 패닉 메시지에 대응하는 변형된 APEX 파일을 삭제할 수 있다. 예를 들어, 커널(410)은 비압축 APEX(350)에 변형이 발생함에 대응하여, 무결성 검사에 의해 커널 패닉(dmv corrupt)을 발생시키고, 메모리(130)의 지정된 노드(예 : /proc/extra 노드)에 패닉 메시지를 저장할 수 있다. APEX 매니저(421)는 지정된 노드에 저장된 패닉 메시지를 확인하여 커널 패닉 여부를 확인할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 패키지 관라지가 설정한 프로퍼티(property)를 확인함에 대응하여, 프로퍼티에 대응하는 변형된 APEX 파일을 삭제할 수 있다. 예를 들어, 패키지 매니저(422)는, APEX 매니저(421)에게 복구할 APEX 모듈(360)을 알려주기 위한 프로퍼티(property)를 설정할 수 있다. 예를 들어, 프로퍼티(property) 설정은, APEX 매니저(421)가 메모리(예 : 도 1의 메모리(130))의 지정된 영역에 지정된 값을 저장하는 방식일 수 있다.
다양한 실시예에 따르면, APEX 매니저(421)는, 동작 522에서, 복구 루틴 수행함을표시할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, APEX에 대한 복구 루틴을 수행함을 표시하기 위한 프로퍼티(property)를 설정할 수 있다. 예를 들어, 프로퍼티(property) 설정은, APEX 매니저(421)가 메모리(예 : 도 1의 메모리(130))의 지정된 영역에 지정된 값을 저장하는 방식일 수 있다.
다양한 실시예에 따르면, APEX 매니저(421)는, 동작 523에서, 압축 APEX(300)을 압축 해제하여 비압축 APEX(350)을 재생성하고 이를 저장할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 메모리(130)에 비압축 APEX(350) 파일이 존재하지 않음에 대응하여, 압축 APEX(300) 파일을 압축 해제 할 수 있다. 예를 들어, APEX 매니저(421)는 압축 APEX(300)를 압축 해제하여 비압축 APEX(350)를 생성하고, 생성된 비압축 APEX(350)를 메모리(130)의 지정된 위치(예 : 읽기/쓰기가 가능한 사용자 데이터 영역, /data/apex/decompressed)에 저장할 수 있다.
다양한 실시예에 따르면, APEX 매니저(421)는, 동작 524에서, 재생성된 비압축 APEX(350) 모듈을 마운트할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 재생성된 비압축 APEX(350) 에 포함된 APEX 모듈(360)을 지정된 경로에 마운트할 수 있다. 예를 들어, APEX 매니저(421)는 비압축 APEX(350)를 지정된 위치에 마운트하여 APEX 모듈(360)을 활성화할 수 있다. 지정된 위치(예 : /data/apex/active)에 마운트된 APEX 모듈(360)은 사용자 프로세스(user process, 예 : 어플리케이션)에 의하여 사용될 수 있다.
도 6a는, 다양한 실시예에 따른 APEX 매니저(421)가 APEX 파일에 대하여 복구 루틴을 수행하는 방법을 도시한 흐름도이다.
다양한 실시예에 따르면, APEX 매니저(421)는, 동작 610에서, 커널 패닉 여부를 확인할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 커널(410)이 지정된 노드에 저장한 패닉 메세지를 확인하여 커널 패닉 여부를 확인할 수 있다.
커널 패닉은, 커널(410)이 사용자 데이터 영역에 저장된 파일의 무결성 및 정합성을 확인하기 위하여 무결성 검사를 통해 자체 검사 부팅을 수행할 때, 파일에 변형이 있음에 대응하여 수행하는 동작일 수 있다. 예를 들어, 무결성 검사는 내부적으로 생성된 해시 트리에서, 이전에 로딩된 해시 값을 저장하고, 새로이 파일 로딩 시 생성되는 해시 값을 비교하여 일치 여부를 확인하는 방식일 수 있다.
예를 들어, 커널(410)은 비압축 APEX(350)에 변형이 발생함에 대응하여, 무결성 검사에 의해 커널 패닉(dmv corrupt)을 발생시키고, 메모리(130)의 지정된 노드(예 : /proc/extra 노드)에 패닉 메시지를 저장할 수 있다. APEX 매니저(421)는 지정된 노드에 저장된 패닉 메시지를 확인하여 커널 패닉 여부를 확인할 수 있다.
다양한 실시예에 따르면, APEX 매니저(421)는, 동작 620에서, 복구 루틴을 수행할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 동작 610에서, 커널 패닉 여부를 확인함에 대응하여, 도 5b의 동작 521 내지 동작 524에 따른 복구 루틴을 수행할 수 있다.
다양한 실시예에 따르면, APEX 매니저(421)는, 동작 630에서, APEX 문제 발생 및/또는 복구 루틴 수행 완료를 알릴 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, APEX에 대한 복구 루틴을 수행함을 표시한 프로퍼티(property)를 확인함에 대응하여, APEX 문제 발생 및/또는 복구 완료를 알릴 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 디스플레이(예 : 도 1의 디스플레이 모듈(160))에 APEX 문제 발생 및/또는 복구 완료를 알릴 수 있는 정보를 표시할 수 있다. 예를 들어, APEX 매니저(421)는, 노티(nofitification) 및/또는 팝업 윈도우(popup window) 방식으로 APEX 문제 발생 및/또는 복구 완료를 알릴 수 있는 정보를 표시할 수 있다.
도 6b는, 다양한 실시예에 따라, 변형된 APEX 파일에 대한 전자 장치(101)의 동작을 도시한 흐름도이다.
도 6b에 도시된 흐름도에서, A 루틴은 도 6a에 도시된 APEX 파일에 대한 복구 루틴을 수행하지 않는 경우의 루틴, B 루틴은 도 6a에 도시된 APEX 파일에 대한 복구 루틴을 수행하는 경우에 추가되는 루틴일 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 601에서, 전자 장치(101)를 부팅할 수 있다.
일 실시예에 따르면, 전자 장치(101)가 부팅되는 동안, APEX 매니저(421)는 압축 APEX(300)를 압축 해제하여 비압축 APEX(350)를 생성하고, 생성된 비압축 APEX(350)를 메모리(130)의 지정된 위치(예 : 읽기/쓰기가 가능한 사용자 데이터 영역, /data/apex/decompressed)에 저장할 수 있다.
일 실시예에 따르면, 비압축 APEX(350)는 압축 APEX(300)를 해제하는 과정에서 문제가 발생하여 변형(corruption)이 일어난 상태일 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 602에서, 비압축 APEX(350)를 마운트할 수 있다.
일 실시예예 따르면, APEX 매니저(421)는 비압축 APEX(350)를 지정된 위치에 마운트하여 APEX 모듈(360)을 활성화할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 603에서, 사용자 프로세스(예 :어플리케이션)이 APEX 모듈(360)에 접근할 수 있다.
일 실시예에 따르면, 사용자 프로세스는 지정된 위치(예 : /data/apex/active)에 마운트된 APEX 모듈(360)에 접근하여 APEX 모듈(360)을 읽어오기 위한 동작을 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 604에서, 커널 패닉 상태에 진입할 수 있다.
일 실시예에 따르면, 커널(410)은 비압축 APEX(350) 및/또는 APEX 모듈(360)의 무결성 및 정합성을 확인하기 위하여 무결성 검사(예 : dm-verity(device-mapper-verity))를 수행할 수 있다. 예를 들어, 무결성 검사는 내부적으로 생성된 해시 트리에서, 이전에 로딩된 해시 값을 저장하고, 새로이 파일 로딩 시 생성되는 해시 값을 비교하여 일치 여부를 확인하는 방식일 수 있다. 예를 들어, 파일에 변형이 있음에 따라 무결성 검사에서 해시값이 불일치함에 대응하여, 커널(410)은 커널 패닉을 발생시킬 수 있다.
예를 들어, 커널(410)은 비압축 APEX(350) 및/또는 APEX 모듈(360)에 변형이 발생함에 대응하여, 비압축 APEX(350) 및/또는 APEX 모듈(360)에 대한 무결성 검사에서 커널 패닉(dmv corrupt)을 발생시킬 수 있다. 커널(410)은 메모리(130)의 지정된 노드(예 : /proc/extra 노드)에 패닉 메시지를 저장할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는 동작 604 수행 후, 동작 601을 다시 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는 B 루틴을 수행하지 않는 경우, 동작 601 수행 후 동작 602를 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는 B 루틴을 수행하는 경우, 동작 601 수행 후 동작 621를 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 621에서, 복구 루틴을 수행할 수 있다.
예를 들어, APEX 매니저(421)는 지정된 노드에 저장된 패닉 메시지를 확인하여 커널 패닉 여부를 확인할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 동작 610에서, 커널 패닉 여부를 확인함에 대응하여, 도 5b의 동작 521 내지 동작 524에 따른 복구 루틴을 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 603에서, 사용자 프로세스(예 :어플리케이션)이 APEX 모듈(360)에 접근할 수 있다.
일 실시예에 따르면, 전자 장치(101)는, APEX 복구가 완료됨에 대응하여, 지정된 위치(예 : /data/apex/active)에 마운트된 APEX 모듈(360)은 사용자 프로세스에 의하여 사용될 수 있다.
다양한 실시예예 따르면, 전자 장치(101)는, 동작 622에서, 전자 장치(101)의 부팅을 완료할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, APEX에 대한 복구 루틴을 완료함에 대응하여 전자 장치(101)의 부팅을 완료할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, APEX에 대한 복구 루틴을 수행함을 표시한 프로퍼티(property)를 확인함에 대응하여, APEX 문제 발생 및/또는 복구 완료를 알릴 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 디스플레이(예 : 도 1의 디스플레이 모듈(160))에 APEX 문제 발생 및/또는 복구 완료를 알릴 수 있는 정보를 표시할 수 있다. 예를 들어, APEX 매니저(421)는, 노티(nofitification) 및/또는 팝업 윈도우(popup window) 방식으로 APEX 문제 발생 및/또는 복구 완료를 알릴 수 있는 정보를 표시할 수 있다.
도 7a는, 양한 실시예에 따른 패키지 매니저(422) 및 APEX 매니저(421)가 APEX 파일에 대하여 복구 루틴을 수행하는 방법을 도시한 흐름도이다.
다양한 실시예에 따르면, 패키지 매니저(422)는, 동작 710에서, APEX 모듈(360)을 스캐닝하여 서명 검사를 수행할 수 있다.
일 실시예예 따르면, APEX 매니저(421)는 비압축 APEX(350)에 포함된 APEX 모듈(360) 내의 파일을 지정된 위치에 마운트할 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 APEX 매니저(421)가 마운트한 APEX 모듈(360)을에 스캐닝하여, APEX 모듈(360)에 포함된 어플리케이션 파일(예 : 제 1 파일(361) 및/또는 제 2 파일(362))에 대하여 서명 검사를 수행할 수 있다. 서명 검사는, 패키지 매니저(422)가 어플리케이션 파일에 대하여 지정된 서명과, 확인한 서명이 일치하는지 여부를 판단하는 검사일 수 있다. 패키지 매니저(422)는 어플리케이션 파일에 대하여 확인된 서명이 지정된 서명과 일치하는 경우 어플리케이션 파일이 무결성이고, 불일치하는 경우 어플리케이션 파일에 손상이 발생함을 확인할 수 있다.
일 실시예예 따르면, 패키지 매니저(422)는, APEX 모듈(360)에 포함된 어플리케이션 파일(예 : 제 1 파일(361) 및/또는 제 2 파일(362))에 대하여 지정된 횟수 이상 서명 검사를 수행할 수 있고, 지정된 횟수 이상 서명이 불일치 함에 대응하여 어플리케이션 파일에 손상이 발생함을 확인할 수 있다.
다양한 실시예에 따르면, 패키지 매니저(422)는, 동작 720에서, APEX 매니저(421)에 복구할 APEX 모듈(360)을 알려주기 위한 표시를 할 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 서명 검사에서 APEX 모듈(360)에 손상이 발생하였다고 판단함에 대응하여, APEX 매니저(421)에게 복구할 APEX 모듈(360)을 알려주기 위한 표시를 할 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는, APEX 매니저(421)에게 복구할 APEX 모듈(360)을 알려주기 위한 프로퍼티(property)를 설정할 수 있다. 예를 들어, 프로퍼티(property) 설정은, APEX 매니저(421)가 메모리(예 : 도 1의 메모리(130))의 지정된 영역에 지정된 값을 저장하는 방식일 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 APEX 매니저(421)에게 모듈 및/또는 펑션(functioin) 간 데이터를 전달 및/또는 확인하는 다양한 방식(예 : 바인더 IPC(binder Inter Process Communication))에 의하여 복구할 APEX 모듈(360)과 관련된 정보를 전달할 수 있다.
다양한 실시예에 따르면, 패키지 매니저(422)는, 동작 730에서, 전자 장치(101)를 재부팅할 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는, 전자 장치(101)의 재부팅 동작을 수행할 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는, 동작 730에 따른 전자 장치(101) 재부팅 동작 없이 동작 740을 수행할 수 있다.
다양한 실시예에 따르면, APEX 매니저(421)는, 동작 740에서 마운트된 APEX 모듈(360)을 언마운트하고 APEX 복구 루틴을 수행할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 마운트된 APEX 모듈(360)을 언마운트(unmmount)할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 복구할 APEX 모듈(360)에 대응하는 언마운트된 비압축 APEX(350)를 삭제할 수 있다. 예를 들어, APEX 매니저(421)는, 패키지 매니저(422)가 설정한 프로퍼티(property)를 확인하여 복구할 APEX 모듈(360)에 대응하는 언마운트된 비압축 APEX(350)를 삭제할 수 있다. 예를 들어, APEX 매니저(421)는, 패키지 매니저(422)로부터 모듈 및/또는 펑션(functioin) 간 데이터를 전달 및/또는 확인하는 다양한 방식(예 : 바인더 IPC)에 의하여 수신한 정보에 기반하여 복구할 APEX 모듈(360)에 대응하는 언마운트된 비압축 APEX(350)를 삭제할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 도 5b의 동작 521 내지 동작 524에 따른 복구 루틴을 수행할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 모듈 및/또는 펑션(functioin) 간 데이터를 전달 및/또는 확인하는 다양한 방식(예 : 바인더 IPC)에 의하여 복구 루틴이 완료됨과 관련된 정보를 패키지 매니저(422)에게 전달할 수 있다.
다양한 실시예에 따르면, APEX 매니저(421)는, 동작 750에서, APEX 문제 발생 및/또는 복구 루틴 수행 완료를 알릴 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, APEX에 대한 복구 루틴을 수행함을 표시한 프로퍼티(property)를 확인함에 대응하여, APEX 문제 발생 및/또는 복구 완료를 알릴 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 디스플레이(예 : 도 1의 디스플레이 모듈(160))에 APEX 문제 발생 및/또는 복구 완료를 알릴 수 있는 정보를 표시할 수 있다. 예를 들어, APEX 매니저(421)는, 노티(nofitification) 및/또는 팝업 윈도우(popup window) 방식으로 APEX 문제 발생 및/또는 복구 완료를 알릴 수 있는 정보를 표시할 수 있다.
도 7b는, 다양한 실시예에 따라, 변형된 APEX 파일에 대한 전자 장치(101)의 동작을 도시한 흐름도이다.
도 7b에 도시된 흐름도에서, A 루틴은 도 7a에 도시된 APEX 파일에 대한 복구 루틴을 수행하지 않는 경우의 루틴, B 루틴은 도 7a에 도시된 APEX 파일에 대한 복구 루틴을 수행하는 경우에 추가되는 루틴일 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 701에서, 전자 장치(101)를 부팅할 수 있다.
일 실시예에 따르면, 전자 장치(101)가 부팅되는 동안, APEX 매니저(421)는 압축 APEX(300)를 압축 해제하여 비압축 APEX(350)를 생성하고, 생성된 비압축 APEX(350)를 메모리(130)의 지정된 위치(예 : 읽기/쓰기가 가능한 사용자 데이터 영역, /data/apex/decompressed)에 저장할 수 있다.
일 실시예에 따르면, 비압축 APEX(350)는 압축 APEX(300)를 해제하는 과정에서 문제가 발생하여 변형(corruption)이 일어난 상태일 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 702에서, 비압축 APEX(350)를 마운트할 수 있다.
일 실시예예 따르면, APEX 매니저(421)는 비압축 APEX(350)를 지정된 위치에 마운트하여 APEX 모듈(360)을 활성화할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 703에서, APEX 모듈(360)을 스캐닝하여 서명 검사를 수행할 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 APEX 매니저(421)가 마운트한 APEX 모듈(360)을에 스캐닝하여, APEX 모듈(360)에 포함된 어플리케이션 파일(예 : 제 1 파일(361) 및/또는 제 2 파일(362))에 대하여 서명 검사를 수행할 수 있다. 서명 검사는, 패키지 매니저(422)가 어플리케이션 파일에 대하여 지정된 서명과, 확인한 서명이 일치하는지 여부를 판단하는 검사일 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 어플리케이션 파일에 대하여 확인된 서명이 지정된 서명과 불일치함에 대응하여 어플리케이션 파일에 손상이 발생함을 확인할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는 B 루틴을 수행하지 않는 경우, 동작 703 수행 후 동작 704를 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는 B 루틴을 수행하는 경우, 동작 703 수행 후 동작 741을 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 704에서, 플랫폼을 재시작할 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 APEX 모듈(360)에 포함된 어플리케이션 파일에 대한 서명 검사에서 어플리케이션 파일에 손상이 발생하였다고 판단함에 대응하여, 예외 상황(exception)으로 판단하고, 플랫폼 재시작을 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 741에서, 복구 루틴을 수행할 수 있다.
예를 들어, APEX 매니저(421)는 지정된 노드에 저장된 패닉 메시지를 확인하여 커널 패닉 여부를 확인할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 동작 610에서, 커널 패닉 여부를 확인함에 대응하여, 도 5b의 동작 521 내지 동작 524에 따른 복구 루틴을 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 701에서, 전자 장치(101)를 재부팅할 수 있다. 예를 들어, 전자 장치(101)는 복구 루틴을 수행하며 전자 장치(101)를 재부팅할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 703에서, APEX 모듈(360)을 스캐닝하여 서명 검사를 수행할 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 APEX 매니저(421)가 마운트한 APEX 모듈(360)을에 스캐닝하여, APEX 모듈(360)에 포함된 어플리케이션 파일(예 : 제 1 파일(361) 및/또는 제 2 파일(362))에 대하여 서명 검사를 수행할 수 있다. 서명 검사는, 패키지 매니저(422)가 어플리케이션 파일에 대하여 지정된 서명과, 확인한 서명이 일치하는지 여부를 판단하는 검사일 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 어플리케이션 파일에 대하여 확인된 서명이 지정된 서명과 일치함에 대응하여 어플리케이션 파일이 무결성임을 확인할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 742에서, 전자 장치(101)의 부팅을 완료할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, APEX에 대한 복구 루틴을 완료함에 대응하여 전자 장치(101)의 부팅을 완료할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, APEX에 대한 복구 루틴을 수행함을 표시한 프로퍼티(property)를 확인함에 대응하여, APEX 문제 발생 및/또는 복구 완료를 알릴 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 디스플레이(예 : 도 1의 디스플레이 모듈(160))에 APEX 문제 발생 및/또는 복구 완료를 알릴 수 있는 정보를 표시할 수 있다. 예를 들어, APEX 매니저(421)는, 노티(nofitification) 및/또는 팝업 윈도우(popup window) 방식으로 APEX 문제 발생 및/또는 복구 완료를 알릴 수 있는 정보를 표시할 수 있다.
도 7c는, 다양한 실시예에 따라, 변형된 APEX 파일에 대한 전자 장치(101)의 동작을 도시한 흐름도이다.
도 7c에 도시된 흐름도에서, A 루틴은 도 7a에 도시된 APEX 파일에 대한 복구 루틴을 수행하지 않는 경우의 루틴, B 루틴은 도 7a에 도시된 APEX 파일에 대한 복구 루틴을 수행하는 경우에 추가되는 루틴일 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 701에서, 전자 장치(101)를 부팅할 수 있다.
일 실시예에 따르면, 전자 장치(101)가 부팅되는 동안, APEX 매니저(421)는 압축 APEX(300)를 압축 해제하여 비압축 APEX(350)를 생성하고, 생성된 비압축 APEX(350)를 메모리(130)의 지정된 위치(예 : 읽기/쓰기가 가능한 사용자 데이터 영역, /data/apex/decompressed)에 저장할 수 있다.
일 실시예에 따르면, 비압축 APEX(350)는 압축 APEX(300)를 해제하는 과정에서 문제가 발생하여 변형(corruption)이 일어난 상태일 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 702에서, 비압축 APEX(350)를 마운트할 수 있다.
일 실시예예 따르면, APEX 매니저(421)는 비압축 APEX(350)를 지정된 위치에 마운트하여 APEX 모듈(360)을 활성화할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 703에서, APEX 모듈(360)을 스캐닝하여 서명 검사를 수행할 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 APEX 매니저(421)가 마운트한 APEX 모듈(360)을에 스캐닝하여, APEX 모듈(360)에 포함된 어플리케이션 파일(예 : 제 1 파일(361) 및/또는 제 2 파일(362))에 대하여 서명 검사를 수행할 수 있다. 서명 검사는, 패키지 매니저(422)가 어플리케이션 파일에 대하여 지정된 서명과, 확인한 서명이 일치하는지 여부를 판단하는 검사일 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 어플리케이션 파일에 대하여 확인된 서명이 지정된 서명과 불일치함에 대응하여 어플리케이션 파일에 손상이 발생함을 확인할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는 B 루틴을 수행하지 않는 경우, 동작 703 수행 후 동작 704를 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는 B 루틴을 수행하는 경우, 동작 703 수행 후 동작 741을 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 704에서, 플랫폼을 재시작할 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 APEX 모듈(360)에 포함된 어플리케이션 파일에 대한 서명 검사에서 어플리케이션 파일에 손상이 발생하였다고 판단함에 대응하여, 예외 상황(exception)으로 판단하고, 플랫폼 재시작을 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 741에서, 복구 루틴을 수행할 수 있다.
예를 들어, APEX 매니저(421)는 지정된 노드에 저장된 패닉 메시지를 확인하여 커널 패닉 여부를 확인할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 동작 610에서, 커널 패닉 여부를 확인함에 대응하여, 도 5b의 동작 521 내지 동작 524에 따른 복구 루틴을 수행할 수 있다.
일 실시예예 따르면, 전자 장치(101)는, 전자 장치(101)의 재부팅 동작 없이 복구 루틴을 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 703에서, APEX 모듈(360)을 스캐닝하여 서명 검사를 수행할 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 APEX 매니저(421)가 마운트한 APEX 모듈(360)을에 스캐닝하여, APEX 모듈(360)에 포함된 어플리케이션 파일(예 : 제 1 파일(361) 및/또는 제 2 파일(362))에 대하여 서명 검사를 수행할 수 있다. 서명 검사는, 패키지 매니저(422)가 어플리케이션 파일에 대하여 지정된 서명과, 확인한 서명이 일치하는지 여부를 판단하는 검사일 수 있다.
일 실시예에 따르면, 패키지 매니저(422)는 어플리케이션 파일에 대하여 확인된 서명이 지정된 서명과 일치함에 대응하여 어플리케이션 파일이 무결성임을 확인할 수 있다.
다양한 실시예에 따르면, 전자 장치(101)는, 동작 742에서, 전자 장치(101)의 부팅을 완료할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, APEX에 대한 복구 루틴을 완료함에 대응하여 전자 장치(101)의 부팅을 완료할 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, APEX에 대한 복구 루틴을 수행함을 표시한 프로퍼티(property)를 확인함에 대응하여, APEX 문제 발생 및/또는 복구 완료를 알릴 수 있다.
일 실시예에 따르면, APEX 매니저(421)는, 디스플레이(예 : 도 1의 디스플레이 모듈(160))에 APEX 문제 발생 및/또는 복구 완료를 알릴 수 있는 정보를 표시할 수 있다. 예를 들어, APEX 매니저(421)는, 노티(nofitification) 및/또는 팝업 윈도우(popup window) 방식으로 APEX 문제 발생 및/또는 복구 완료를 알릴 수 있는 정보를 표시할 수 있다.
다양한 실시예에 따른 전자 장치(101)는, 적어도 하나의 모듈(360)을 패키지로 구성한 파일(350)을 압축한 파일(300)을 저장하는 메모리(130) 및 프로세서(120)를 포함하고, 상기 프로세서(120)는 상기 압축 파일(300)을 압축 해제하여 비압축 파일(350)을 생성하고, 상기 생성한 비압축 파일(350)을 상기 메모리(130)에 저장하고, 상기 전자 장치(101)를 부팅하는 중에, 상기 비압축 파일(350)에 변형이 발생하였는지 여부를 확인하고, 상기 비압축 파일(350)에 변형이 발생함에 대응하여, 상기 비압축 파일(350)에 대한 복구 동작을 수행할 수 있다.
다양한 실시예에 따른 전자 장치(101)에서, 상기 프로세서(120)는 상기 변형이 발생한 비압축 파일(350)을 삭제하고, 상기 메모리(130)에 저장된 상기 압축 파일(300)을 압축 해제하여 비압축 파일(350)을 재생성하고, 상기 재생성된 비압축 파일(350)에 기반하여 상기 적어도 하나의 모듈(360)을 마운트하여 상기 복구 동작을 수행할 수 있다.
다양한 실시예에 따른 전자 장치(101)에서, 상기 프로세서(120)는 상기 복구 동작을 수행함에 대응하여, 상기 메모리(130)의 지정된 영역에 지정된 값을 저장하여 상기 복구 동작을 수행함을 알릴 수 있다.
다양한 실시예에 따른 전자 장치(101)에서, 상기 프로세서(120)는, 상기 비압축 파일(350)에 대하여 지정된 해시값과 상기 비압축 파일(350)에 대하여 생성된 해시값이 일치하는지 여부를 확인하고, 상기 해시값들이 일치하지 않음에 대응하여, 상기 비압축 파일(350)에 변형이 발생함을 확인하고, 상기 확인 결과에 대응하여 지정된 노드에 패닉 메시지를 저장하고, 상기 저장된 패닉 메시지를 확인함에 대응하여 상기 비압축 파일(350)에 변형이 발생함을 확인할 수 있다.
다양한 실시예에 따른 전자 장치(101)에서, 상기 프로세서(120)는 상기 비압축 파일(350)에 포함되는 상기 적어도 하나의 모듈(360)을 마운트하고, 상기 마운트된 모듈(360)에 대하여 지정된 서명과 상기 마운트된 모듈(360)의 서명이 일치하는지 여부를 확인하는 서명 검사에 기반하여 상기 비압축 파일(350)에 변형이 발생하였는지 여부를 확인하고, 상기 서명이 불일치함에 대응하여, 상기 비압축 파일(350)에 변형이 발생함을 확인할 수 있다.
다양한 실시예에 따른 전자 장치(101)에서, 상기 프로세서(120)는 상기 비압축 파일(350)에 변형이 발생함을 확임함에 대응하여, 상기 메모리(130)의 지정된 영역에 지정된 값을 저장하여 상기 변형이 있는 비압축 파일(350)과 관련된 정보를 알릴 수 있다.
다양한 실시예에 따른 전자 장치(101)에서, 상기 프로세서(120)는 상기 비압축 파일(350)에 대한 복구 동작 이전에, 상기 전자 장치(101)를 재부팅할 수 있다.
다양한 실시예에 따른 전자 장치(101)에서, 상기 프로세서(120)는 상기 전자 장치(101)의 재부팅 동작 없이, 비압축 파일(350)에 대한 복구 동작을 수행할 수 있다.
다양한 실시예에 따른 전자 장치(101)에서, 상기 프로세서(120)는 상기 비압축 파일(350)에 변형이 발생함을 확인함에 대응하여, 상기 마운트된 적어도 하나의 모듈(360)을 언마운트하고, 상기 언마운트된 적어도 하나의 모듈(360)을 포함하는 상기 변형이 발생한 비압축 파일(350)을 삭제할 수 있다.
다양한 실시예에 따른 전자 장치(101)에서, 상기 프로세서(120)는 상기 비압축 파일(350)에 대한 복구 동작을 완료함에 대응하여, 디스플레이(160)에 복구 완료를 알리는 정보를 표시할 수 있다.
다양한 실시예에 따른 전자 장치(101)의 동작 방법은, 적어도 하나의 모듈(360)을 패키지로 구성한 파일을 압축한 파일을 압축 해제하여 비압축 파일(350)을 생성하는 동작, 상기 생성한 비압축 파일(350)을 메모리(130)에 저장하는 동작, 상기 전자 장치(101)를 부팅하는 중에, 상기 비압축 파일(350)에 변형이 발생하였는지 여부를 확인하는 동작 및 상기 비압축 파일(350)에 변형이 발생함에 대응하여, 상기 비압축 파일(350)에 대한 복구 동작을 수행하는 동작을 포함할 수 있다.
다양한 실시예에 따른 전자 장치(101)의 동작 방법에서, 상기 비압축 파일(350)에 대한 복구 동작을 수행하는 동작은 상기 변형이 발생한 비압축 파일(350)을 삭제하는 동작, 상기 메모리(130)에 저장된 상기 압축 파일(300)을 압축 해제하여 비압축 파일(350)을 재생성하는 동작 및 상기 재생성된 비압축 파일(350)에 기반하여 상기 적어도 하나의 모듈(360)을 마운트하여 상기 복구 동작을 수행하는 동작을 포함할 수 있다.
다양한 실시예에 따른 전자 장치(101)의 동작 방법에서, 상기 복구 동작을 수행함에 대응하여, 상기 메모리(130)의 지정된 영역에 지정된 값을 저장하여 상기 복구 동작을 수행함을 알리는 동작을 포함할 수 있다.
다양한 실시예에 따른 전자 장치(101)의 동작 방법에서, 상기 비압축 파일(350)에 변형이 발생하였는지 여부를 확인하는 동작은 상기 비압축 파일(350)에 대하여 지정된 해시값과 상기 비압축 파일(350)에 대하여 생성된 해시값이 일치하는지 여부를 확인하는 동작, 상기 해시값들이 일치하지 않음에 대응하여, 상기 비압축 파일(350)에 변형이 발생함을 확인하고, 상기 확인 결과에 대응하여 지정된 노드에 패닉 메시지를 저장하는 동작 및 상기 저장된 패닉 메시지를 확인함에 대응하여 상기 비압축 파일(350)에 변형이 발생함을 확인하는 동작을 포함할 수 있다.
다양한 실시예에 따른 전자 장치(101)의 동작 방법에서, 상기 비압축 파일(350)에 변형이 발생하였는지 여부를 확인하는 동작은 상기 비압축 파일(350)에 포함되는 상기 적어도 하나의 모듈(360)을 마운트하는 동작, 상기 마운트된 모듈(360)에 대하여 지정된 서명과 상기 마운트된 모듈(360)의 서명이 일치하는지 여부를 확인하는 서명 검사에 기반하여 상기 비압축 파일(350)에 변형이 발생하였는지 여부를 확인하는 동작 및 상기 서명이 불일치함에 대응하여, 상기 비압축 파일(350)에 변형이 발생함을 확인하는 동작을 포함할 수 있다.
다양한 실시예에 따른 전자 장치(101)의 동작 방법에서, 상기 비압축 파일(350)에 변형이 발생함을 확인함에 대응하여, 상기 메모리(130)의 지정된 영역에 지정된 값을 저장하여 상기 변형이 있는 비압축 파일(350)과 관련된 정보를 알리는 동작을 포함할 수 있다.
다양한 실시예에 따른 전자 장치(101)의 동작 방법에서, 상기 비압축 파일(350)에 대한 복구 동작 이전에, 상기 전자 장치(101)를 재부팅하는 동작을 포함할 수 있다.
다양한 실시예에 따른 전자 장치(101)의 동작 방법에서, 상기 전자 장치(101)의 재부팅 동작 없이, 비압축 파일(350)에 대한 복구 동작을 수행하는 동작을 포함할 수 있다.
다양한 실시예에 따른 전자 장치(101)의 동작 방법에서, 상기 비압축 파일(350)에 변형이 발생함을 확인함에 대응하여, 상기 마운트된 적어도 하나의 모듈(360)을 언마운트하는 동작 및 상기 언마운트된 적어도 하나의 모듈(360)을 포함하는 상기 변형이 발생한 비압축 파일(350)을 삭제하는 동작을 포함할 수 있다.
다양한 실시예에 따른 전자 장치(101)의 동작 방법에서, 상기 비압축 파일(350)에 대한 복구 동작을 완료함에 대응하여, 디스플레이(160)에 복구 완료를 알리는 정보를 표시하는 동작을 포함할 수 있다. 본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.
본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(#01)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(#36) 또는 외장 메모리(#38))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(#40))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(#01))의 프로세서(예: 프로세서(#20))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.
일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.

Claims (15)

  1. 전자 장치에 있어서,
    적어도 하나의 모듈을 패키지로 구성한 파일을 압축한 파일을 저장하는 메모리; 및
    프로세서;를 포함하고,
    상기 프로세서는
    상기 압축 파일을 압축 해제하여 비압축 파일을 생성하고, 상기 생성한 비압축 파일을 상기 메모리에 저장하고,
    상기 전자 장치를 부팅하는 중에, 상기 비압축 파일에 변형이 발생하였는지 여부를 확인하고,
    상기 비압축 파일에 변형이 발생함에 대응하여, 상기 비압축 파일에 대한 복구 동작을 수행하는
    전자 장치.
  2. 제 1 항에 있어서,
    상기 프로세서는
    상기 변형이 발생한 비압축 파일을 삭제하고,
    상기 메모리에 저장된 상기 압축 파일을 압축 해제하여 비압축 파일을 재생성하고,
    상기 재생성된 비압축 파일에 기반하여 상기 적어도 하나의 모듈을 마운트하여 상기 복구 동작을 수행하는
    전자 장치.
  3. 제 2 항에 있어서,
    상기 프로세서는
    상기 복구 동작을 수행함에 대응하여,
    상기 메모리의 지정된 영역에 지정된 값을 저장하여 상기 복구 동작을 수행함을 알리는
    전자 장치.
  4. 제 2 항에 있어서,
    상기 프로세서는,
    상기 비압축 파일에 대하여 지정된 해시값과 상기 비압축 파일에 대하여 생성된 해시값이 일치하는지 여부를 확인하고,
    상기 해시값들이 일치하지 않음에 대응하여, 상기 비압축 파일에 변형이 발생함을 확인하고, 상기 확인 결과에 대응하여 지정된 노드에 패닉 메시지를 저장하고,
    상기 저장된 패닉 메시지를 확인함에 대응하여 상기 비압축 파일에 변형이 발생함을 확인하는
    전자 장치.
  5. 제 2 항에 있어서,
    상기 프로세서는
    상기 비압축 파일에 포함되는 상기 적어도 하나의 모듈을 마운트하고,
    상기 마운트된 모듈에 대하여 지정된 서명과 상기 마운트된 모듈의 서명이 일치하는지 여부를 확인하는 서명 검사에 기반하여 상기 비압축 파일에 변형이 발생하였는지 여부를 확인하고,
    상기 서명이 불일치함에 대응하여, 상기 비압축 파일에 변형이 발생함을 확인하는
    전자 장치.
  6. 제 5 항에 있어서,
    상기 프로세서는
    상기 비압축 파일에 변형이 발생함을 확임함에 대응하여,
    상기 메모리의 지정된 영역에 지정된 값을 저장하여 상기 변형이 있는 비압축 파일과 관련된 정보를 알리는
    전자 장치.
  7. 제 5 항에 있어서,
    상기 프로세서는
    상기 비압축 파일에 대한 복구 동작 이전에,
    상기 전자 장치를 재부팅하는
    전자 장치.
  8. 제 5 항에 있어서,
    상기 프로세서는
    상기 전자 장치의 재부팅 동작 없이, 비압축 파일에 대한 복구 동작을 수행하는
    전자 장치.
  9. 제 5 항에 있어서,
    상기 프로세서는
    상기 비압축 파일에 변형이 발생함을 확인함에 대응하여,
    상기 마운트된 적어도 하나의 모듈을 언마운트하고,
    상기 언마운트된 적어도 하나의 모듈을 포함하는 상기 변형이 발생한 비압축 파일을 삭제하는
    전자 장치.
  10. 제 1 항에 있어서,
    상기 프로세서는
    상기 비압축 파일에 대한 복구 동작을 완료함에 대응하여,
    디스플레이에 복구 완료를 알리는 정보를 표시하는
    전자 장치.
  11. 전자 장치의 동작 방법에 있어서,
    적어도 하나의 모듈을 패키지로 구성한 파일을 압축한 파일을 압축 해제하여 비압축 파일을 생성하는 동작;
    상기 생성한 비압축 파일을 메모리에 저장하는 동작;
    상기 전자 장치를 부팅하는 중에, 상기 비압축 파일에 변형이 발생하였는지 여부를 확인하는 동작; 및
    상기 비압축 파일에 변형이 발생함에 대응하여, 상기 비압축 파일에 대한 복구 동작을 수행하는 동작을 포함하는
    전자 장치의 동작 방법.
  12. 제 11 항에 있어서,
    상기 비압축 파일에 대한 복구 동작을 수행하는 동작은
    상기 변형이 발생한 비압축 파일을 삭제하는 동작;
    상기 메모리에 저장된 상기 압축 파일을 압축 해제하여 비압축 파일을 재생성하는 동작; 및
    상기 재생성된 비압축 파일에 기반하여 상기 적어도 하나의 모듈을 마운트하여 상기 복구 동작을 수행하는 동작을 포함하는
    전자 장치의 동작 방법.
  13. 제 12 항에 있어서,
    상기 복구 동작을 수행함에 대응하여, 상기 메모리의 지정된 영역에 지정된 값을 저장하여 상기 복구 동작을 수행함을 알리는 동작을 포함하는
    전자 장치의 동작 방법.
  14. 제 12 항에 있어서,
    상기 비압축 파일에 변형이 발생하였는지 여부를 확인하는 동작은
    상기 비압축 파일에 대하여 지정된 해시값과 상기 비압축 파일에 대하여 생성된 해시값이 일치하는지 여부를 확인하는 동작;
    상기 해시값들이 일치하지 않음에 대응하여, 상기 비압축 파일에 변형이 발생함을 확인하고, 상기 확인 결과에 대응하여 지정된 노드에 패닉 메시지를 저장하는 동작; 및
    상기 저장된 패닉 메시지를 확인함에 대응하여 상기 비압축 파일에 변형이 발생함을 확인하는 동작을 포함하는
    전자 장치의 동작 방법.
  15. 제 12 항에 있어서,
    상기 비압축 파일에 변형이 발생하였는지 여부를 확인하는 동작은
    상기 비압축 파일에 포함되는 상기 적어도 하나의 모듈을 마운트하는 동작;
    상기 마운트된 모듈에 대하여 지정된 서명과 상기 마운트된 모듈의 서명이 일치하는지 여부를 확인하는 서명 검사에 기반하여 상기 비압축 파일에 변형이 발생하였는지 여부를 확인하는 동작; 및
    상기 서명이 불일치함에 대응하여, 상기 비압축 파일에 변형이 발생함을 확인하는 동작을 포함하는
    전자 장치의 동작 방법.
PCT/KR2022/017768 2021-11-12 2022-11-11 파일을 복구하기 위한 전자 장치 및 전자 장치의 동작 방법 WO2023085853A1 (ko)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2021-0156037 2021-11-12
KR1020210156037A KR20230069726A (ko) 2021-11-12 2021-11-12 파일을 복구하기 위한 전자 장치 및 전자 장치의 동작 방법

Publications (1)

Publication Number Publication Date
WO2023085853A1 true WO2023085853A1 (ko) 2023-05-19

Family

ID=86336294

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2022/017768 WO2023085853A1 (ko) 2021-11-12 2022-11-11 파일을 복구하기 위한 전자 장치 및 전자 장치의 동작 방법

Country Status (2)

Country Link
KR (1) KR20230069726A (ko)
WO (1) WO2023085853A1 (ko)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060097329A (ko) * 2005-03-07 2006-09-14 주식회사 대우일렉트로닉스 플래쉬 메모리를 이용한 컴퓨터 업데이트 방법
US20080114950A1 (en) * 2003-11-10 2008-05-15 Digital Networks North America (Dnna) Stream Based Compressed File Download with Interruption Recovery
KR20140000369A (ko) * 2012-06-22 2014-01-03 고려대학교 산학협력단 문서파일의 포렌식 분석 방법 및 시스템
KR101727860B1 (ko) * 2016-05-23 2017-04-17 주식회사 한컴지엠디 문서 파일의 복구 장치 및 그 방법

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080114950A1 (en) * 2003-11-10 2008-05-15 Digital Networks North America (Dnna) Stream Based Compressed File Download with Interruption Recovery
KR20060097329A (ko) * 2005-03-07 2006-09-14 주식회사 대우일렉트로닉스 플래쉬 메모리를 이용한 컴퓨터 업데이트 방법
KR20140000369A (ko) * 2012-06-22 2014-01-03 고려대학교 산학협력단 문서파일의 포렌식 분석 방법 및 시스템
KR101727860B1 (ko) * 2016-05-23 2017-04-17 주식회사 한컴지엠디 문서 파일의 복구 장치 및 그 방법

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
VITAMIN B: "The screen flickers!! How To Fix "The Display Driver Stopped Responding And Has Recovered" Error Message", 31 December 2016 (2016-12-31), XP093065172, Retrieved from the Internet <URL:https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=mind75952&logNo=220899580367> *

Also Published As

Publication number Publication date
KR20230069726A (ko) 2023-05-19

Similar Documents

Publication Publication Date Title
WO2020246822A1 (en) Electronic device and method for switching electronic device between dual standby mode and single standby mode
WO2020213818A1 (en) Electronic device and method for performing fast transition between screens
WO2019050332A1 (en) ELECTRONIC DEVICE COMPRISING AN ANTENNA
WO2021066293A1 (en) Electronic device for synchronizing modification among screens and operation method thereof
WO2019039868A1 (en) ELECTRONIC DISPLAY DEVICE FOR APPLICATION AND METHOD FOR OPERATING THE SAME
WO2022031029A1 (ko) 전자 장치 및 전자 장치가 외부 장치 디스플레이 상에 어플리케이션 화면을 제공하는 방법
WO2021025497A1 (en) Electronic device and method for sharing data thereof
WO2021177695A1 (en) Electronic device for providing transaction information and operating method thereof
WO2022203238A1 (ko) 스토리지를 포함하는 전자 장치 및 그 방법
WO2022005000A1 (en) Electronic device and method of operating the same
WO2023149647A1 (ko) 전자 장치 및 이의 동작 방법
WO2020027562A1 (en) Electronic apparatus for controlling display of virtual input interface in environment of a plurality of output screens and operating method thereof
WO2023085853A1 (ko) 파일을 복구하기 위한 전자 장치 및 전자 장치의 동작 방법
WO2020075960A1 (ko) 전자 장치, 외부 전자 장치 및 전자 장치를 이용한 외부 전자 장치를 제어하는 방법
WO2023058860A1 (ko) 멀티 서명된 apk 파일을 처리하는 전자 장치 및 그 동작 방법
WO2022119194A1 (ko) 전자 장치 및 이를 이용한 멀티 채널 오디오 출력 방법
WO2021054662A1 (ko) 전자 장치 및 전자 장치의 정보 제공 방법
WO2022215859A1 (ko) 캡쳐 기능을 수행하는 전자 장치 및 전자 장치의 동작 방법
WO2022098015A1 (ko) 내부 데이터가 포함된 트랜잭션을 생성하는 전자 장치 및 이의 동작 방법
WO2022245173A1 (ko) 전자 장치 및 전자 장치의 동작 방법
WO2022019715A1 (ko) 전자 장치에서 키패드를 이용한 컨텐츠 검색을 제공하는 방법 및 장치
WO2023018230A1 (ko) 전자 장치 및 전자 장치의 동작 방법
WO2023113251A1 (ko) 파일 탐색을 위한 전자 장치의 동작 방법 및 그 전자 장치
WO2023038430A1 (ko) 메모리를 포함하는 인쇄 회로 기판 및 그의 데이터 처리 방법
WO2022080652A1 (ko) 저널 파일을 관리하는 전자 장치 및 이의 동작 방법

Legal Events

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

Ref document number: 22893272

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022893272

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022893272

Country of ref document: EP

Effective date: 20240322