Processing method, electronic device, chip system, and storage medium for an application

By sending the UDID and application identifier to the server after restoring the electronic device to factory settings, updating the server identifier, and deleting related data, the problem of lost reservation data in the app store and game center was resolved, thus improving the user experience.

CN120768886BActive Publication Date: 2026-04-07HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411219701.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2026-04-07
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

After electronic devices are restored to factory settings, reservation data from app stores and game centers is lost, resulting in a decline in user experience. Games may appear as unreserved when they are actually reserved, thus affecting the user experience.

Method used

After an electronic device is restored to factory settings, it sends a unique device identifier (UDID) and application identifier to the server. The server then updates the identifier and deletes the relevant data, ensuring data consistency and avoiding duplicate deletion of shared data.

Benefits of technology

This reduces the probability of applications not displaying data due to the deletion of shared data, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120768886B_ABST
    Figure CN120768886B_ABST
Patent Text Reader

Abstract

This application provides an application processing method, an electronic device, a chip system, and a storage medium, relating to the field of terminal technology. The method includes: an electronic device comprising a first application and a second application, the first application corresponding to identifier 1, and the second application corresponding to identifier 2; after the electronic device is restored to factory settings, the first application corresponds to identifier 3, and the second application corresponds to identifier 4. After the electronic device is restored to factory settings, in response to the operation of opening the first application, it sends identifier 3 to a server. The server stores identifier 1, identifier 2, and application data. If identifier 3 differs from identifier 1, the server deletes identifier 2 and the application data. In response to the operation of opening the second application, the electronic device sends identifier 4 to the server, and the server saves identifier 4. Thus, when the second application is opened, the server does not delete data generated after the first application is opened, which helps reduce the probability of the application not displaying data due to data deletion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to an application processing method, electronic device, chip system, and storage medium. Background Technology

[0002] Currently, electronic devices typically come with two applications: an app store and a game center. Both applications support functions such as game downloads and pre-registration. For example, when a game is about to be released, users can pre-register for it in the app store or game center before its release. Once the game is released, the server can push the game's installation package to the electronic device.

[0003] In the game reservation scenario, the app store and the game center share the same reservation data. When a user reserves a game in either the app store or the game center, the other app will also show that the game has been reserved.

[0004] However, after an electronic device is reset to factory settings, if a user pre-orders a game in the app store, the game will show as unpre-ordered when the user opens the game center again. At the same time, the pre-order for the game will disappear from the app store, also showing the game as unpre-ordered, which affects the user experience. Summary of the Invention

[0005] This application provides an application processing method, electronic device, chip system, and storage medium, which helps reduce the probability of a pre-registered game not being pre-registered and improves the user experience.

[0006] In a first aspect, embodiments of this application provide a processing method for an electronic device. The method includes: after the electronic device is restored to factory settings, in response to a first operation of opening a first application in the electronic device, the electronic device sends a first identifier and an identifier of the first application to a server, wherein the first identifier is a first value, causing the first identifier in the server to be updated to the first value; and causing the server to delete a second identifier, an identifier of a second application in the electronic device, and first data, wherein the second identifier is associated with the second application in the electronic device, and the second application shares the first data with the first application; wherein, before the electronic device is restored to factory settings, the server stores the first identifier, the identifier of the first application, the second identifier, the identifier of the second application, and the first data, wherein the first identifier is a second value, and the second identifier is a third value; in response to a second operation of opening the second application, the electronic device sends the second identifier and the identifier of the second application to the server, causing the second identifier and the second application identifier to be stored in the server, wherein the second identifier is a fourth value.

[0007] The first application and the second application have some identical functions, so they can share the same first data. The first data refers to the data related to the shared functions of the first and second applications.

[0008] Before an electronic device is restored to factory settings, it can send a first identifier, a first application identifier, a second identifier, a second application identifier, and first data to the server. The server can store this data.

[0009] Before the electronic device is restored to factory settings, the first identifier of the first application is the second value, the second identifier of the second application is the third value, and the first identifier and the second identifier are different.

[0010] Before the electronic device is restored to factory settings, the first identifier of the first application is the second value. After the electronic device is restored to factory settings, the first identifier of the first application is the first value. Therefore, the value of the first identifier is different before and after the electronic device is restored to factory settings.

[0011] If the value of the first identifier is different, the server can obtain information about restoring the electronic device to factory settings, and can then delete the previously stored related data. This stored related data may include the second identifier, the identifier of the second application in the electronic device, and the first data. Additionally, the server can also store information after the factory reset, that is, update the stored first identifier to the first value.

[0012] Before the electronic device is restored to factory settings, the second identifier of the second application is the third value. After the electronic device is restored to factory settings, since the first application is opened, the server has deleted the information that the second identifier is the third value, so the stored second identifier is empty. In this case, after the server receives the second identifier and the identifier of the second application, it can store the information after the factory reset, that is, store the second identifier and the identifier of the second application.

[0013] The application processing method provided in this application embodiment involves a first application corresponding to a first identifier and a second application corresponding to a second identifier. The values ​​of both the first and second identifiers differ before and after a factory reset of the electronic device. Thus, after a factory reset, when the first application is opened, the server can obtain the value of the first identifier after the factory reset and compare it with the value before the factory reset. If they differ, the server can determine that the electronic device has been reset to factory settings and delete the shared data and the second identifier between the first and second applications. When the second application is opened, the server can obtain the value of the second identifier after the factory reset. The value of the second identifier before the factory reset is for deletion; if it is empty, the server can store the second identifier and will not repeatedly delete the shared data between the first and second applications. This avoids deleting shared data generated between opening the first and second applications, reducing the probability of the application not displaying data due to the deletion of shared data.

[0014] In one possible implementation, in response to a first operation of opening a first application in an electronic device, the method further includes: the electronic device sending a third identifier to a server, the third identifier having a correspondence with the first identifier, the identifier of the second application, the second identifier, and the first data, such that the server deletes the second identifier, the identifier of the second application, and the first data based on the correspondence.

[0015] Because there is a corresponding relationship between the third identifier, the first identifier, the identifier of the second application, the second identifier, and the first data, when the value of the first identifier is different, the server can obtain the identifier of the second application, the second identifier, and the first data based on the third identifier, and delete these data. Thus, obtaining the data to be deleted based on the third identifier facilitates the deletion of the required data.

[0016] In one possible implementation, in response to a first operation of opening a first application in an electronic device, the electronic device sends a first identifier and an identifier of the first application to a server, including: in response to the first operation of opening the first application in the electronic device, the electronic device determines whether a privacy agreement has been signed; if no privacy agreement has been signed, the electronic device sends the first identifier and the identifier of the first application to the server.

[0017] Before sending the first identifier and the identifier of the first application, the electronic device can determine whether a privacy agreement has been signed, i.e., whether this is the first time the first application has been opened. If a privacy agreement has been signed, it indicates that this is not the first time the first application has been opened. If no privacy agreement has been signed, it indicates that this is the first time the first application has been opened. The electronic device can send the first identifier and the identifier of the first application if this is the first time the first application has been opened.

[0018] In this way, sending the first identifier and the first application identifier when the first application is opened for the first time helps the server to quickly detect the status of the first application in the electronic device.

