US-12619421-B2 - Method for updating application and electronic device thereof
Abstract
An electronic device is provided. The electronic device includes a communication module, a memory, and a processor operatively connected with the communication module and the memory, wherein the memory stores instructions which, when executed, cause the processor to, based on application information of a specific application installed in the electronic device, receive app store source change information for updating the specific application, identify whether a higher version of the specific application exists in an app store which is to update the specific application, the app store being identified based on the app store source change information relating to the specific application, and update the specific application by receiving an application package of the higher version from the identified app store.
Inventors
- Myeongjin OH
- Moonkyung KIM
- Cheoljun PARK
- Dongwook SEO
- Seyeong LEE
- Yongi CHO
Assignees
- SAMSUNG ELECTRONICS CO., LTD.
Dates
- Publication Date
- 20260505
- Application Date
- 20231113
- Priority Date
- 20221005
Claims (20)
- 1 . An electronic device comprising: a communication module; memory, comprising one or more storage media, storing instructions and a setting database including information on a source of an application installed on the electronic device; and at least one processor operatively connected with the communication module and the memory, wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to: based on detecting an event for changing an app store of an application installed on the electronic device, identify app store source change information with respect to the application, the app store source change information including information on a target app store with respect to the application and version information for updating the application, compare the source of the application stored in the setting database with the information on the target app store in the app store source change information, when the source of the application stored in the setting database is different from the target app store in the app store source change information, update the application by receiving an update file for the application from the target app store, and update the setting database by changing the source of the application stored in the setting database to the target app store in the app store source change information.
- 2 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to receive the app store source change information through the target app store in the app store source change information.
- 3 . The electronic device of claim 2 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to: obtain the app store source change information from a file received from the target app store in the app store source change information; and store the app store source change information in a store database through a store manager.
- 4 . The electronic device of claim 3 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to: identify the source of the application stored in the setting database through the store manager; and store the app store source change information in the store database in case that the source of the application stored in the setting database is different from the target app store in the app store source change information.
- 5 . The electronic device of claim 3 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to: identify the app store source change information stored in the store database through a store app corresponding to the target app store in the app store source change information; and receive the update file of the application from the target app store in the app store source change information.
- 6 . The electronic device of claim 3 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to, in case that the updating of the application is completed, delete the app store source change information from the store database through the store manager.
- 7 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to receive the app store source change information through an app store which is the source of the application stored in the setting database.
- 8 . The electronic device of claim 7 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to: receive another update file of the application from the target app store in the app store source change information; and obtain the app store source change information from a file included in the other update file.
- 9 . The electronic device of claim 8 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to: store the app store source change information in a store database through a store manager; identify the app store source change information stored in the store database through a store app corresponding to the target app store in the app store source change information; and receive the update file of the higher version from the target app store in the app store source change information.
- 10 . The electronic device of claim 9 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to, in case that a plurality of store apps are identified based on the app store source change information through the store manager, identify an app store corresponding to a store app installed in the electronic device according to a priority among the plurality of store apps as the app store which is to update the application.
- 11 . A method of an electronic device, the method comprising: based on the detecting an event for changing an app store of an application installed on the electronic device, identifying app store source change information with respect to the application, the app store source change information including information on a target app store with respect to the application and version information for updating the application; comparing the source of the application stored in a setting database with the information on the target app store in the app store source change information; when the source of the application stored in the setting database is different from the target app store in the app store source change information, updating the application by receiving an update file for the application from the target app store; and updating the setting database by changing the source of the application stored in the setting database to the target app store in the app store source change information.
- 12 . The method of claim 11 , wherein the receiving of the app store source change information comprises receiving the app store source change information through the target app store in the app store source change information.
- 13 . The method of claim 12 , further comprising: obtaining the app store source change information from a file received from the target app store in the app store source change information; and storing the app store source change information in a store database through a store manager.
- 14 . The method of claim 13 , further comprising: identifying the source of the application stored in the setting database through the store manager, wherein the storing of the app store source change information comprises storing the app store source change information in the store database in case that the source of the application stored in the setting database is different from the target app store in the app store source change information.
- 15 . The method of claim 13 , further comprising: identifying the app store source change information stored in the store database through a store app corresponding to the target app store in the app store source change information; and receiving the update file of the application from the target app store in the app store source change information.
- 16 . The method of claim 13 , further comprising: in case that the updating of the application is completed, deleting the app store source change information from the store database through the store manager.
- 17 . The method of claim 11 , wherein the receiving of the app store source change information comprises receiving the app store source change information through an app store which is the source of the application stored in the setting database.
- 18 . The method of claim 17 , further comprising: receiving another update file of the application from the target app store in the app store source change information; and obtaining the app store source change information from a file included in the other update file.
- 19 . The method of claim 18 , further comprising: storing the app store source change information in a store database through a store manager; identifying the app store source change information stored in the store database through a store app corresponding to the target app store in the app store source change information; and receiving the update file of the higher version from the target app store in the app store source change information.
- 20 . The method of claim 19 , wherein the identifying of the app store comprises, in case that a plurality of store apps are identified based on the app store source change information through the store manager, identifying an app store corresponding to a store app installed in the electronic device according to a priority among the plurality of store apps as the app store which is to update the application.
Description
CROSS-REFERENCE TO RELATED APPLICATION(S) This application is a continuation application, claiming priority under § 365(c), of an International application No. PCT/KR2023/015188, filed on Oct. 4, 2023, which is based on and claims the benefit of a Korean patent application number 10-2022-0127364, filed on Oct. 5, 2022, in the Korean Intellectual Property Office, and of a Korean patent application number 10-2022-0136781, filed on Oct. 21, 2022, in the Korean Intellectual Property Office, the disclosure of each of which is incorporated by reference herein in its entirety. TECHNICAL FIELD The disclosure relates to a method for updating an application and an electronic device thereof. BACKGROUND ART An electronic device may include an operating system (OS) for controlling one or more resources and an application executable in the operating system. The electronic device may perform an application update with respect to an application installed in the electronic device through various application stores (hereinafter, referred to as an “app store”) (e.g., Play Store™) operated by a server. The electronic device may download an application package (e.g., an installation file (e.g., *.apk file)) from an app store to update an application. The above information is presented as background information only to assist with an understanding of the disclosure. No determination has been made, and no assertion is made, as to whether any of the above might be applicable as prior art with regard to the disclosure. DISCLOSURE OF INVENTION When updating an application, an electronic device may perform an update by downloading an application package through an app store through which the application has been installed. However, in various situations, there may be a need to perform an update by downloading an application package through another app store other than the app store through which the application has been installed. Aspects of the disclosure are to address at least the above-mentioned problems and/or disadvantages and to provide at least the advantages described below. Accordingly, an aspect of the disclosure is to provide a method for updating an application by changing an app store by an electronic device, and the electronic device thereof. Additional aspects will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the presented embodiments. In accordance with an aspect of the disclosure, an electronic device is provided. The electronic device includes a communication module, a memory, and at least one processor operatively connected with the communication module and the memory, wherein the memory stores instructions which, when executed, cause the at least one processor to, based on application information of a specific application installed in the electronic device, receive app store source change information for updating the specific application, identify whether a higher version of the specific application exists in an app store which is to update the specific application, the app store being identified based on the app store source change information relating to the specific application, and update the specific application by receiving an application package of the higher version from the identified app store. In accordance with another aspect of the disclosure, a method of an electronic device is provided. The method includes based on application information of a specific application installed in the electronic device, receiving app store source change information for updating the specific application, identifying whether a higher version of the specific application exists in an app store which is to update the specific application, the app store being identified based on the app store source change information relating to the specific application, and updating the specific application by receiving an application package of the higher version from the identified app store. Other aspects, advantages, and salient features of the disclosure will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses various embodiments of the disclosure. BRIEF DESCRIPTION OF DRAWINGS The above and other aspects, features, and advantages of certain embodiments of the disclosure will be more apparent from the following description taken in conjunction with the accompanying drawings, in which: FIG. 1 is a block diagram of an electronic device in a network environment, according to an embodiment of the disclosure; FIG. 2 is a block diagram of an electronic device according to an embodiment of the disclosure; FIG. 3 is a diagram illustrating an operation of an electronic device for performing an application update according to an embodiment of the disclosure; FIG. 4 is a flowchart illustrating an operation of an electronic device for performing an applicat