Electronic device and method for changing binary
A system server includes a communication module for communicating with an electronic device and an external server, a memory that stores device information and production information for a plurality of electronic devices received from the external server, and a processor operatively connected to the communication module and the memory where the processor is configured to receive unique state information from the electronic device based on the electronic device accessing the system server, compare the received unique state information with the device information for the plurality of electronic devices stored in the memory to determine whether a binary change is required in the electronic device, generate change information including information about a binary to be changed, and transmit the generated change information to the electronic device.
1 . A system server comprising:
a communication module configured to communicate with an electronic device and an external server;
a validity module configured to perform a validity logic;
memory configured to store instructions, device information and production information on a plurality of electronic devices received from the external server;
at least one processor operatively connected to the communication module, the validity module and the memory,
wherein the instructions, when individually or collectively executed by the at least one processor, cause the system server to:
download device information and production information of the electronic device from the external server through an application programming interface (API) based on the external server being connected to the system server, the external server comprising a database including the device information and the production information of the electronic device,
temporarily store the downloaded device information and production information in a storage,
control the validity module to perform a first validity logic for identifying validity of the device information and the production information temporarily stored in the storage, and
store, in the memory, the device information and the production information temporarily stored in the storage based on the validity of the device information and the production information being identified, the storage being different from the memory, and
wherein the at least one processor is further configured to:
determine whether the electronic device is a valid electronic device through an authentication process based on the electronic device accessing the system server automatically at a first booting after user data of the electronic device is deleted,
receive unique state information from the electronic device based on the electronic device being determined as the valid electronic device,
control the validity module to perform a second validity logic for verifying the electronic device based on the received unique state information,
determine whether a change of a first software binary applied to the electronic device is required based on a result of the verifying of the electronic device,
generate change information identifying a second software binary to be changed, based on the change of the first software binary applied to the electronic device being required, and
transmit the generated change information to the electronic device.
2 . The system server of claim 1 , wherein the instructions, when executed by the at least one processor, cause the system server to:
communicate with the external server by using the communication module, and
receive the device information and the production information by using the communication module.
3 . The system server of claim 2 , wherein the instructions, when executed by the at least one processor, cause the system server to identify at least one of whether the electronic device is a normally produced terminal, whether a model of the electronic device is a supported model, whether an ID of the electronic device is valid, and whether there is no error in input data based on the received device information and the received production information.
4 . The system server of claim 1 , wherein the instructions, when executed by at least one processor, cause the system server to map the device information according to specified criteria to generate a key table, and store the key table in the memory.
5 . The system server of claim 1 ,
wherein the validity module is configured to perform the second validity logic of verifying at least one of whether the electronic device is actually produced electronic device, whether an ID of the electronic device is a normal unique ID, and whether the electronic device is a normal electronic device, based on the unique state information.
6 . The system server of claim 1 , wherein the processor does not generate the information on the second binary based on the change of the first software binary not being required.