[0019] In one possible implementation, the method further includes: if a privacy agreement has been signed, the electronic device determines whether it stores the first identifier and the identifier of the first application; if the first identifier and the identifier of the first application are not stored, the electronic device sends the first identifier and the identifier of the first application to the server.

[0020] In the absence of stored first identifier and first application identifier, sending the first identifier and first application identifier to the server facilitates the server's receipt of this information.

[0021] In one possible implementation, the first data is the reservation data for a first game; the method further includes: in response to a third operation of reserving the first game in the first application, the electronic device sends the reservation information for the first game to the server, causing the server to store the reservation data for the first game. This facilitates the server's timely storage of reservation data.

[0022] In one possible implementation, in response to the second operation of opening the second application, the method further includes: the electronic device sending a request message to the server, causing the server to send reservation data for the first game to the electronic device; and the electronic device displaying that the first game is reserved based on the reservation data. This facilitates the sharing of reservation data between the first and second applications.

[0023] Secondly, embodiments of this application provide a processing apparatus for an application. This processing apparatus can be an electronic device, or a chip or chip system within an electronic device. The processing apparatus can include a transceiver unit and a processing unit. When the processing apparatus is an electronic device, the transceiver unit can be a communication interface. The processing unit can be a processor. The processing apparatus can also include a storage unit, which can be a memory. The storage unit stores instructions, and the processing unit executes the instructions stored in the storage unit to cause the electronic device to implement an application processing method described in the first aspect or any possible implementation of the first aspect. When the processing apparatus is a chip or chip system within an electronic device, the processing unit can be a processor. The processing unit executes the instructions stored in the storage unit to cause the electronic device to implement an application processing method described in the first aspect or any possible implementation of the first aspect. The storage unit can be a storage unit within the chip (e.g., a register, cache, etc.), or a storage unit located outside the chip within the electronic device (e.g., read-only memory, random access memory, etc.).

[0024] For example, after a factory reset, in response to a first operation of opening the first application, the transceiver unit is configured to send a first identifier and an identifier of the first application to the server, wherein the first identifier is a first value, causing the first identifier in the server to be updated to the first value, and causing the server to delete a second identifier, an identifier of the second application, and first data, wherein the second identifier is associated with the second application, and the second application shares the first data with the first application; wherein, before the factory reset, the server stores the first identifier, the identifier of the first application, the second identifier, the identifier of the second application, and the first data, wherein the first identifier is a second value, and the second identifier is a third value; in response to a second operation of opening the second application, the second identifier and the identifier of the second application are sent to the server, causing the second identifier and the identifier of the second application to be stored in the server, wherein the second identifier is a fourth value.

[0025] In one possible implementation, the transceiver unit is further configured to: send a third identifier to the server, wherein the third identifier corresponds to the first identifier, the identifier of the second application, the second identifier, and the first data, so that the server deletes the second identifier, the identifier of the second application, and the first data based on the correspondence.

[0026] In one possible implementation, the processing unit is configured to: determine whether a privacy agreement has been signed in response to a first operation of the first application being opened; the transceiver unit is further configured to: send a first identifier and an identifier of the first application to the server if no privacy agreement has been signed.

[0027] In one possible implementation, the processing unit is further configured to: determine whether the first identifier and the identifier of the first application are stored if a privacy agreement has been signed; the transceiver unit is further configured to: send the first identifier and the identifier of the first application to the server if the first identifier and the identifier of the first application are not stored.

[0028] In one possible implementation, the first data is the reservation data for the first game; the transceiver unit is further configured to: in response to a third operation of reserving the first game in the first application, send the reservation information for the first game to the server, so that the server stores the reservation data for the first game.

[0029] In one possible implementation, the transceiver unit is further configured to: send a request message to the server, causing the server to send reservation data for the first game; the processing unit is further configured to: display that the first game has been reserved based on the reservation data for the first game.

[0030] Thirdly, embodiments of this application provide an electronic device including one or more processors and a memory; the memory is coupled to one or more processors, and the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the electronic device to perform the methods described in the first aspect or any possible implementation of the first aspect.

[0031] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions that, when executed on an electronic device, cause the electronic device to perform the methods described in the first aspect or any possible implementation thereof.

[0032] Fifthly, embodiments of this application provide a computer program product, which includes computer program code. When the computer program code is run on an electronic device, it causes the electronic device to perform the method described in the first aspect or any possible implementation of the first aspect.

[0033] In a sixth aspect, this application provides a chip or chip system applied to an electronic device, the chip or chip system including at least one or more processors, the one or more processors being configured to invoke computer instructions to perform the methods described in the first aspect or any possible implementation thereof.

[0034] In one possible implementation, the chip or chip system described above in this application further includes at least one memory storing instructions. The memory can be an internal storage unit of the chip, such as a register or cache, or it can be a storage unit of the chip itself (e.g., read-only memory, random access memory, etc.).

[0035] In a seventh aspect, embodiments of this application provide an application processing method applied to a communication system including an electronic device and a server. The method includes: after the electronic device is restored to factory settings, in response to a first operation of opening a first application in the electronic device, the electronic device sends a first identifier and an identifier of the first application to the server, wherein the first identifier is a first value; the server updates the stored first identifier to the first value according to the first identifier and the identifier of the first application, and deletes a second identifier, an identifier of a second application in the electronic device, and first data, wherein the second identifier is related to the second application in the electronic device, and the second application shares the first data with the first application; wherein, before the electronic device is restored to factory settings, the server stores the first identifier, the identifier of the first application, the second identifier, the identifier of the second application, and the first data, wherein the first identifier is a second value and the second identifier is a third value; in response to a second operation of opening the second application, the electronic device sends the second identifier and the identifier of the second application to the server; the server stores the second identifier and the identifier of the second application, wherein the second identifier is a fourth value.

[0036] In one possible implementation, in response to a first operation of opening a first application in an electronic device, the method further includes: the electronic device sending a third identifier to a server, the third identifier having a correspondence with the first identifier, the identifier of the second application, the second identifier, and the first data; the server may delete the second identifier, the identifier of the second application, and the first data based on the correspondence.

[0037] In one possible implementation, in response to a first operation of opening a first application in an electronic device, the electronic device sends a first identifier and an identifier of the first application to a server, including: in response to the first operation of opening the first application in the electronic device, the electronic device determines whether a privacy agreement has been signed; if no privacy agreement has been signed, the electronic device sends the first identifier and the identifier of the first application to the server.

[0038] In one possible implementation, the method further includes: if a privacy agreement has been signed, the electronic device determines whether it stores the first identifier and the identifier of the first application; if the first identifier and the identifier of the first application are not stored, the electronic device sends the first identifier and the identifier of the first application to the server.

[0039] In one possible implementation, the first data is reservation data for a first game; the method further includes: in response to a third operation of reserving the first game in the first application, the electronic device sends reservation information for the first game to the server; the server may store the reservation data for the first game.

[0040] In one possible implementation, in response to the second operation of opening the second application, the method further includes: the electronic device sending a request message to the server; the server sending reservation data for the first game to the electronic device based on the request message; and the electronic device displaying that the first game has been reserved based on the reservation data for the first game.

[0041] It should be understood that the second to seventh aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description

