# US 2025/0165234 A1 · Electronic device for compiling files on basis of designated events, and method therefor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0165234 A1
- Document ID: US20250165234A1
- Status: Published application
- Kind: A1
- Application number: 19/030,679
- Filed: 2025-01-17
- Published: 2025-05-22
- Earliest claimed: 2022-08-12
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Kwanhee JEONG; Chanbin Lim; Hyoungjong Kim; Haewook Lee
- Web page: https://patentgrep.com/patent/US20250165234A1

## CPC

- G06F 8/41: Compilation
- G06F 9/48: Program initiating; Program switching, e.g. by interrupt
- G06F 9/54: Interprogram communication
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 9/4401: Bootstrapping (security arrangements therefor G06F21/57)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An electronic device includes: at least one processor configured to execute instructions in a first type; and memory configured to store the instructions which, when executed by the at least one processor, cause the at least one processor to: detect a preset event that causes termination of an application executed by the at least one processor; based on detecting the preset event, identify a number that the preset event occurred based on an execution of the application; and based on the identified number, obtain a binary file associated with the execution of the application by compiling a non-binary file that corresponds to instructions in the first type associated with the preset event and that includes instructions in a second type that is different from the first type.

## Claims

### Claim 1

An electronic device comprising:
at least one processor configured to execute instruction in a first type; and
memory comprising one or more storage media storing instructions which, when executed by the at least one processor, cause the at least one processor to:
detect a preset event that causes termination of an application executed by the at least one processor;
based on detecting the preset event, identify a number that the preset event occurred based on an execution of the application; and
based on the identified number, obtain a binary file associated with the execution of the application by compiling a non-binary file that corresponds to instructions in the first type associated with the preset event and that comprises instructions in a second type that is different from the first type.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein the instructions, when executed by the at least one processor individually or collectively, further cause the at least one processor to:
store, within the memory, information comprising the number that the preset event occurred;
based on identifying that the identified number is greater than a preset number, perform reboot of the at least one processor; and
in a state of performing the reboot, obtain the binary file by compiling the non-binary file stored in a preset directory that is different from a directory where a third file corresponding to the application is stored.

### Claim 3 (depends on 2)

The electronic device of claim 2, wherein the instructions, when executed by the at least one processor individually or collectively, further cause the at least one processor to store, within the preset directory, instructions in the first type commonly provided to a plurality of applications comprising applications in the electronic device.

### Claim 4 (depends on 1)

The electronic device of claim 1, wherein the instructions, when executed by the at least one processor individually or collectively, further cause the at least one processor to:
based on identifying the preset event occurred based on instructions in the first type, obtain information comprising at least one of:
a name indicating the application that the preset event occurred,
time that the preset event occurred, or
the number that the preset event occurred; and
based on the information, obtain the binary file associated with the execution of the application by compiling the non-binary file.

### Claim 5 (depends on 1)

The electronic device of claim 1, wherein the instructions, when executed by the at least one processor individually or collectively, further cause the at least one processor to, during preset duration, identify that the number that the preset event occurred is greater than or equal to a preset number.

### Claim 6 (depends on 4)

The electronic device of claim 4, wherein the instructions, when executed by the at least one processor individually or collectively, further cause the at least one processor to by obtaining information associated with at least one of: the number that the preset event occurred or the time that the preset event occurred, store, within the memory, the information.

### Claim 7 (depends on 6)

The electronic device of claim 6, wherein the instructions, when executed by the at least one processor individually or collectively, further cause the at least one processor to obtain the binary file by compiling the non-binary file that is a package file of the application.

### Claim 8 (depends on 1)

The electronic device of claim 1, further comprises a display,
wherein the instructions, when executed by the at least one processor individually or collectively, further cause the at least one processor to display, in the display, a visual object to notify that the binary file is obtained by compiling the non-binary file.

### Claim 9 (depends on 5)

The electronic device of claim 5, wherein the instructions, when executed by the at least one processor individually or collectively, further cause the at least one processor to, based on the number of identifying the preset event, during the preset duration, using a first block for handling an error in the application, compile the non-binary file comprising instructions in the second type corresponding to a second block matched to the first block.

### Claim 10 (depends on 9)

The electronic device of claim 9, wherein the instructions, when executed by the at least one processor individually or collectively, further cause the at least one processor to, based on a number that a preset instruction associated with the application is invoked, and that is tracked by a virtual machine application to execute the at least one processor, based on instructions in the second type, compile the non-binary file.

### Claim 11 (depends on 1)

The electronic device of claim 1, wherein the instructions, when executed by the at least one processor individually or collectively, further cause the at least one processor to detect the preset event based on whether another area, which is different from an area assigned to the application, within the memory, is accessed.

### Claim 12

A method performed by an electronic device, the method comprising:
detecting, using an at least one processor configured to execute instructions in a first type, a preset event that causes termination of an application executed by the at least one processor;
based on detecting the preset event, identifying a number that the preset event occurred based on an execution of the application; and
based on the identified number, obtaining a binary file associated with the execution of the application by compiling a non-binary file that corresponds to instructions in the first type associated with the preset event and that comprises instructions in a second type that is different from the first type.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
storing, within memory, information comprising the number that the preset event occurred;
based on identifying the identified number being greater than a preset number, performing reboot of the at least one processor; and
in a state of performing the reboot, obtaining the binary file by compiling the non-binary file in a preset directory being different from a directory where a third file corresponding to the application is stored.

### Claim 14 (depends on 13)

The method of claim 13, further comprising storing, within the preset directory, instructions in the first type commonly provided to a plurality of applications comprising the application in the electronic device.

### Claim 15 (depends on 12)

The method of claim 12, further comprising:
based on identifying the preset event occurred based on instructions in the first type, obtaining information comprising at least one of:
a name indicating the application that the preset event occurred,
time that the preset event occurred, or
the number that the preset event occurred; and
based on the information, obtaining the binary file associated with the execution of the application by compiling the non-binary file.

### Claim 16 (depends on 12)

The method of claim 12, further comprising by obtaining information associated with at least one of the number that the preset event is occurred or a time that the preset event is occurred, storing the information in the memory.

### Claim 17 (depends on 16)

The method of claim 16, further comprising obtaining the second file by compiling the first file that is a package file of the application.

### Claim 18 (depends on 12)

The method of claim 12, further comprising display, in the display, a visual object to notify that the second file is obtained by compiling the first file.

### Claim 19 (depends on 12)

The method of claim 12, further comprising compiling, based on a number identifying a preset event during a preset period using a first block to handle an error in the application, the file in which the instructions in the second type corresponding to a second block matched to the first block.

### Claim 20

A non-transitory computer readable storage medium storing one or more programs, wherein the one or more programs, when executed by an electronic device, cause the electronic device to:
based on a second file that is stored in memory and that is generated by compiling a first file in which instructions in a second type is stored, execute a first application associated with the second file;
based on a second application being different from the first application, detect a preset event causing termination of the executed first application during execution of the first application;
based on detection of the preset event occurred based on the second application, identify whether the first application is terminated based on at least one instructions stored in the second file; and
based on identifying that the first application is terminated based on at least one of the instructions stored in the second file, perform compilation with respect to the first file.