[0042] Figure 1 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0043] Figure 2 This is a software structure block diagram of an electronic device to which this application embodiment applies;

[0044] Figure 3 and Figure 4 This is a schematic interactive diagram illustrating a processing method for an application provided in an embodiment of this application;

[0045] Figure 5 This is a schematic interactive diagram illustrating another application processing method provided in the embodiments of this application;

[0046] Figure 6 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation

[0047] To facilitate a clear description of the technical solutions in the embodiments of this application, some terms and technologies involved in the embodiments of this application will be briefly introduced below:

[0048] 1. Unique Device Identifier (UDID)

[0049] A UDID is a unique identifier assigned to a device by the device manufacturer, typically used to identify a specific device. It can have different representations and acquisition methods across different operating systems.

[0050] The characteristics of a UDID include uniqueness and persistence. Uniqueness means that each device's UDID is unique and can accurately identify a specific device. Persistence means that the UDID generally does not change during the device's lifespan. For example, restoring the device to factory settings or updating the system version will not change the device's UDID.

[0051] 2. Android identifier (Android ID or Android id, Androidid or AndroidId)

[0052] An AndroidId can be a 64-bit hexadecimal string, generated during initial device startup, factory reset, or flashing. It serves as a relatively stable identifier for the device.

[0053] 3. Other terms

[0054] In the embodiments of this application, terms such as "first" and "second" are used to distinguish identical or similar items with substantially the same function and purpose. For example, "first application" and "second application" are used only to distinguish different applications and do not limit their order of execution. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.

[0055] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0056] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, and c can be single or multiple.

[0057] 4. Electronic equipment

[0058] The electronic devices in this application embodiment may include handheld devices, in-vehicle devices, etc., with application programs. For example, some electronic devices include: mobile phones, tablets, PDAs, laptops, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving vehicles, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, terminal devices in 5G networks, or future evolution of public land mobile communication networks. Terminal devices in a network (PLMN), etc., are not limited to this in the embodiments of this application.

[0059] By way of example and not limitation, in this embodiment, the electronic device can also be a wearable device. Wearable devices, also known as wearable smart devices, are a general term for devices that utilize wearable technology to intelligently design and develop everyday wearables, such as glasses, gloves, watches, clothing, and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not merely hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are feature-rich, large in size, and can achieve complete or partial functions without relying on a smartphone, such as smartwatches or smart glasses, as well as those that focus on a specific type of application function and require the use of other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0060] Furthermore, in this embodiment of the application, the electronic device can also be a terminal device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection.

[0061] The electronic devices in the embodiments of this application may also be referred to as: terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent, or user device, etc.

[0062] Currently, electronic devices typically come with two applications: an app store and a game center. Both applications support functions such as game downloads and pre-registration. For example, when a game is about to be released, users can pre-register for it in the app store or game center before its release. Once the game is released, the server can push the game's installation package to the electronic device.

[0063] In the context of game pre-registration, app stores and game centers can share pre-registration data. When a user pre-registers for a game in either the app store or the game center, the other app will also display that game as pre-registered. Alternatively, when a user cancels a pre-registration for a game in either the app store or the game center, the other app will also display that game as unpre-registered.

[0064] The app store and game center can share a single reservation data set, which can be stored in the game center cloud.

[0065] For example, in response to reserving game X in the app store, the electronic device can send its UDID and reservation information to the app store cloud. The app store cloud can then send the UDID and reservation information to the game center cloud, which stores the UDID, game X, and reservation information. In response to opening the game center, or viewing game X, the electronic device can send a request message to the game center cloud. The game center cloud can then send the reservation information back to the electronic device based on the request message. In response to the reservation information, the electronic device can display "Game X is reserved" in the game center.

[0066] If a user cancels a pre-order for game X in the app store, the electronic device can send its UDID and the canceled game X information to the app store cloud. The app store cloud can then send the UDID and the canceled game X information to the game center cloud. The game center cloud can store the UDID, game X, and the unpre-order information. In response to opening the game center or viewing game X, the electronic device can send a request message to the game center cloud. The game center cloud can then send the message "game X is not pre-ordered" back to the electronic device based on the request message. In response to this message, the electronic device can display "game X is not pre-ordered" in the game center.

[0067] For example, when a user reserves game X in the game center, the electronic device can send its UDID and the reserved game X information to the game center cloud. The game center cloud can store the UDID, game X, and the reserved information. In response to opening the app store or viewing game X, the electronic device can send a request message to the app store cloud. The app store cloud can then send a request message to the game center cloud, and the game center cloud can use this request message to send information that game X has been reserved to the electronic device. Upon receiving this information, the electronic device can display "Game X reserved" in the app store.

[0068] If a user cancels a reservation for game X in the Game Center, the electronic device can send its UDID and the cancellation information to the Game Center cloud. The Game Center cloud can store the UDID, game X, and the unreserved information. In response to opening the app store or viewing game X, the electronic device can send a request message to the app store cloud. The app store cloud can then send a request message to the Game Center cloud, which can then send the message to the electronic device indicating that game X is not reserved. In response to this message, the electronic device can display "game X is not reserved" in the app store.

[0069] The aforementioned game center cloud can be understood as a server for a game center, possessing functions such as storing game resources, user data, and managing game versions. The aforementioned application market cloud can be understood as a server for an application market, possessing functions such as storing application installation packages and application information. The game center cloud and the application market cloud can be deployed on the same server or on different servers; this embodiment does not limit this. The above description uses the storage of reservation data in the game center cloud as an example; this reservation data can also be stored in the application market cloud, which will not be elaborated upon in this embodiment.

[0070] However, when an electronic device is reset to factory settings, the reservation data in app stores and game centers is deleted. If a user re-reserves a game in the app store, when the user opens the game center, the game will show as unreserved. Simultaneously, the reservation for that game will disappear from the app store, also displaying as unreserved, thus impacting the user experience. Alternatively, after a factory reset, the reservation data in app stores and game centers is deleted. If a user re-reserves a game in the game center, when the user opens the app store, the game will show as unreserved, and the reservation for that game will disappear from the game center, also displaying as unreserved, further impacting the user experience.

[0071] The reason for this issue is that when an electronic device is factory reset, the factory reset information is not sent to the Game Center cloud. The Game Center cloud can only retrieve the factory reset information when the Game Center is first triggered after the device has been reset, and then delete any stored information related to pre-orders for that device. If the App Store is triggered and a game, such as Game X, is pre-ordered before the Game Center is first triggered, then the information stored in the Game Center cloud related to that device will include the pre-order information for Game X. Therefore, when the Game Center cloud retrieves the factory reset information and deletes the stored information related to that device, the deleted information includes the pre-order information for Game X, causing the Game Center to display Game X as unpre-ordered instead of showing it as such.

[0072] To better understand the cause of the problem, the following explanation will be based on the timeline.

[0073] After an electronic device leaves the factory, it may include system applications, such as the aforementioned app store and game center. After the user uses the electronic device, it may include one or more third-party applications, such as Game A and Game B downloaded from the app store or game center. In response to a factory reset operation, the electronic device can delete the third-party applications and their directories, where the third-party application directory includes user data and related files associated with the third-party applications. Alternatively, it can retain the system applications while deleting the system application directory, which may include user data and related files associated with the system applications.

[0074] In one example, after an electronic device is restored to factory settings, the app store cloud can obtain the factory reset information when the electronic device opens the app store for the first time, and send the factory reset information to the game center cloud. The game center cloud can then delete the stored reservation data related to the electronic device based on this information.

[0075] In response to a user's action of reserving game X in the app store, the electronic device can send the UDID and the reserved game X information to the app store cloud. The app store cloud can then send the UDID and the reserved game X information to the game center cloud. The game center cloud can store the UDID, game X, and the reserved information.

[0076] The Game Center Cloud can retrieve factory reset information when the electronic device first opens the Game Center. Based on this information, it can delete the stored reservation data related to the electronic device, specifically the stored UDID, Game X, and reservation information. At this point, the Game Center Cloud has no stored reservation information for Game X, so the electronic device can display Game X as unreserved.

[0077] In another example, after an electronic device is reset to factory settings, the Game Center Cloud can obtain the factory reset information when the electronic device opens the Game Center for the first time, and based on this information, delete the stored reservation data related to the electronic device.

[0078] In response to a user's action of reserving game X in the game center, the electronic device can send the UDID, game X, and reservation information to the game center cloud, which can store the UDID, game X, and reservation information.

[0079] The app store cloud can obtain factory reset information when the electronic device first opens the app store and send this information to the game center cloud. The game center cloud can then delete the stored reservation data related to the electronic device based on this information, specifically the stored UDID, game X, and reservation information. At this point, the app store cloud cannot obtain the reservation information for game X, therefore the app store displays game X as unreserved.

[0080] As mentioned above, the Game Center Cloud obtains the factory reset information after the electronic device has been reset. If there is any game reservation information after the electronic device has been reset but before the Game Center Cloud obtains the factory reset information, this information will be deleted, resulting in games that have been reserved appearing as unreserved, thus affecting the user experience.

[0081] In view of this, embodiments of this application provide an application processing method, an electronic device, a chip system, and a storage medium. The electronic device can send AndroidId and reserved game information to the cloud. The AndroidId can change with factory reset. The cloud can determine the reserved data before the electronic device was reset based on the AndroidId, delete the reserved data before the factory reset, and retain the reserved data after the factory reset. This helps to reduce the probability of reserved games not being reserved and improves the user experience.

[0082] It is understood that "cloud side" can refer to the aforementioned game center cloud or application market cloud. "Cloud side" can also be called a server, but this application embodiment does not limit this terminology.

[0083] The method provided in this application can be applied to devices that have two electronic devices that can perform some of the same functions. For example, a mobile phone or tablet with an app store and a game center installed. For ease of understanding, the hardware structure of the electronic device in this application embodiment is described below.

[0084] For example, Figure 1 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Figure 1 As shown, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, and a display screen 194, etc.

[0085] Optionally, the aforementioned sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0086] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0087] The processor 110 may include one or more processing units. These processing units may be independent devices or integrated within one or more processors. The processor 110 may also include memory for storing instructions and data.

[0088] The wireless communication function of the electronic device can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, and processor 110.

[0089] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Antennas in electronic devices can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.

[0090] The mobile communication module 150 can provide solutions for wireless communication applications, including 2G / 3G / 4G / 5G, in electronic devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to processor 110 for demodulation.

[0091] The wireless communication module 160 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), and other wireless communication technologies.

[0092] The electronic device implements display functionality through a processor 110 and a display screen 194. The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device may include one or N displays screens 194, where N is a positive integer greater than 1.

[0093] The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 together form a touch screen, also known as a "touch screen".

[0094] In this embodiment, the touch sensor 180K can detect when a user triggers a game reservation in the game center and transmits this operation to the processor 110. The processor 110 can control the display screen 194 to show that the game has been reserved, and can transmit the AndroidId, UDID, and reserved game information to the game center cloud via the mobile communication module 150 and the wireless communication module 160. The game center cloud can store the AndroidId, UDID, and reserved game information.

[0095] Touch sensor 180K can detect when a user triggers a factory reset operation and transmits this operation to processor 110. In response to the factory reset operation, processor 110 can delete third-party applications and their directories, where the third-party application directory includes user data and related files associated with the third-party applications. It can also retain system applications while deleting the system application directory, which may include user data and related files associated with the system applications.

[0096] The software system of an electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. A layered architecture can use the Android system, the Apple iOS system, or other operating systems; this application embodiment does not limit this. The following uses a layered Android system as an example to illustrate the software structure of the electronic device.

[0097] Figure 2 This is a software structure block diagram of an electronic device to which this application's embodiments apply. For example... Figure 2 As shown, a layered architecture can divide the software system of an electronic device into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into four layers, from top to bottom: applications, application framework, Android runtime and system libraries, and the kernel.

[0098] The application layer can include a series of application packages. The application layer runs applications by calling the application programming interface (API) provided by the application framework layer. For example... Figure 2 As shown, the application package can include applications such as app store, game center, camera, gallery, desktop, video, notes, music, maps, and chat. Each application has a corresponding AndroidId, and the AndroidIds of different applications are different. After restoring factory settings, the AndroidIds of different applications will change.

[0099] For example, the AndroidId for the app store can be AndroidId1, the AndroidId for the game center can be AndroidId2, and the AndroidId for the camera can be AndroidId3. After a factory reset, the AndroidId for the app store can be AndroidId4, the AndroidId for the game center can be AndroidId5, and the AndroidId for the camera can be AndroidId6.

[0100] The application framework layer provides APIs and a programming framework for applications within the application layer. The application framework layer includes predefined functions. For example... Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0101] The Android runtime consists of the core libraries and the virtual machine. The Android runtime is responsible for scheduling and managing the Android system. The core libraries comprise two parts: one part contains the functionalities that Java calls, and the other part is the core Android library itself. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection. System libraries can contain modules with multiple functionalities, such as a surface manager, media libraries, and 3D graphics processing libraries.

[0102] The kernel layer is the layer between hardware and software. It drives the hardware, enabling it to function. The kernel layer includes at least display drivers, fingerprint screen drivers, camera drivers, and Bluetooth drivers, but this application does not limit this specific component.

[0103] To better understand the embodiments of this application, the methods provided in the embodiments of this application will be described first.

[0104] For example, Figure 3 This diagram illustrates a schematic interactive representation of an application processing method provided in an embodiment of this application. The method can be applied to communication systems including electronic devices, application marketplace clouds, and game center clouds. The hardware structure of the electronic device can be as described above. Figure 1 As shown above, the software architecture can be as described above. Figure 2 As shown, however, the embodiments of this application do not limit this.

[0105] like Figure 3 As shown, the method may include the following steps:

[0106] S301. In response to the operation of opening the game center in the electronic device, the game center determines whether to initiate the signing of the privacy agreement.

[0107] Electronic devices can determine whether it's the first time opening the game center by whether they initiate the signing of a privacy agreement. If the signing of the privacy agreement is not initiated, it means it's not the first time opening the game center. If the signing of the privacy agreement is initiated, it means it's the first time opening the game center. The privacy agreement can also be called a privacy policy or a privacy statement; this application embodiment does not limit it to that.

[0108] Signing a privacy agreement is crucial for applications to protect user privacy, build user trust, and comply with laws and regulations.

[0109] In one example, an electronic device may store a field that indicates a privacy agreement has been signed when the field exists, and indicates that a privacy agreement has not been signed when the field does not exist.

[0110] In response to the operation of opening the game center on the electronic device, the game center can determine whether the field exists. If it exists, the signing of the privacy agreement will not be initiated; if it does not exist, the signing of the privacy agreement will be initiated.

[0111] In another example, an electronic device could store a bit that, when the bit is 0, indicates that a privacy agreement has been signed, and when the bit is 1, indicates that a privacy agreement has not been signed. Alternatively, the bit can be 1 indicating that a privacy agreement has been signed, and 0 indicating that a privacy agreement has not been signed.

[0112] In response to the operation of opening the game center in an electronic device, the game center can determine whether the bit is 0. If it is 0, the signing of the privacy agreement will not be initiated; if it is 1, the signing of the privacy agreement will be initiated. Alternatively, in response to the operation of opening the game center in an electronic device, the game center can determine whether the bit is 1. If it is 1, the signing of the privacy agreement will not be initiated; if it is 0, the signing of the privacy agreement will be initiated.

[0113] S302. If the signing of the privacy agreement is initiated, it indicates that this is the first time using the game center. The game center can then send the UDID, Android Id1, and the game center's identifier to the game center cloud. The game center's identifier can be understood as the source from which the UDID and Android Id1 are reported. The game center's identifier is merely an example; it could also be the name of the game center, but this embodiment does not limit this.

[0114] Understandably, if the privacy agreement signing process is initiated, the game center can display an interface for signing the privacy agreement, allowing users to sign it. This step... Figure 3 Not shown in the image.

[0115] S303 and Game Center Cloud can store UDID, Android identifier 1, and Game Center identifier in a database. The database can be managed using MySQL, Oracle, or SQL Server.

[0116] The Game Center Cloud can store the UDID, Android identifier 1, and Game Center identifier in the database through write operations.

[0117] S304. If a privacy agreement is signed, the Game Center can also cache the UDID, Android identifier 1, and the Game Center identifier in the Game Center's directory.

[0118] Caching can temporarily store data or commands. The Game Center can cache the UDID, Android identifier 1, and the Game Center identifier. This helps improve data access speed.

[0119] S302 and S304 are both executed when the signing of the privacy agreement is initiated. These two steps can be executed in parallel or sequentially. This application embodiment does not limit this.

[0120] S305. If the privacy agreement is not activated, it means that this is not the first time using the game center. The game center can determine whether there is a cache in the game center's directory, that is, whether the UDID, Android identifier 1 and the game center's identifier are stored.

[0121] If the Game Center's directory contains a cache, it means that the UDID, Android Identifier 1, and Game Center's identifier have been reported, and the Game Center does not need to report this information. If the Game Center's directory does not contain a cache, it means that the UDID, Android Identifier 1, and Game Center's identifier have not been reported, or that this information has been reported but has expired, and the Game Center may report this information.

[0122] In some examples, the game center checks whether there is a cache in the game center's directory, which can also be called checking whether the game center's directory has spare space.

[0123] S306. If there is no cache, the Game Center can report the UDID, Android identifier 1, and the Game Center identifier to the Game Center Cloud.

[0124] S307 and Game Center Cloud can store UDID, Android identifier 1, and Game Center identifier in the database.

[0125] S306 and S307 can be referenced from S302 and S303 above, and will not be repeated here.

[0126] S308. The application market in the electronic device responds to the operation of opening the application market and determines whether to initiate the signing of a privacy agreement.

[0127] Electronic devices can determine whether they are opening the app store for the first time by whether they initiate the privacy agreement signing process. If the privacy agreement signing process is not initiated, it means that the app store is not being opened for the first time. If the privacy agreement signing process is initiated, it means that the app store is being opened for the first time. The method for determining whether to initiate the privacy agreement signing process can be referred to S301 above, and will not be repeated here.

[0128] S309. If the signing of the privacy agreement is initiated, it indicates that this is the first time using the app store. The app store can then send the UDID, AndroidId2, and the app store's identifier to the app store cloud. The app store's identifier can be understood as the source channel for reporting the UDID and AndroidId2. The app store's identifier is merely an example; it could also be the name of the app store, but this embodiment does not limit this.

[0129] Understandably, if the user initiates the signing of a privacy agreement, the app store can display an interface for signing the privacy agreement, allowing the user to do so. This step... Figure 3 Not shown in the image.

[0130] S310 and App Market Cloud can send UDID, Android Identifier 2, and App Market Identifier to Game Center Cloud.

[0131] Both the app store and the game center include game-related content, so the app store cloud can send the UDID, Android identifier 2, and app store identifier to the game center cloud so that the two can share the same data for game-related content.

[0132] S311 and Game Center Cloud can store UDID, Android identifier 2, and app market identifier in the database.

[0133] S312. If a privacy agreement is initiated, the app store can also cache the UDID, Android identifier 2, and the app store's identifier in the app store's directory.

[0134] S309 and S312 are both executed when the signing of a privacy agreement is initiated. These two steps can be executed in parallel or sequentially. This application embodiment does not limit this.

[0135] S313. If the privacy agreement is not activated, it means that this is not the first time using the app store. The app store can determine whether there is a cache in the app store directory, that is, whether the UDID, Android identifier 2 and the app store identifier are stored.

[0136] If the app store's directory contains a cache, it means that the UDID, Android identifier 2, and app store identifier have been reported, and the app store does not need to report this information. If the app store's directory does not contain a cache, it means that the UDID, Android identifier 2, and app store identifier have not been reported, or that this information has been reported but has expired, and the app store can report this information, that is, it can execute the above S309 to S311.

[0137] Understandably, both the Game Center and the App Store can send UDID and AndroidId to the cloud (Game Center Cloud or App Store Cloud). UDID is used to identify the device that sent the AndroidId, and AndroidId is used to identify different applications. At the same time, different AndroidIds for the same application can also be used to identify factory reset.

[0138] Both game centers and app stores allow users to pre-order game downloads. The following explanation demonstrates how to pre-order a game download through a game center.

[0139] S314. In response to the operation of reserving game X, the Game Center can send the UDID and the information of the reserved game X to the Game Center Cloud.

[0140] S315 and Game Center Cloud can store UDID, game X, and reservation information in the database.

[0141] The Game Center Cloud can store data related to the Game Center, including UDIDs, game X information, and pre-registration details, all stored in a database. This data storage in the Game Center Cloud eliminates the need for electronic devices to store it, thus saving memory.

[0142] S316. In response to the operation of opening the app market, the app market can send a request message to the game center cloud through the app market cloud in order to obtain the latest information.

[0143] S317. The Game Center Cloud can send information that Game X has been reserved to the App Store via the App Store Cloud.

[0144] The app store can display game X as pre-ordered, so that game X is in a pre-ordered state in both the app store and the game center, achieving information synchronization.

[0145] S318, In response to a factory reset operation, the Game Center in the electronic device can generate an Android Identifier 3 (AndroidId3) and clear the cache in the Game Center directory.

[0146] S319. In response to the factory reset operation, the app store in the electronic device can generate an Android Identifier 4 (AndroidId4) and clear the cache in the app store directory.

[0147] After restoring an electronic device to factory settings, all applications on the device can regenerate their Android identifiers. Here, we take the Game Center and App Store as examples. Other applications on the electronic device, such as the camera app and the gallery app, will also regenerate their Android identifiers.

[0148] From the above Figure 3 It is known that app stores and game apps on electronic devices can share the same reservation data. After a factory reset, app stores and game stores can regenerate their Android identifiers. After a factory reset, users can reserve data in app stores or game stores.

[0149] For example, Figure 4 This diagram illustrates an interactive approach to handling applications after a factory reset. Figure 4 As shown, the method may include the following steps:

[0150] S320: In response to the operation of opening the game center, determine whether to initiate the signing of the privacy agreement.

[0151] Electronic devices can determine whether this is the first time opening the Game Center by whether a privacy agreement is activated. If the privacy agreement is not activated, it means this is not the first time opening the Game Center. If the privacy agreement is activated, it means this is the first time opening the Game Center.

[0152] S321. If the signing of the privacy agreement is initiated, it indicates that this is the first time using the game center. The game center can then send the UDID, AndroidId3, and the game center's identifier to the game center cloud.

[0153] If a privacy agreement is signed, Game Center can also cache the UDID, Android identifier 3, and Game Center identifier in the Game Center's directory. This step is performed within... Figure 4 Not shown in the image.

[0154] S322, Game Center Cloud can query Android identifier 1 in the database based on UDID and Game Center identifier.

[0155] If S323 and Android identifier 3 are different from Android identifier 1, then the Game Center Cloud can delete the reservation data of the game related to UDID in the database, delete the Android identifier corresponding to the identifier of other applications related to UDID, and update Android identifier 1 to Android identifier 3.

[0156] The fact that Android Identifier 3 differs from Android Identifier 1 indicates that the electronic device has been restored to factory settings and requires the deletion of previously stored data. Game Center Cloud can then delete the pre-registration data for games associated with the UDID from its database, such as the pre-registration data stored on the S315 mentioned above, and also delete the Android identifiers corresponding to other applications associated with the UDID, such as Android Identifier 2 corresponding to the app store identifier. Game Center Cloud can also update Android Identifier 1 to Android Identifier 3.

[0157] S324 and Game Center Cloud can store UDID, Android identifier 3, and Game Center identifier in the database.

[0158] If a user opens the Game Center and makes a reservation for Game X, the Game Center will respond to the reservation for Game X by executing the above steps S314 to S315, that is, the Game Center cloud will store the UDID, reservation X, and reservation information in the database.

[0159] S325. In response to the operation of opening the application market, the application market in the electronic device determines whether to initiate the signing of a privacy agreement.

[0160] Electronic devices can determine whether it's the first time opening the app store by whether they initiate the privacy agreement signing process. If the privacy agreement signing process is not initiated, it means it's not the first time opening the app store. If the privacy agreement signing process is initiated, it means it's the first time opening the app store.

[0161] In one example, in response to the app store being opened, the app store on the electronic device also sends a request message to the game center cloud via the app store cloud. The game center cloud can then send information about game X being pre-ordered to the app store via the app store cloud based on this request message. The app store on the electronic device can then display that game X has been pre-ordered.

[0162] S326. If the signing of the privacy agreement is initiated, it indicates that this is the first time using the app store. The app store can then send the UDID, AndroidId4, and the app store's identifier to the app store cloud.

[0163] Understandably, app stores can also store the UDID, Android ID 4, and app store identifier in the app store directory. This step is... Figure 4 Not shown in the image.

[0164] S327, the application market cloud can send UDID, Android identifier 4, and application market identifier to the game center cloud.

[0165] S328 and Game Center Cloud can query the database based on UDID and app market identifiers, and find that the Android identifier is empty.

[0166] It is understandable that the UDID, app store identifier, and Android identifier 2 mentioned above were deleted in S324. Therefore, the game center cloud can query the database based on the UDID and app store identifier and find that the Android identifier is empty.

[0167] S329. If the Android identifier is empty, the Game Center Cloud can store the UDID, Android identifier 4, and the app market identifier in the database.

[0168] From the above Figure 4 It is understood that after a factory reset, the Game Center cloud can determine whether an electronic device has been reset based on different Android identifiers (i.e., Android identifier 3 and Android identifier 1), and delete the reservation data and the Android identifiers of other applications related to the UDID of the electronic device. This ensures that when the app market is used for the first time subsequently, there will be no different Android identifiers, i.e., there will be no situation where Android identifier 4 is different from Android identifier 2. This will prevent duplicate deletion and thus prevent the deletion of reservation data from the time of the factory reset to the time of the first use of the app market. This helps to reduce the probability of reserved games not being reserved and improves the user experience.

[0169] The above method uses UDID as an example for illustration. It can also be the International Mobile Equipment Identity (IMEI), Universally Unique Identifier (UUID), Serial Number, Mobile Equipment Identifier (MEID), etc. This application embodiment does not limit this.

[0170] In the above method, the function for generating the Android identifier can be SettingsSecure(), but the embodiments of this application are not limited to this.

[0171] In addition to the above Figure 3 and Figure 4In addition to the methods shown, this application embodiment also provides a method to solve the above-mentioned problems. The electronic device can report the factory reset time to the game center cloud, and the game center cloud can store this time. After a factory reset, in response to the user's first opening of the game center, the game center cloud can delete data prior to the factory reset time. In response to the user's reservation of a game in the game center, the game center cloud can store the reservation data. In response to the user's first opening of the app store, the game center cloud can delete data prior to the factory reset time; if the data prior to the factory reset time is empty, the data is not deleted.

[0172] This way, the reservation data after restoring factory settings can be preserved, which helps reduce the probability of games that have already been reserved not being reserved, thus improving the user experience.

[0173] This application also provides a processing method for an application. For example, Figure 5 A schematic flowchart illustrating a data processing method for an application is shown. This method can be applied to communication systems including electronic devices and servers. Figure 5 As shown, the method may include the following steps:

[0174] S501. After the electronic device is restored to factory settings, in response to the first operation of opening the first application in the electronic device, the electronic device can send a first identifier and the identifier of the first application to the server, wherein the first identifier is a first value.

[0175] The first application can also be referred to as the first application program, but this application embodiment does not limit this. The first application can be the application market or game center mentioned above, and this application embodiment does not limit this.

[0176] The server can provide services to the primary application. For example, if the primary application is an app store, the server could be an app store cloud or a game center cloud. Similarly, a game center cloud could provide game-related services to the primary application. If the primary application is a game center, the server could be a game center cloud.

[0177] The first identifier can be the Android identifier mentioned above. In this embodiment, the first identifier corresponds to the first application, or in other words, the first identifier of the first application or the Android identifier of the first application. It should be noted that this embodiment uses the Android identifier as an example for explanation. If there are other identifiers that can satisfy the condition that different applications correspond to different identifiers and that are different before and after the electronic device is restored to factory settings, then the first identifier can also represent other identifiers that satisfy these conditions.

[0178] After an electronic device is restored to factory settings, the first identifier for the first application can be the first value. In the above... Figure 3 In the example shown, if the first application is a game center, then the first identifier and the first value can be referenced from Android identifier 3. If the first application is an app store, then the first identifier and the first value can be referenced from Android identifier 4.

[0179] The identifier of the first application can also be called the identifier of the first application program or the name of the first application program; this application embodiment does not limit this. The identifier of the first application can distinguish different applications and can also indicate the source of the first identifier.

[0180] S502. The server updates the stored first identifier to a first value based on the first identifier and the identifier of the first application, and deletes the second identifier, the identifier of the second application in the electronic device, and the first data. The second identifier is related to the second application in the electronic device, and the second application and the first application share the first data. Before the electronic device is restored to factory settings, the server stores the first identifier, the identifier of the first application, the second identifier, the identifier of the second application, and the first data. The first identifier is the second value, and the second identifier is the third value.

[0181] In addition to the first application, an electronic device can also have a second application installed. Since the first and second applications share some functions, they can share the same first data. This first data refers to the data related to the shared functions of both applications. For example, if the first application is an app store and the second application is a game center, and both applications share the function of game reservations, then they can share the same reservation data.

[0182] Before an electronic device is restored to factory settings, it can send a first identifier, a first application identifier, a second identifier, a second application identifier, and first data to the server. The server can store this data.

[0183] The second identifier can be the Android identifier mentioned above. In this embodiment, the second identifier corresponds to the second application, or in other words, the second identifier of the second application or the Android identifier of the second application.

[0184] Before the electronic device is restored to factory settings, the first identifier of the first application is the second value, the second identifier of the second application is the third value, and the first identifier and the second identifier are different.

[0185] For example, in the above Figure 3In the example shown, if the first application is a game center, then the first identifier is the second value, which can be referenced from Android identifier 1. If the second application is an app store, then the second identifier is the third value, which can be referenced from Android identifier 2. Alternatively, if the first application is an app store, then the first identifier is the second value, which can be referenced from Android identifier 2. If the second application is a game center, then the second identifier is the third value, which can be referenced from Android identifier 1.

[0186] Before the electronic device is restored to factory settings, the first identifier of the first application is the second value. After the electronic device is restored to factory settings, the first identifier of the first application is the first value. Therefore, the value of the first identifier is different before and after the electronic device is restored to factory settings.

[0187] If the value of the first identifier is different, the server can obtain information about restoring the electronic device to factory settings, and can then delete the previously stored related data. This stored related data may include the second identifier, the identifier of the second application in the electronic device, and the first data. Additionally, the server can also store information after the factory reset, that is, update the stored first identifier to the first value.

[0188] For example, S501 and S502 can refer to the above. Figure 4 S321 to S325 in the series.

[0189] S503, In response to the second operation of opening the second application, the electronic device sends a second identifier and an identifier of the second application to the server.

[0190] S504, The server stores a second identifier and a second application identifier, where the second identifier is a fourth value.

[0191] Before the electronic device is restored to factory settings, the second identifier of the second application is the third value. After the electronic device is restored to factory settings, since the first application is opened, the server has deleted the information that the second identifier is the third value, so the stored second identifier is empty. In this case, after the server receives the second identifier and the identifier of the second application, it can store the information after the factory reset, that is, store the second identifier and the identifier of the second application.

[0192] For example, S503 and S504 can refer to the above. Figure 4 S327 to S330 in the series.

[0193] The application processing method provided in this application embodiment involves a first application corresponding to a first identifier and a second application corresponding to a second identifier. The values ​​of both the first and second identifiers differ before and after a factory reset of the electronic device. Thus, after a factory reset, when the first application is opened, the server can obtain the value of the first identifier after the factory reset and compare it with the value before the factory reset. If they differ, the server can determine that the electronic device has been reset to factory settings and delete the shared data and the second identifier between the first and second applications. When the second application is opened, the server can obtain the value of the second identifier after the factory reset. The value of the second identifier before the factory reset is for deletion; if it is empty, the server can store the second identifier and will not repeatedly delete the shared data between the first and second applications. This avoids deleting shared data generated between opening the first and second applications, reducing the probability of the application not displaying data due to the deletion of shared data.

[0194] Optionally, in response to the first operation of opening the first application in the electronic device, the above method further includes: the electronic device may also send a third identifier to the server, the third identifier having a correspondence with the first identifier, the identifier of the second application, the second identifier, and the first data; the server may delete the second identifier, the identifier of the second application, and the first data based on the correspondence.

[0195] The third identifier can be used to identify electronic devices, such as the UDID mentioned above. Since there is a correspondence between the third identifier, the first identifier, the identifier of the second application, the second identifier, and the first data, when the value of the first identifier is different, the server can obtain the identifier of the second application, the second identifier, and the first data based on the third identifier, and delete these data.

[0196] For example, this step can refer to the above. Figure 4 The S324 in the middle. The third identifier is UDID, the other application identifier is the identifier of the second application, the Android identifier corresponding to the other application identifier is the second identifier, and the first data is the reservation data of game X.

[0197] In this way, obtaining the data to be deleted based on the third identifier is beneficial for deleting the data that needs to be deleted.

[0198] Optionally, in response to the first operation of opening the first application in the electronic device, the electronic device sends a first identifier and the identifier of the first application to the server, including: in response to the first operation of opening the first application in the electronic device, the electronic device determines whether a privacy agreement has been signed; if no privacy agreement has been signed, the electronic device sends the first identifier and the identifier of the first application to the server.

[0199] Before sending the first identifier and the identifier of the first application, the electronic device can determine whether a privacy agreement has been signed, i.e., whether this is the first time the first application has been opened. If a privacy agreement has been signed, it indicates that this is not the first time the first application has been opened. If no privacy agreement has been signed, it indicates that this is the first time the first application has been opened. The electronic device can send the first identifier and the identifier of the first application if this is the first time the first application has been opened.

[0200] For example, this step can refer to S320 to S321 above.

[0201] In this way, sending the first identifier and the first application identifier when the first application is opened for the first time helps the server to quickly detect the status of the first application in the electronic device.

[0202] Optionally, the method further includes: if a privacy agreement has been signed, the electronic device determines whether it stores the first identifier and the identifier of the first application; if the first identifier and the identifier of the first application are not stored, the electronic device sends the first identifier and the identifier of the first application to the server.

[0203] If a privacy agreement has been signed, it indicates that this is not the first time the first application has been opened. In this case, the electronic device can determine whether it has stored the first identifier and the first application's identifier. If this information is stored, it means that the electronic device has sent this information to the server. If this information is not stored, it means that the electronic device has not sent this information to the server.

[0204] For example, this step can refer to S305 to S307 above.

[0205] In the absence of stored first identifier and first application identifier, sending the first identifier and first application identifier to the server facilitates the server's receipt of this information.

[0206] Optionally, the first data is reservation data for the first game; the method further includes: in response to a third operation of reserving the first game in the first application, the electronic device sends reservation information for the first game to the server; the server may store the reservation data for the first game.

[0207] The first game can be game X mentioned above. This application embodiment uses a game reservation scenario as an example for explanation. When the electronic device detects an operation to reserve the first game, it sends reservation information to the server so that the server can store the reservation data.

[0208] For example, this step can refer to S314 and S315 above.

[0209] This allows the server to store reservation data in a timely manner.

[0210] Optionally, in response to the second operation of opening the second application, the method further includes: the electronic device sending a request message to the server; the server sending reservation data for the first game to the electronic device based on the request message; and the electronic device displaying that the first game has been reserved based on the reservation data for the first game.

[0211] In the second operation of opening the second application, the electronic device can request a message from the server to retrieve data stored on the server. Both the first and second applications include a game reservation function. The server can send the reservation data for the first game to the electronic device, and the electronic device can display that the first game has been reserved.

[0212] For example, this step can refer to S316 and S317 above.

[0213] This allows the first and second applications to share the same reservation data.

[0214] It should be noted that the module names involved in the embodiments of this application can all be defined as other names, as long as they can achieve the function of each module, and no specific restrictions are placed on the module names.

[0215] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0216] The processing method for the application of the embodiments of this application has been described above. The apparatus for executing the above method provided in the embodiments of this application is described below. Those skilled in the art will understand that the methods and apparatus can be combined and referenced with each other, and the related apparatus provided in the embodiments of this application can execute the steps in the above list sorting method.

[0217] Figure 6 This is a schematic diagram of a chip structure provided in an embodiment of this application. Figure 6 As shown, chip 60 includes one or more processors 601, communication lines 602, communication interfaces 603, and memory 604.

[0218] In some implementations, memory 604 stores elements such as executable modules or data structures, or subsets thereof, or extended sets thereof.

[0219] The processing methods described in the embodiments of this application can be applied to or implemented by processor 601. Processor 601 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the processing method of the above application can be completed by the integrated logic circuit in the hardware of processor 601 or by instructions in software form. The processor 601 may be a general-purpose processor (e.g., a microprocessor or conventional processor), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components. Processor 601 can implement or execute the processing-related methods, steps, and logic block diagrams disclosed in the embodiments of this application.

[0220] The processing steps of the application disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in mature storage media in the art, such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read-only memory (EEPROM). This storage medium is located in memory 604, and processor 601 reads the information in memory 604 and, in conjunction with its hardware, completes the steps of the above method.

[0221] The processor 601, memory 604 and communication interface 603 can communicate with each other through communication line 602.

[0222] In the above embodiments, the instructions stored in the memory for execution by the processor can be implemented in the form of a computer program product. This computer program product can be pre-written into the memory, or it can be downloaded and installed into the memory as software.

[0223] The application processing method provided in this application embodiment can be applied to electronic devices with applications installed. Electronic devices include terminal devices, and the specific device form of the terminal device can be referred to the above-described related descriptions, which will not be repeated here.

[0224] This application provides a terminal device, which includes: one or more processors and a memory; the memory is coupled to one or more processors, and the memory is used to store computer program code, which includes computer instructions, and the one or more processors call the computer instructions to cause the terminal device to perform the above-described method.

[0225] This application provides a chip or chip system for use in electronic devices. The chip or chip system includes at least one or more processors, which invoke computer instructions to execute the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar to the related embodiments described above, and will not be repeated here.

[0226] This application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program or instructions. When the computer program or instructions are executed by an electronic device, they implement the methods described above. The methods described in the above embodiments can be implemented wholly or partially by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted over the computer-readable medium. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.

[0227] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage or other magnetic storage devices, or any other medium targeted to carry or to store the required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, Digital Versatile Discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0228] This application provides a computer program product, which includes a computer program. When the computer program code is run on an electronic device, the electronic device performs the above-described method.

[0229] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0230] The above specific embodiments further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.

Claims

1. A processing method for an application, characterized in that, Applied to electronic devices, the method includes: After the electronic device is restored to factory settings, in response to the first operation of opening the first application in the electronic device, the electronic device sends a first identifier and the identifier of the first application to the server, wherein the first identifier is a first value, so that the first identifier in the server is updated to the first value, and the server deletes a second identifier, the identifier of the second application in the electronic device, and first data, wherein the second identifier is related to the second application, and the second application and the first application share the first data; Before the electronic device is restored to factory settings, the server stores the first identifier, the identifier of the first application, the second identifier, the identifier of the second application, and the first data, wherein the first identifier is a second value and the second identifier is a third value; In response to a second operation of opening the second application, the electronic device sends the second identifier and the identifier of the second application to the server, such that the second identifier and the second application identifier are stored in the server, the second identifier being a fourth value.

2. The method according to claim 1, characterized in that, The method further includes, in response to the first operation of opening a first application in the electronic device: The electronic device sends a third identifier to the server. The third identifier corresponds to the first identifier, the identifier of the second application, the second identifier, and the first data, so that the server deletes the second identifier, the identifier of the second application, and the first data based on the correspondence.

3. The method according to claim 1 or 2, characterized in that, In response to the first operation of opening a first application in the electronic device, the electronic device sends a first identifier and an identifier of the first application to the server, including: In response to the first operation of opening the first application in the electronic device, the electronic device determines whether a privacy agreement has been signed. Without signing the privacy agreement, the electronic device sends the first identifier and the identifier of the first application to the server.

4. The method according to claim 3, characterized in that, The method further includes: If the aforementioned privacy agreement has been signed, the electronic device determines whether it stores the first identifier and the identifier of the first application; If the first identifier and the identifier of the first application are not stored, the electronic device sends the first identifier and the identifier of the first application to the server.

5. The method according to any one of claims 1 to 4, characterized in that, The first data is the pre-registration data for the first game; The method further includes: In response to a third operation of reserving the first game in the first application, the electronic device sends reservation information for the first game to the server, causing the server to store the reservation data for the first game.

6. The method according to claim 5, characterized in that, The method further includes the second operation in response to opening the second application: The electronic device sends a request message to the server, causing the server to send the reservation data for the first game to the electronic device; The electronic device displays that the first game has been reserved based on the reservation data of the first game.

7. A processing method for an application, characterized in that, The method, applied to a communication system including electronic devices and servers, includes: After the electronic device is restored to factory settings, in response to the first operation of opening the first application in the electronic device, the electronic device sends a first identifier and the identifier of the first application to the server, wherein the first identifier is a first value; The server updates the stored first identifier to the first value based on the first identifier and the identifier of the first application, and deletes the second identifier, the identifier of the second application in the electronic device, and the first data. The second identifier is related to the second application in the electronic device, and the second application shares the first data with the first application. Before the electronic device is restored to factory settings, the server stores the first identifier, the identifier of the first application, the second identifier, the identifier of the second application, and the first data, wherein the first identifier is a second value and the second identifier is a third value; In response to the second operation of opening the second application, the electronic device sends the second identifier and the identifier of the second application to the server; The server stores the second identifier and the second application identifier, wherein the second identifier is a fourth value.

8. An electronic device, characterized in that, The electronic device includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, and the one or more processors invoking the computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 6.

9. A chip system, characterized in that, The chip system is applied to an electronic device, the chip system including one or more processors, the one or more processors being used to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 6.

11. A computer program product, characterized in that, The computer program product includes computer program code that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Conference data processing method and device, equipment and storage medium

    CN116743686A

  • Live broadcast interaction method and device, readable medium and electronic equipment

    CN117499727A