Resource Sending Method, Resource Obtaining Method, Device, Equipment and Server

By receiving the device identification information of electronic devices, and automatically sending resource acquisition requests using the device identification whitelist, solving the problem of high labor costs in electronic device resource configuration and realizing the automation and security of resource allocation.

CN115086944BActive Publication Date: 2025-07-04GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210665847.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-13
Publication Date
2025-07-04
Estimated Expiration
2042-06-13

AI Technical Summary

Technical Problem

In the prior art, the allocation of electronic equipment resources requires a lot of manual intervention, resulting in high labor costs.

Method used

By receiving device identification information of electronic devices, using device identification whitelists for verification, automatically sending resource acquisition requests and loading resources, reducing manual intervention.

Benefits of technology

It realizes automation of electronic equipment resource allocation, saves labor costs, and ensures resource security and legality through equipment identification whitelists.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086944B_ABST
    Figure CN115086944B_ABST
Patent Text Reader

Abstract

The present application discloses a resource sending method, a resource obtaining method, an apparatus, a device and a server, belonging to the technical field of computers. The method includes: receiving verification information sent by an electronic device, where the verification information includes a device identifier corresponding to the electronic device; determining a verification result corresponding to the verification information based on a device identifier whitelist, where the verification result indicates whether the device identifier belongs to the device identifier whitelist, and sending the verification result to the electronic device; receiving a resource obtaining request sent by the electronic device, where the resource obtaining request is sent by the electronic device when the device identifier belongs to the device identifier whitelist; and in response to the resource obtaining request, sending a resource corresponding to the resource obtaining request to the electronic device. The solution provided by the embodiments of the present application realizes a solution for automatically sending resources to an electronic device, eliminating the need for manual configuration of resources for the electronic device by humans, thus saving labor costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of computer technologies, and particularly to a resource sending method, a resource obtaining method, an apparatus, a device, and a server. Background Art

[0002] With the development of computer technologies, the functions of electronic devices are becoming more and more diverse. Different resources are usually configured in electronic devices to implement different functions. For example, an electronic device loads interface display resources to implement corresponding interface display functions, or loads configuration resources to implement corresponding configurations. In related technologies, resources are usually manually configured in an electronic device during the production of the electronic device, but this method requires a large amount of human cost. Summary of the Invention

[0003] Embodiments of the present application provide a resource sending method, a resource obtaining method, an apparatus, a device, and a server, which can save human cost. The technical solutions are as follows:

[0004] According to one aspect of the embodiments of the present application, a resource sending method is provided. The method includes:

[0005] Receiving verification information sent by an electronic device, where the verification information includes a device identifier corresponding to the electronic device;

[0006] Determining a verification result corresponding to the verification information based on a device identifier white list, where the verification result indicates whether the device identifier belongs to the device identifier white list, and sending the verification result to the electronic device;

[0007] Receiving a resource obtaining request sent by the electronic device, where the resource obtaining request is sent by the electronic device when the device identifier belongs to the device identifier white list;

[0008] In response to the resource obtaining request, sending a resource corresponding to the resource obtaining request to the electronic device.

[0009] According to another aspect of the embodiments of the present application, a resource obtaining method is provided. The method includes:

[0010] When a SIM (Subscriber Identity Module) card is not inserted into the electronic device, sending verification information to a server, where the verification information includes a device identifier corresponding to the electronic device;

[0011] Receiving a verification result of the server for the verification information, where the verification result indicates whether the device identifier belongs to a device identifier white list;

[0012] When the verification result indicates that the device identifier belongs to the device identifier whitelist, send a resource acquisition request to the server;

[0013] Receive the resources sent by the server based on the resource acquisition request, and load the resources.

[0014] In some embodiments, the sending the verification information to the server includes:

[0015] When the electronic device starts successfully, send the verification information to the server; or,

[0016] Send the verification information to the server at preset time intervals.

[0017] In some embodiments, the loading the resources includes:

[0018] The resources include interface layout resources. Load the interface layout resources and display an interface that matches the interface layout resources; or,

[0019] The resources include configuration resources. Load the configuration resources and configure the electronic device based on the configuration resources.

[0020] According to another aspect of the embodiments of the present application, a resource sending method is provided. The method includes:

[0021] Receive verification information sent by an electronic device when a SIM card is inserted. The verification information includes the device identifier corresponding to the electronic device and SIM card information, and the SIM card information indicates the operator to which the SIM card belongs;

[0022] Based on the device identifier whitelist and the operator whitelist, determine the verification result corresponding to the verification information. The verification result indicates whether the device identifier belongs to the device identifier whitelist and indicates whether the operator indicated by the SIM card information belongs to the operator whitelist, and send the verification result to the electronic device;

[0023] Receive a resource acquisition request sent by the electronic device. The resource acquisition request is sent by the electronic device when the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information belongs to the operator whitelist;

[0024] In response to the resource acquisition request, send the resources corresponding to the resource acquisition request to the electronic device.

[0025] According to another aspect of the embodiments of the present application, a resource acquisition method is provided. The method includes:

[0026] When a SIM card is inserted into the electronic device, send verification information to the server, where the verification information includes the device identifier corresponding to the electronic device and SIM card information, and the SIM card information indicates the operator to which the SIM card inserted into the electronic device belongs;

[0027] Receive the verification result of the server for the verification information, where the verification result indicates whether the device identifier belongs to the device identifier whitelist and indicates whether the operator indicated by the SIM card information belongs to the operator whitelist;

[0028] When the verification result indicates that the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information belongs to the operator whitelist, send a resource acquisition request to the server;

[0029] Receive the resources sent by the server based on the resource acquisition request and load the resources.

[0030] In some embodiments, the sending of the verification information to the server in response to detecting the operation of inserting a SIM card includes:

[0031] In response to detecting the operation of inserting a SIM card, extract the SIM card information from the SIM card inserted into the electronic device and obtain the device identifier corresponding to the electronic device;

[0032] Send the verification information to the server.

[0033] In some embodiments, the extracting of the SIM card information from the SIM card inserted into the electronic device and obtaining the device identifier corresponding to the electronic device in response to detecting the operation of inserting a SIM card includes:

[0034] In response to detecting the operation of inserting a SIM card, detect the SIM card information corresponding to the SIM card through a Modem, and send a check success notification to the UiccController (Universal Integrated Circuit Card), where the check success notification indicates that the Modem has obtained the SIM card information;

[0035] Through the UiccController, in response to the check success notification, load the SIM card information from the Modem and call back the Integrated Circuit Card Agent Icc Card Proxy;

[0036] Through the Icc Card Proxy (Integrated Circuit Card Agent), update the SIM card status and broadcast a notification to the Subscription Info Updater (Card Information Updater) that the SIM card status has been updated;

[0037] Notify the customized resource downloader through the Subscription Info Updater;

[0038] Obtain the SIM card information and the device identifier through the resource downloader;

[0039] Sending the verification information to the server includes:

[0040] Send the verification information to the server through the resource downloader.

[0041] According to another aspect of the embodiments of the present application, a resource sending device is provided, characterized in that the device includes:

[0042] A receiving module, configured to receive verification information sent by an electronic device, where the verification information includes a device identifier corresponding to the electronic device;

[0043] A determining module, configured to determine a verification result corresponding to the verification information based on a device identifier whitelist, where the verification result indicates whether the device identifier belongs to the device identifier whitelist, and send the verification result to the electronic device;

[0044] The receiving module is further configured to receive a resource acquisition request sent by the electronic device, where the resource acquisition request is sent by the electronic device when the device identifier belongs to the device identifier whitelist;

[0045] A sending module, configured to send a resource corresponding to the resource acquisition request to the electronic device in response to the resource acquisition request.

[0046] In some embodiments, the verification information further includes subscriber identity module (SIM) card information; the determining module is configured to determine a verification result corresponding to the verification information based on the device identifier whitelist and an operator whitelist, where the verification result indicates whether the device identifier belongs to the device identifier whitelist and whether the operator indicated by the SIM card information belongs to the operator whitelist;

[0047] Wherein, the resource acquisition request is sent by the electronic device when the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information does not belong to the operator whitelist.

[0048] In some embodiments, the sending module is configured to carry the device identifier in the resource acquisition request, determine the operator to which the device identifier belongs in response to the resource acquisition request, acquire the resources corresponding to the operator, and send the resources to the electronic device; or, the resource acquisition request carries the system version information of the electronic device, and in response to the resource acquisition request, acquire the resources corresponding to the system version information and send the resources to the electronic device; or, the resource acquisition request carries the device identifier and the system version information, and in response to the resource acquisition request, acquire the resources corresponding to the first information, and send the resources to the electronic device, where the first information is the information with a higher priority and corresponding resources among the device identifier and the system version information.

[0049] According to another aspect of the embodiments of the present application, a resource acquisition device is provided, and the device includes:

[0050] A sending module, configured to send verification information to a server when the electronic device does not insert a SIM card, where the verification information includes the device identifier corresponding to the electronic device;

[0051] A receiving module, configured to receive the verification result of the server for the verification information, where the verification result indicates whether the device identifier belongs to a device identifier white list;

[0052] The sending module is further configured to send a resource acquisition request to the server when the verification result indicates that the device identifier belongs to the device identifier white list;

[0053] A loading module, configured to receive the resources sent by the server based on the resource acquisition request and load the resources.

[0054] In some embodiments, the resource acquisition request carries at least one of the device identifier or the system version information of the electronic device.

[0055] In some embodiments, the sending module is configured to send the verification information to the server when the electronic device starts up successfully; or, send the verification information to the server at preset time intervals.

[0056] In some embodiments, the device further includes:

[0057] A verification module, configured to verify the verification information based on the device identifier white list stored locally;

[0058] The sending module is configured to send the verification information to the server when the verification of the verification information is passed.

[0059] In some embodiments, the loading module is used for the resource including an interface layout resource, loading the interface layout resource, and displaying an interface matching the interface layout resource; or, the resource includes a configuration resource, loading the configuration resource, and configuring the electronic device based on the configuration resource.

[0060] According to another aspect of the embodiments of the present application, a resource sending device is provided, and the device includes:

[0061] A receiving module, configured to receive verification information sent by an electronic device when a SIM card is inserted, where the verification information includes a device identifier corresponding to the electronic device and SIM card information, and the SIM card information indicates the operator to which the SIM card belongs;

[0062] A determining module, configured to determine a verification result corresponding to the verification information based on a device identifier whitelist and an operator whitelist, where the verification result indicates whether the device identifier belongs to the device identifier whitelist and indicates whether the operator indicated by the SIM card information belongs to the operator whitelist, and send the verification result to the electronic device;

[0063] The receiving module is further configured to receive a resource acquisition request sent by the electronic device, where the resource acquisition request is sent by the electronic device when the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information belongs to the operator whitelist;

[0064] A sending module, configured to, in response to the resource acquisition request, send a resource corresponding to the resource acquisition request to the electronic device.

[0065] In some embodiments, the sending module is configured for the resource acquisition request to carry the SIM card information and the device identifier; in response to the resource acquisition request, acquire a resource corresponding to second information, where the second information is the information with a higher priority and having a corresponding resource among the SIM card information and the device identifier; or, the resource acquisition request carries the SIM card information, the device identifier, and the system version information of the electronic device; in response to the resource acquisition request, acquire a resource corresponding to third information, where the third information is the information with a higher priority and having a corresponding resource among the SIM card information, the device identifier, and the system version information.

[0066] According to another aspect of the embodiments of the present application, a resource acquisition device is provided, and the device includes:

[0067] A sending module, configured to send authentication information to a server when a SIM card is inserted into an electronic device, where the authentication information includes a device identifier corresponding to the electronic device and SIM card information, and the SIM card information indicates the operator to which the SIM card inserted into the electronic device belongs;

[0068] A receiving module, configured to receive a verification result of the authentication information from the server, where the verification result indicates whether the device identifier belongs to a device identifier whitelist and whether the operator indicated by the SIM card information belongs to an operator whitelist;

[0069] The sending module is further configured to send a resource acquisition request to the server when the verification result indicates that the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information belongs to the operator whitelist;

[0070] The receiving module is configured to receive a resource sent by the server based on the resource acquisition request and load the resource.

[0071] In some embodiments, the resource acquisition request carries the device identifier and the SIM card information; or,

[0072] The resource acquisition request carries the device identifier, the SIM card information, and the system version information of the electronic device.

[0073] In some embodiments, the sending module is configured to send the authentication information to the server in response to detecting an operation of inserting a SIM card; or, when the electronic device is successfully started and a SIM card has been inserted into the electronic device, send the authentication information to the server; or, when a SIM card has been inserted into the electronic device, send the authentication information to the server at preset time intervals.

[0074] In some embodiments, the sending module is configured to, in response to detecting an operation of inserting a SIM card, extract the SIM card information from the SIM card inserted into the electronic device, obtain the device identifier corresponding to the electronic device, and send the authentication information to the server.

[0075] In some embodiments, the sending module is configured to, in response to detecting an operation of inserting a SIM card, detect the SIM card information corresponding to the SIM card through a Modem, and send a check success notification to a UiccController, where the check success notification indicates that the Modem has obtained the SIM card information;

[0076] Through the UiccController, in response to the successful check notification, load the SIM card information from the Modem and call back the integrated circuit card proxy Icc Card Proxy;

[0077] Update the SIM card status through the Icc Card Proxy and broadcast a notification to the Subscription Info Updater that the SIM card status has been updated;

[0078] Notify the customized resource downloader through the Subscription Info Updater;

[0079] Obtain the SIM card information and the device identifier through the resource downloader;

[0080] Send the verification information to the server through the resource downloader.

[0081] According to another aspect of the embodiments of the present application, a server is provided. The server includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the resource sending method as described in the above aspect.

[0082] According to another aspect of the embodiments of the present application, an electronic device is provided. The electronic device includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the resource obtaining method as described in the above aspect.

[0083] According to another aspect of the embodiments of the present application, a chip is provided. The chip includes programmable logic circuits and / or program instructions, and when the chip runs on a terminal, it is used to implement the resource sending method or the resource obtaining method as described in the above aspect.

[0084] According to another aspect of the embodiments of the present application, a computer program product is provided. The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the resource sending method or the resource obtaining method as described in the above aspect.

[0085] According to another aspect of the embodiments of the present application, a computer program product is provided. The computer program product stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the resource sending method or the resource obtaining method as described in the above aspect.

[0086] The embodiments of the present application provide a solution for an electronic device to automatically obtain resources, which eliminates the need for manual configuration of resources for the electronic device, thus saving labor costs. Moreover, the device identification white list set in the server indicates the electronic devices allowed by the server to send resources. Through the server, when the device identification corresponding to the electronic device belongs to the device identification white list, resources are sent to the electronic device, verifying the legitimacy of the electronic device to ensure the security of the resources in the server, and realizing a way of sending resources in a targeted manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

[0088] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0089] Figure 2 shows a flowchart of a resource sending method provided by an exemplary embodiment of the present application;

[0090] Figure 3 shows a flowchart of a resource obtaining method provided by an exemplary embodiment of the present application;

[0091] Figure 4 shows a flowchart of another resource sending method provided by an exemplary embodiment of the present application;

[0092] Figure 5 shows a flowchart of another resource obtaining method provided by an exemplary embodiment of the present application;

[0093] Figure 6 shows a flowchart of yet another resource obtaining method provided by an exemplary embodiment of the present application;

[0094] Figure 7 shows a flowchart of still another resource obtaining method provided by an exemplary embodiment of the present application;

[0095] Figure 8 shows a schematic diagram of sending verification information provided by an exemplary embodiment of the present application;

[0096] Figure 9 shows a flowchart of another method for sending verification information provided by an exemplary embodiment of the present application;

[0097] Figure 10The flowchart of yet another resource acquisition method provided by an exemplary embodiment of the present application is shown;

[0098] Figure 11 The structural block diagram of a resource sending device provided by an exemplary embodiment of the present application is shown;

[0099] Figure 12 The structural block diagram of a resource acquisition device provided by an exemplary embodiment of the present application is shown;

[0100] Figure 13 The structural block diagram of another resource acquisition device provided by an exemplary embodiment of the present application is shown;

[0101] Figure 14 The structural block diagram of another resource sending device provided by an exemplary embodiment of the present application is shown;

[0102] Figure 15 The structural block diagram of yet another resource acquisition device provided by an exemplary embodiment of the present application is shown;

[0103] Figure 16 The structural block diagram of a terminal provided by an exemplary embodiment of the present application is shown;

[0104] Figure 17 The structural block diagram of a server provided by an exemplary embodiment of the present application is shown. Detailed implementation manners

[0105] To make the objectives, technical solutions, and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0106] As used herein, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0107] It should be noted that the information (including but not limited to device identifiers, SIM card information, etc.), resources, and signals involved in the present application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions. For example, the SIM card information involved in the present application is obtained under full authorization.

[0108] An embodiment of the present application provides a resource sending method, which is executed by a server. In some embodiments, the server is a single server, or a server cluster composed of several servers, or a cloud computing server center.

[0109] An embodiment of the present application also provides a resource acquisition method, which is executed by an electronic device. In some embodiments, the electronic device is various types of terminals such as a mobile phone, a desktop computer, a laptop computer, a tablet computer, a smart TV, a smart speaker, a vehicle-mounted terminal, a smart robot, etc.

[0110] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. As Figure 1 shown, the implementation environment includes an electronic device 101 and a server 102, and a communication connection is established between the electronic device 101 and the server 102. In some embodiments, the electronic device 101 communicates with the server 102 through a wireless network. Among them, the wireless network is a WiFi (Wireless Fidelity) network or a cellular network, etc.

[0111] The server 102 is used to provide resources for the electronic device 101, and the resources are used for the electronic device 101 to implement corresponding functions. The electronic device 101 can interact with the server 102, obtain resources from the server 102, and thus implement corresponding functions.

[0112] Figure 2 shows a flowchart of a resource sending method provided by an exemplary embodiment of the present application. Refer to Figure 2 , which is executed by the server, and the method includes:

[0113] 201. The server receives verification information sent by the electronic device, and the verification information includes the device identifier corresponding to the electronic device.

[0114] In an embodiment of the present application, at least one type of resource is stored in the server, such as interface layout resources or configuration resources. And a device identifier whitelist is set in the server, and the device identifier whitelist includes at least one device identifier. The device identifier is a unique identifier used to indicate the electronic device, and different electronic devices correspond to different device identifiers. The device identifiers in the device identifier whitelist are used to indicate the electronic devices allowed by the server to send resources. If the device identifier of any electronic device belongs to the device identifier whitelist, the server is allowed to send resources to the electronic device. If the device identifier of any electronic device does not belong to the device identifier whitelist, the server is not allowed to send resources to the electronic device.

[0115] For any electronic device, in order to determine whether to allow sending resources to the electronic device, it is necessary to first receive the verification information sent by the electronic device, so as to subsequently determine whether to send resources to the electronic device based on whether the device identifier in the verification information belongs to the device identifier whitelist.

[0116] 202. The server determines the verification result corresponding to the verification information based on the device identifier whitelist. The verification result indicates whether the device identifier belongs to the device identifier whitelist, and sends the verification result to the electronic device.

[0117] In the embodiment of the present application, after receiving the verification information sent by the electronic device, the server compares the device identifier included in the verification information with the device identifiers in the device identifier whitelist to determine whether the device identifier included in the verification information belongs to the device identifier whitelist, so as to obtain the verification result. After obtaining the verification result, the server sends the verification result to the electronic device, so that the electronic device can determine whether the device identifier belongs to the device identifier whitelist, and further determine whether it can obtain resources from the server.

[0118] 203. The server receives a resource acquisition request sent by the electronic device. The resource acquisition request is sent by the electronic device when the device identifier belongs to the device identifier whitelist.

[0119] In the embodiment of the present application, after receiving the verification result, the electronic device will send a resource acquisition request to the server only when the device identifier corresponding to the electronic device belongs to the device identifier whitelist, so as to obtain the corresponding resources from the server.

[0120] 204. In response to the resource acquisition request, the server sends the resource corresponding to the resource acquisition request to the electronic device.

[0121] After receiving the resource acquisition request sent by the electronic device, the server will obtain the resource corresponding to the resource request, that is, the resource requested by the resource acquisition request, and send the resource to the electronic device.

[0122] The embodiment of the present application provides a solution for an electronic device to automatically obtain resources, which does not require manual configuration of resources for the electronic device, thus saving labor costs. Moreover, the device identifier whitelist set in the server indicates the electronic devices that are allowed to send resources by the server. Through the server, resources are sent to the electronic device when the device identifier corresponding to the electronic device belongs to the device identifier whitelist, verifying the legitimacy of the electronic device to ensure the security of the resources in the server, and realizing a way of sending resources in a targeted manner.

[0123] Figure 3 Shows a flowchart of a resource acquisition method provided by an exemplary embodiment of the present application. SeeFigure 3 , which is executed by an electronic device, and the method includes:

[0124] 301. When the SIM card is not inserted, the electronic device sends verification information to the server, and the verification information includes the device identifier corresponding to the electronic device.

[0125] In the embodiments of the present application, at least one type of resource is stored in the server, such as interface layout resources or configuration resources. And a device identifier whitelist is set in the server, and the device identifier whitelist includes at least one device identifier. The device identifier is a unique identifier used to indicate the electronic device, and different electronic devices correspond to different device identifiers. The device identifiers in the device identifier whitelist are used to indicate the electronic devices that are allowed to receive resources from the server. If the device identifier of any electronic device belongs to the device identifier whitelist, the server is allowed to send resources to the electronic device. If the device identifier of any electronic device does not belong to the device identifier whitelist, the server is not allowed to send resources to the electronic device.

[0126] In the embodiments of the present application, in order to determine whether resources can be obtained from the server, the electronic device needs to first send verification information to the server. When the SIM card is not inserted, the electronic device cannot obtain SIM card information. The verification information sent by the electronic device to the server includes the device identifier corresponding to the electronic device and does not include SIM card information. Subsequently, the server verifies the device identifier and no longer verifies the SIM card information of the electronic device, so that the electronic device can determine whether resources can be obtained from the server based on whether the device identifier in the verification information belongs to the device identifier whitelist.

[0127] Wherein, the SIM card is a user identification card of a cellular mobile phone, and the SIM card is used to be inserted into the electronic device so that the electronic device can perform mobile communication through the SIM card.

[0128] 302. The electronic device receives the verification result of the server for the verification information, and the verification result indicates whether the device identifier belongs to the device identifier whitelist.

[0129] In the embodiments of the present application, the server compares the device identifier included in the verification information with the device identifiers in the device identifier whitelist to determine whether the device identifier included in the verification information belongs to the device identifier whitelist, thereby obtaining the verification result and sending the verification result to the electronic device. After the electronic device receives the verification result, it determines whether the device identifier belongs to the device identifier whitelist, and further determines whether resources can be obtained from the server.

[0130] 303. When the verification result indicates that the device identifier belongs to the device identifier whitelist, the electronic device sends a resource acquisition request to the server.

[0131] In an embodiment of the present application, when the verification result indicates that the device identifier belongs to the device identifier whitelist, it means that the electronic device can obtain resources from the server. Then, the electronic device sends a resource acquisition request to the server to request corresponding resources.

[0132] 304. The electronic device receives the resources sent by the server based on the resource acquisition request and loads the resources.

[0133] The embodiment of the present application provides a solution for an electronic device to automatically obtain resources without a SIM card, eliminating the need for manual configuration of resources for the electronic device, thus saving labor costs. Moreover, the device identifier whitelist set in the server indicates the electronic devices allowed to receive resources from the server. Through the server, when the device identifier corresponding to the electronic device belongs to the device identifier whitelist, resources are sent to the electronic device, verifying the legitimacy of the electronic device to ensure the security of the resources in the server and implementing a way of targeted resource sending.

[0134] Figure 4 The flowchart of another resource sending method provided by an exemplary embodiment of the present application is shown. Refer to Figure 4 This method is executed by the server and includes:

[0135] 401. The server receives the verification information sent by the electronic device when a SIM card is inserted. The verification information includes the device identifier corresponding to the electronic device and the SIM card information, and the SIM card information indicates the operator to which the SIM card belongs.

[0136] In an embodiment of the present application, a device identifier whitelist and an operator whitelist are set in the server. The device identifier whitelist includes at least one device identifier, and the device identifiers in the device identifier whitelist are used to indicate the electronic devices allowed to receive resources from the server, while the operator whitelist is used to indicate the operators allowed to receive resources from the server. If the operator to which the SIM card inserted by any electronic device belongs is in the operator whitelist, the server is allowed to send resources to the electronic device with the SIM card belonging to that operator inserted. If the operator to which the SIM card inserted by any electronic device belongs is not in the operator whitelist, the server is not allowed to send resources to the electronic device with the SIM card not belonging to that operator inserted.

[0137] Then, for any electronic device, in order to determine whether to allow sending resources to the electronic device, it is necessary to first receive the verification information sent by the electronic device. When the SIM card is inserted into the electronic device, the electronic device can obtain the SIM card information, and then it will send the verification information including the device identifier and the SIM card information to the server, so that the server can determine whether to send resources to the electronic device based on whether the device identifier in the verification information belongs to the device identifier whitelist and whether the operator indicated by the SIM card information in the verification information belongs to the operator whitelist.

[0138] 402. The server determines the verification result corresponding to the verification information based on the device identifier whitelist and the operator whitelist. The verification result indicates whether the device identifier belongs to the device identifier whitelist and whether the operator indicated by the SIM card information belongs to the operator whitelist, and sends the verification result to the electronic device.

[0139] In the embodiment of the present application, after receiving the verification information reported by the electronic device, the server verifies the device identifier in the verification information based on the device identifier whitelist and verifies the SIM card information based on the operator whitelist, so as to determine whether the device identifier included in the verification information belongs to the device identifier whitelist and whether the operator indicated by the SIM card information belongs to the operator whitelist, thereby obtaining the verification result and sending the verification result to the electronic device, so that the electronic device can determine whether the device identifier belongs to the device identifier whitelist and whether the operator to which the SIM card information belongs belongs to the operator whitelist, and further determine whether it can obtain resources from the server.

[0140] 403. The server receives a resource acquisition request sent by the electronic device, and the resource acquisition request is sent by the electronic device when the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information belongs to the operator whitelist.

[0141] In the embodiment of the present application, after receiving the verification result, when the electronic device determines that the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information belongs to the operator whitelist, it will request resources from the server in order to obtain the corresponding resources from the server.

[0142] 404. The server responds to the resource acquisition request and sends the resource corresponding to the resource acquisition request to the electronic device.

[0143] In the embodiment of the present application, after receiving the resource acquisition request sent by the electronic device, the server will obtain the resource corresponding to the resource request, that is, the resource requested by the resource acquisition request, and send the resource to the electronic device.

[0144] The embodiment of the present application provides a solution for an electronic device to automatically obtain resources, which eliminates the need for manual configuration of resources for the electronic device, thus saving labor costs. Moreover, the device identification white list set in the server indicates the electronic devices allowed by the server to send resources, and the operator white list set in the server indicates the operators allowed by the server to send resources. Through the server, resources are sent to the electronic device when the device identification corresponding to the electronic device belongs to the device identification white list and the operator to which the SIM card inserted in the electronic device belongs belongs to the operator white list, verifying the legality of the electronic device to ensure the security of the resources in the server and implementing a way of sending resources in a targeted manner.

[0145] Figure 5 The flowchart of another resource acquisition method provided by an exemplary embodiment of the present application is shown. Refer to Figure 5 This method is executed by an electronic device and includes:

[0146] 501. When the electronic device inserts a SIM card, it sends verification information to the server. The verification information includes the device identification corresponding to the electronic device and SIM card information, and the SIM card information indicates the operator to which the SIM card inserted in the electronic device belongs.

[0147] In the embodiment of the present application, a device identification white list and an operator white list are set in the server.

[0148] The device identification white list includes at least one device identification. The device identifications in the device identification white list are used to indicate the electronic devices allowed by the server to send resources, and the operator white list is used to indicate the operators allowed by the server to send resources. If the operator to which the SIM card inserted in any electronic device belongs belongs to the operator white list, the server is allowed to send resources to the electronic device with the SIM card belonging to this operator inserted. If the operator to which the SIM card inserted in any electronic device belongs does not belong to the operator white list, the server is not allowed to send resources to the electronic device with the SIM card not belonging to this operator inserted.

[0149] In the embodiment of the present application, in order to determine whether resources can be obtained from the server, the electronic device needs to first send verification information to the server. When the electronic device inserts a SIM card, the electronic device can obtain SIM card information. The verification information sent by the electronic device to the server includes the device identification corresponding to the electronic device and the SIM card information. Subsequently, the server verifies the operator indicated by the device identification and the SIM card information, so that the electronic device determines whether resources can be obtained from the server based on whether the device identification in the verification information belongs to the device identification white list and whether the operator indicated by the SIM card information in the verification information belongs to the operator white list.

[0150] 502. The electronic device receives the verification result of the verification information from the server. The verification result indicates whether the device identifier belongs to the device identifier whitelist, and indicates whether the operator indicated by the SIM card information belongs to the operator whitelist.

[0151] In the embodiment of the present application, after the server obtains the verification result corresponding to the verification information based on the device identifier whitelist and the operator whitelist, it will send the verification result to the electronic device. After the electronic device receives the verification result, it determines whether the device identifier belongs to the device identifier whitelist, and determines whether the operator indicated by the SIM card information belongs to the operator whitelist, and then determines whether it can download resources from the server.

[0152] 503. When the verification result indicates that the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information belongs to the operator whitelist, the electronic device sends the resource acquisition request to the server.

[0153] In the embodiment of the present application, when the electronic device determines that the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card belongs to the operator whitelist, it will send a resource acquisition request to the server to request the corresponding resources.

[0154] 504. The electronic device receives the resources sent by the server based on the resource acquisition request and loads the resources.

[0155] The embodiment of the present application provides a solution for an electronic device to automatically obtain resources, which does not require manual configuration of resources for the electronic device, thus saving labor costs. Moreover, the device identifier whitelist set in the server indicates the electronic devices allowed to receive resources from the server, and the operator whitelist set in the server indicates the operators allowed to receive resources from the server. Through the server, resources are sent to the electronic device when the device identifier corresponding to the electronic device belongs to the device identifier whitelist and the operator to which the SIM card inserted in the electronic device belongs belongs to the operator whitelist, verifying the legitimacy of the electronic device to ensure the security of the resources in the server, and realizing a way of sending resources in a targeted manner.

[0156] In the above Figure 2 and Figure 3 On the basis of the shown embodiments, when determining the resources corresponding to the electronic device, the device identifier of the electronic device can be used to find resources or the system version information of the electronic device can be used to find resources. For the specific process, please refer to the following embodiments.

[0157] Figure 6 shows a flowchart of a resource acquisition method provided by an exemplary embodiment of the present application. As Figure 6 shown, the method includes:

[0158] 601. When the electronic device starts up successfully and the electronic device does not insert a SIM card, the electronic device sends verification information to the server, and the verification information includes the device identifier corresponding to the electronic device.

[0159] In an embodiment of the present application, when the electronic device starts up successfully and it is determined that the electronic device itself does not insert a SIM card, the electronic device will send verification information including the device identifier to the server to request the server to verify the device identifier.

[0160] Among them, when the electronic device starts up successfully, it means that the electronic device starts from the shutdown state and starts up successfully. After the electronic device starts up successfully, the user can operate the electronic device.

[0161] In a possible display mode, the process of the electronic device sending verification information to the server includes: when the electronic device starts up successfully and the electronic device does not insert a SIM card, verifying the verification information based on the device identifier whitelist stored locally; and when the verification of the verification information passes, sending the verification information to the server.

[0162] In an embodiment of the present application, the electronic device stores a device identifier whitelist, and the device identifier whitelist includes at least one device identifier. The device identifiers in the device identifier whitelist are used to indicate the electronic devices that are allowed to send resources to the server. When the electronic device starts up successfully and the electronic device does not insert a SIM card, at this time, it is necessary to send verification information to the server, then first verify the device identifier based on the device identifier whitelist stored locally. If the device identifier belongs to the device identifier whitelist, it means that the verification of the verification information passes. If the device identifier does not belong to the device identifier whitelist, it means that the verification of the verification information fails. The electronic device will only send the verification information to the server when the verification of the verification information passes, so as to avoid the situation of sending invalid verification information to the server and then having the server verify the invalid verification information, thereby reducing the pressure on the server.

[0163] Optionally, the device identifier whitelist stored in the electronic device is obtained from the server, that is, the process of the electronic device obtaining the device identifier whitelist includes: the electronic device sends a list obtaining request to the server, and the server responds to the list obtaining request and sends the device identifier whitelist to the electronic device; or, the server actively sends the device identifier whitelist to the electronic device, and the present application does not limit this.

[0164] It should be noted that in an embodiment of the present application, taking the time when the electronic device starts up successfully as the sending opportunity of the verification information as an example, the verification information is sent to the server. In another embodiment, the above step 601 does not need to be executed, and the electronic device sends the verification information to the server at other times.

[0165] In a possible implementation, the process of the electronic device sending verification information to the server includes: when the SIM card is not inserted, the electronic device sends the verification information to the server at preset intervals.

[0166] Among them, the preset interval is any length of time. For example, the preset interval is one week or 48 hours, etc. In the embodiments of the present application, when the SIM card is not inserted, the electronic device will send verification information to the server at preset intervals. For example, when the interval duration between the current time point and the previous time point of sending verification information reaches the preset interval, the verification information will be sent to the server.

[0167] 602. The server receives the verification information sent by the electronic device. The verification information includes the device identifier corresponding to the electronic device. Based on the device identifier whitelist, the server determines the verification result corresponding to the verification information. The verification result indicates whether the device identifier belongs to the device identifier whitelist, and sends the verification result to the electronic device.

[0168] In a possible implementation, the verification result includes a first verification result or a second verification result. The first verification result indicates that the device identifier included in the verification information belongs to the device identifier whitelist, and the second verification result indicates that the device identifier included in the verification information does not belong to the device identifier whitelist.

[0169] In the embodiments of the present application, the device identifier whitelist includes at least one device identifier. The device identifier included in the verification information is compared with the device identifiers included in the device identifier whitelist. When it is determined that the device identifier included in the verification information belongs to the device identifier whitelist, the first verification result is obtained. When it is determined that the device identifier included in the verification information does not belong to the device identifier whitelist, the second verification result is obtained.

[0170] 603. The electronic device receives the verification result of the verification information by the server. When the verification result indicates that the device identifier belongs to the device identifier whitelist, the electronic device sends the resource acquisition request to the server. The resource acquisition request carries the device identifier corresponding to the electronic device and the system version information of the electronic device.

[0171] In the embodiments of the present application, after receiving the verification result sent by the server, the electronic device will perform different operations based on different verification results. When the verification result indicates that the device identifier belongs to the device identifier whitelist, the electronic device sends the resource acquisition request to the server. When the verification result indicates that the device identifier does not belong to the device identifier whitelist, the electronic device will no longer send the resource acquisition request to the server.

[0172] When the verification result indicates that the device identifier belongs to the device identifier whitelist, it means that the electronic device can obtain resources from the server. However, considering that the server may or may not have resources corresponding to the device identifier, and may also have resources corresponding to the system version information, the resource acquisition request sent to the server carries the device identifier and the system version information to ensure that resources can be obtained as much as possible.

[0173] Among them, the system version information indicates the version of the operating system in the electronic device. For example, if the operating system in the electronic device is a certain version of the Android system, the system version information is the version number of the Android system or other information, and the version of the operating system in the electronic device can be determined through the system version information.

[0174] 604. The server receives the resource acquisition request sent by the electronic device, and in response to the resource acquisition request, acquires the resources corresponding to the first information and sends the resources to the electronic device.

[0175] In the embodiments of the present application, the first information is the information with a higher priority and corresponding resources among the device identifier and the system version information. The server may store resources corresponding to the device identifier, and may also have resources corresponding to the system version information. Moreover, there is a priority between the device identifier and the system version information. Therefore, resources are acquired according to the priority of the device identifier and the system version information to obtain the resources corresponding to the information with a higher priority as much as possible, so as to ensure the accuracy of the acquired resources.

[0176] For example, if the priority of the device identifier is higher than that of the system version information, if there are resources corresponding to the device identifier, the resources corresponding to the device identifier are acquired, that is, the first information is the device identifier; but if there are no resources corresponding to the device identifier and there are resources corresponding to the system version information, the resources corresponding to the system version information are acquired. That is, the first information is the system version information.

[0177] For another example, if the priority of the system version information is higher than that of the device identifier, if there are resources corresponding to the system version information, the resources corresponding to the system version information are acquired, that is, the first information is the system version information; but if there are no resources corresponding to the system version information and there are resources corresponding to the device identifier, the resources corresponding to the device identifier are acquired. That is, the first information is the device identifier.

[0178] In a possible implementation manner, the resource acquisition request also carries a priority identifier of the device identifier and the system version information. Among them, the priority identifier indicates the priority of the corresponding information. The server can determine the priorities of the system version information and the device identifier through the priority identifier carried in the resource acquisition request, and acquire resources according to the priorities of the system version information and the device identifier.

[0179] In another possible implementation, the server is set with the priorities of device identifiers and system version information. After receiving a resource acquisition request, the server acquires resources according to the priorities of the device identifier and system version information carried in the resource acquisition request.

[0180] In a possible implementation, resources in the server are stored in any form. For example, the resources are stored in the form of APK (Android application package), Feature (a file format) files, etc.

[0181] In a possible implementation, if the first information is a device identifier, the process of acquiring resources includes: determining the operator to which the device identifier belongs, and acquiring the resources corresponding to the operator.

[0182] In the embodiments of the present application, if the electronic device is a device customized for a certain operator, the device identifier corresponding to the electronic device belongs to the operator. Therefore, when acquiring resources, once it is determined which operator the electronic device belongs to, it is equivalent to determining that the electronic device is a device customized for the operator, and then acquiring the resources corresponding to the operator as the resources corresponding to the device identifier, and sending the resources to the electronic device so that the electronic device can acquire the customized resources of the operator to which it belongs.

[0183] Optionally, the server is set with the correspondence between device identifiers and operator identifiers. The correspondence includes at least one device identifier and the operator identifier corresponding to each device identifier, and the operator identifier indicates the corresponding operator. The server queries the correspondence based on the device identifier carried in the resource acquisition request to obtain the operator identifier corresponding to the device identifier, and thus can determine the operator to which the device identifier belongs.

[0184] In a possible implementation, if the first information is system version information, the process of acquiring resources includes: acquiring the resources corresponding to the system version information. In the embodiments of the present application, the server stores the resources corresponding to at least one system version information, so the resources corresponding to the system version information can be queried.

[0185] In a possible implementation, the process for the server to acquire the resources corresponding to the first information includes: traversing the resources corresponding to each piece of information in sequence according to the priorities of the device identifier and the system version information, and in response to the resources corresponding to any piece of information being traversed currently, acquiring the resources corresponding to the piece of information.

[0186] In the embodiments of the present application, any information being traversed currently is device identification or system version information. According to the priorities of the device identification and system version information, resources corresponding to the information with a higher priority are traversed first. If resources corresponding to the information with a higher priority are traversed, the currently traversed information is the first information, and the currently traversed resources are the resources to be obtained. If resources corresponding to the information with a higher priority are not traversed, then resources corresponding to the information with a lower priority are traversed. If resources corresponding to the information with a lower priority are traversed, the currently traversed information is the first information, and the currently traversed resources are the resources to be obtained.

[0187] 605. The electronic device receives resources sent by the server and loads the resources.

[0188] After receiving the resources sent by the server, the electronic device loads the resources to implement the functions corresponding to the resources.

[0189] In a possible implementation manner, the process of the electronic device loading resources includes at least one of the following:

[0190] (1) The resource includes an interface layout resource. The interface layout resource is loaded, and an interface matching the interface layout resource is displayed.

[0191] Among them, the interface layout resource is used for the electronic device to implement the corresponding interface layout. For example, after the electronic device loads the interface layout resource, it can display the wallpaper or startup screen included in the interface layout resource, or the applications displayed on the electronic device interface are displayed in the style matching the interface layout resource.

[0192] (2) The resource includes a configuration resource. The configuration resource is loaded, and the electronic device is configured based on the configuration resource.

[0193] Among them, the configuration resource is used to configure a certain function in the electronic device. For example, when the electronic device loads the configuration resource, the default state of the traffic switch of the electronic device is set to the off state, or an APK is added to the electronic device, etc.

[0194] It should be noted that the embodiments of this application are described by taking the resource acquisition request carrying the device identifier and the system version information as an example. In another embodiment, the resource acquisition request only carries the device identifier, or the resource acquisition request only carries the system version information. Then, the server acquires the resource corresponding to the device identifier or the system version information carried in the resource acquisition request and sends it to the electronic device, which receives and loads it. In the embodiments of this application, a logical rule for sending a resource acquisition request based on the verification result is configured in the electronic device. After receiving the verification result, the electronic device sends a resource acquisition request carrying different information to the server according to different verification results. When the verification result indicates that the device identifier belongs to the device identifier white list, whether the resource acquisition request sent to the server only carries the device identifier, or only carries the system version information, or carries both the device identifier and the system version information is determined by the logical rule.

[0195] It should be noted that this application is described by taking the acquisition of the resource corresponding to the resource acquisition request as an example. In another embodiment, if the server fails to acquire the resource corresponding to the resource acquisition request, a failure notice is sent to the electronic device, and the failure notice indicates that the resource corresponding to the resource acquisition request has not been acquired. After receiving the failure notice, the electronic device displays the failure notice to remind the user, or does not display the failure notice and no longer sends a resource acquisition request to the server.

[0196] For example, taking the electronic device as a mobile phone, which is a carrier-customized mobile phone. When the mobile phone has no SIM card inserted, and when the mobile phone starts successfully or the time interval between the current time point and the time point of the last sending of the verification information reaches a preset duration, the mobile phone sends verification information to the server. The verification information includes the mobile phone identifier. The device identifier white list set in the server includes at least one mobile phone identifier. Once it is determined that the mobile phone identifier included in the verification information belongs to the device identifier white list, it is determined that the mobile phone is a carrier-customized mobile phone, and a verification result is sent to the mobile phone. After receiving the verification result, when the mobile phone determines that it is a carrier-customized mobile phone itself, it sends a resource acquisition request carrying the mobile phone identifier and the system version information to the server. There is also a corresponding relationship between the mobile phone identifier and the carrier identifier set in the server. Assuming that the priority of the mobile phone identifier is higher than that of the system version information, by querying this corresponding relationship, the carrier identifier corresponding to the mobile phone identifier can be obtained, and the resource corresponding to the carrier identifier is acquired and sent to the mobile phone. The mobile phone receives and loads the resource, realizing the solution for the carrier-customized mobile phone to acquire carrier-customized resources without a SIM card.

[0197] The embodiment of the present application provides a solution for an electronic device to automatically obtain resources without a SIM card, eliminating the need for manual configuration of resources for the electronic device by humans, thus saving labor costs. Moreover, the device identification white list set in the server indicates the electronic devices allowed by the server to send resources. Through the server, when the device identification corresponding to the electronic device belongs to the device identification white list, resources are sent to the electronic device to verify the legality of the electronic device, so as to ensure the security of the resources in the server and achieve a way of sending resources in a targeted manner. Furthermore, the electronic device will only send the verification information to the server when the verification of the verification information is passed, so as to avoid the situation of sending invalid verification information to the server and then having the server verify the invalid verification information, thereby reducing the pressure on the server.

[0198] Furthermore, when the device identification of the electronic device belongs to the device identification white list, the electronic device will send a resource acquisition request carrying the device identification and system version information to the server, so that the server can obtain resources according to the priorities of the device identification and system version information, in order to ensure that the resources corresponding to the information with a higher priority in the device identification and system version information are obtained as much as possible, thereby ensuring that the obtained resources are as accurate as possible.

[0199] Based on the above Figure 2 shown embodiment, the electronic device can also interact with the server when a SIM card is inserted, and when the device identification belongs to the device identification white list and the operator indicated by the SIM card information does not belong to the operator white list, obtain resources from the server. The specific process is detailed in the following embodiments.

[0200] Figure 7 shows a flowchart of a resource acquisition method provided by an exemplary embodiment of the present application. As Figure 7 shown, the method includes:

[0201] 701. In response to detecting an operation of inserting a SIM card, the electronic device sends verification information to the server, where the verification information includes the device identification corresponding to the electronic device and SIM card information, and the SIM card information indicates the operator to which the SIM card inserted in the electronic device belongs.

[0202] In the embodiment of the present application, when a SIM card has been inserted into the electronic device, at this time the electronic device can obtain the SIM card information corresponding to the SIM card. In order to obtain resources in a timely manner and obtain resources as much as possible, once the electronic device detects an operation of inserting a SIM card, it sends verification information including the device identification and SIM card information to the server, so that the server can subsequently verify the device identification and SIM card information.

[0203] In a possible implementation, the electronic device locally stores a device identifier whitelist and a carrier whitelist. The process of sending verification information to the server includes: The electronic device verifies the verification information based on the locally stored device identifier whitelist and carrier whitelist. When the verification of the verification information is passed, the electronic device sends the verification information to the server.

[0204] Among them, the device identifiers in the device identifier whitelist are used to indicate the electronic devices that allow the server to send resources, and the carrier whitelist is used to indicate the carriers that allow the server to send resources. In the embodiments of the present application, the electronic device first verifies the verification information through the locally stored device identifier whitelist and carrier whitelist, and only when the verification of the verification information is passed, will it send the verification information to the server.

[0205] Optionally, the device identifier whitelist stored by the electronic device is obtained from the server. That is, the process for the electronic device to obtain the device identifier whitelist includes: The electronic device sends a list acquisition request to the server, and the server, in response to the list acquisition request, sends the device identifier whitelist and the carrier whitelist to the electronic device; or, the server actively sends the device identifier whitelist and the carrier whitelist to the electronic device.

[0206] As Figure 8 shown, the electronic device obtains the device identifier whitelist and the carrier whitelist from the server for local storage. When the electronic device detects an operation of inserting a SIM card, it extracts SIM card information from the SIM card and obtains a device identifier. Based on the locally stored device identifier whitelist and carrier whitelist, it verifies the device identifier and the SIM card information respectively. Only when both verifications are passed, will it send the verification information to the server.

[0207] Optionally, the device identifier whitelist and the carrier whitelist in the server are dynamically updated. Then, after the device identifier whitelist and the carrier whitelist are updated, the server will send the updated device identifier whitelist and carrier whitelist to the electronic device; or, the electronic device will obtain the updated device identifier whitelist and carrier whitelist from the server every target duration. The target duration is any duration, and when it is necessary to send verification information, it uses the obtained device identifier whitelist and carrier whitelist to verify the verification information with the updated device identifier whitelist and carrier whitelist. As Figure 9As shown, the device identification white list and the operator white list are dynamically updated in the server. After the device identification white list and the operator white list are updated, the server sends the updated device identification white list and operator white list to the electronic device for storage by the electronic device. When the electronic device detects an operation of inserting a SIM card, it extracts SIM card information from the SIM card and obtains the device identification. Based on the locally stored device identification white list and operator white list, it verifies the device identification and the SIM card information respectively. Only when both verifications pass, will it send verification information to the server.

[0208] It should be noted that the embodiments of the present application are described by taking the case where both the SIM card information and the device identification included in the verification information pass the verification as an example. In another embodiment, when only the device identification passes the verification, the verification information including the device identification is sent to the server. That is, this process is similar to the above Figure 6 shown embodiment.

[0209] It should be noted that the embodiments of the present application take the operation of detecting the insertion of a SIM card by the electronic device as the sending opportunity of the verification information to send the verification information to the server. In another embodiment, the above step 701 does not need to be executed, and the electronic device sends the verification information to the server at other times.

[0210] In a possible implementation manner, the process of the electronic device sending verification information to the server includes: when the electronic device starts successfully and the electronic device has inserted a SIM card, sending the verification information to the server; or, when the electronic device has inserted a SIM card, sending the verification information to the server at intervals of a preset time period.

[0211] In the embodiments of the present application, when the electronic device starts successfully, once it is determined that the electronic device itself has not inserted a SIM card, it will send verification information to the server to request the server to verify the device identification. Or, when the electronic device has inserted a SIM card, it will send verification information to the server at intervals of a preset time period. For example, when the interval time period between the current time point and the previous time point of sending verification information reaches the preset time period, it will send verification information to the server.

[0212] 702. The server receives the verification information sent by the electronic device, determines the verification result corresponding to the verification information based on the device identification white list and the operator white list. The verification result indicates whether the device identification belongs to the device identification white list, and indicates whether the operator indicated by the SIM card information belongs to the operator white list, and sends the verification result to the electronic device.

[0213] In a possible implementation, the device identification white list includes at least one device identification, the operator white list includes at least one operator identification, each operator identification indicates an operator, different operator identifications indicate different operators, and the SIM card information includes the operator identification corresponding to the indicated operator. Then the process of obtaining the verification result includes: querying whether the device identification white list contains the device identification included in the verification information, and querying whether the operator white list contains the operator identification included in the SIM card information, to obtain the verification result.

[0214] In the embodiments of the present application, if the device identification included in the verification information is queried from the device identification white list, it means that the device identification belongs to the device identification white list; if the device identification included in the verification information is not queried from the device identification white list, it means that the device identification does not belong to the device identification white list. If the operator identification included in the SIM card information is queried from the operator white list, it means that the operator indicated by the SIM card information belongs to the operator white list; if the operator identification included in the SIM card information is not queried from the operator white list, it means that the operator indicated by the SIM card information does not belong to the operator white list.

[0215] Among them, the operator identification is used to indicate the corresponding operator, and different operators correspond to different operator identifications. Optionally, the operator identification includes MCC (Mobile Country Code) and MNC (Mobile Network Code). In the embodiments of the present application, at least one of the MCC or MNC included in the operator identifications corresponding to different operators is different.

[0216] 703. The electronic device receives the verification result of the verification information from the server. When the verification result indicates that the device identification belongs to the device identification white list and the operator indicated by the SIM card information does not belong to the operator white list, the electronic device sends the resource acquisition request to the server, and the resource acquisition request carries the device identification corresponding to the electronic device and the system version information of the electronic device.

[0217] In the embodiments of the present application, when the verification result indicates that the device identification belongs to the device identification white list while the operator indicated by the SIM card information does not belong to the operator white list, it means that the resource corresponding to the operator indicated by the SIM card cannot be obtained from the server. Therefore, when sending the resource acquisition request to the server, there is no need to carry the SIM card information anymore, but only the device identification and the system version information are carried.

[0218] 704. The server receives the resource acquisition request sent by the electronic device, and in response to the resource acquisition request, obtains the resource corresponding to the first information and sends the resource to the electronic device.

[0219] Among them, the first piece of information is the information with a higher priority and corresponding resources among the device identifier and the system version information.

[0220] 705. The electronic device receives the resource sent by the server based on the resource acquisition request and loads the resource.

[0221] Among them, steps 703-705 are the same as steps 603-605 above and will not be elaborated here.

[0222] It should be noted that the embodiments of the present application are described by taking the resource acquisition request carrying the device identifier and the system version information as an example. In another embodiment, the resource acquisition request only carries the device identifier, or the resource acquisition request only carries the system version information. Then the server acquires the resource corresponding to the device identifier or the system version information carried by the resource acquisition request and sends it to the electronic device, which is received and loaded by the electronic device.

[0223] It should be noted that the present application is described by taking the example of acquiring the resource corresponding to the resource acquisition request. In another embodiment, if the server fails to acquire the resource corresponding to the resource acquisition request, it sends a failure notice to the electronic device, and the failure notice indicates that the resource corresponding to the resource acquisition request has not been acquired. After receiving the failure notice, the electronic device displays the failure notice to remind the user, or does not display the failure notice and no longer sends a resource acquisition request to the server.

[0224] The embodiments of the present application provide a solution for an electronic device to automatically acquire resources, which does not require manual configuration of resources for the electronic device, thus saving labor costs. Moreover, the device identifier whitelist set in the server indicates the electronic devices allowed by the server to send resources. Through the server, when the device identifier corresponding to the electronic device belongs to the device identifier whitelist, resources are sent to the electronic device to verify the legitimacy of the electronic device, so as to ensure the security of the resources in the server, and a way of sending resources in a targeted manner is realized.

[0225] Furthermore, when the electronic device sends a resource acquisition request, in the case where the server determines that the operator to which the SIM card inserted by the electronic device belongs does not belong to the operator whitelist but the device identifier belongs to the device identifier whitelist, the resource acquisition request only needs to carry the device identifier and the system version information, without carrying the SIM card information anymore, which ensures the accuracy of the sent resource acquisition request and also avoids the situation that the server wastes server resources by performing an operation to acquire resources based on the SIM card information, thus reducing the pressure on the server.

[0226] Moreover, when the device identifier of the electronic device belongs to the device identifier whitelist and the operator indicated by the SIM card information does not belong to the operator whitelist, the electronic device will send a resource acquisition request carrying the device identifier and system version information to the server, so that the server can acquire resources according to the priorities of the device identifier and system version information, enabling the acquisition of resources corresponding to information with higher priorities as much as possible, thereby ensuring the accuracy of the acquired resources.

[0227] Moreover, the server can update the device identifier whitelist and the operator whitelist, and by interacting with the electronic device, ensure that the device identifier whitelist and the operator whitelist in the electronic device are updated synchronously, which can ensure the accuracy of the device identifier whitelist and the operator whitelist in the electronic device. Moreover, through the device identifier whitelist and the operator whitelist, it is possible to flexibly limit the electronic devices or operators that are allowed to send resources to the server, ensuring the flexibility of resource sending.

[0228] In the above Figure 4 and Figure 5 On the basis of the embodiments shown above, when the electronic device inserts a SIM card and determines the resources corresponding to the electronic device, it can search for resources using the device identifier of the electronic device or using the system version information of the electronic device or using the SIM card information. The specific process is described in detail in the following embodiments.

[0229] Figure 10 The flowchart of a resource acquisition method provided by an exemplary embodiment of the present application is shown. As Figure 10 shown, the method includes:

[0230] 1001. In response to detecting the operation of inserting a SIM card, the electronic device sends verification information to the server. The verification information includes the device identifier corresponding to the electronic device and the SIM card information, and the SIM card information indicates the operator to which the SIM card inserted in the electronic device belongs.

[0231] In the embodiments of the present application, when the electronic device has inserted a SIM card, at this time the electronic device can obtain the SIM card information corresponding to the SIM card. In order to obtain resources in a timely manner and obtain resources as much as possible, once the electronic device detects the operation of inserting a SIM card, it sends verification information including the device identifier and the SIM card information to the server, so that the server can subsequently verify the device identifier and the SIM card information.

[0232] It should be noted that in the embodiments of the present application, taking the operation of detecting the insertion of a SIM as the timing for sending the verification information by the electronic device as an example, the verification information is sent to the server. In another embodiment, it is not necessary to perform the above step 1001, and the electronic device sends the verification information to the server at other times.

[0233] In a possible implementation, the process of the electronic device sending the verification information to the server includes: when the electronic device starts up successfully and the SIM card has been inserted into the electronic device, sending the verification information to the server; or, when the SIM card has been inserted into the electronic device, sending the verification information to the server at preset intervals.

[0234] In the embodiment of the present application, when the electronic device starts up successfully, once it is determined that the SIM card is not inserted into the electronic device itself, it will send the verification information to the server to request the server to verify the device identifier. Or, when the SIM card is inserted into the electronic device, the verification information will be sent to the server at preset intervals. For example, when the interval duration between the current time point and the previous time point of sending the verification information reaches the preset duration, the verification information will be sent to the server.

[0235] 1002. The server receives the verification information sent by the electronic device, determines the verification result corresponding to the verification information based on the device identifier white list and the operator white list. The verification result indicates whether the device identifier belongs to the device identifier white list, and indicates whether the operator indicated by the SIM card information belongs to the operator white list, and sends the verification result to the electronic device.

[0236] Among them, step 1002 is the same as step 702 described above and will not be elaborated here.

[0237] 1003. The electronic device receives the verification result of the server for the verification information. When the verification result indicates that the device identifier belongs to the device identifier white list and the operator indicated by the SIM card information belongs to the operator white list, the electronic device sends the resource acquisition request to the server. The resource acquisition request carries the device identifier, the SIM card information, and the system version information of the electronic device.

[0238] In the embodiment of the present application, when the verification result indicates that the device identifier belongs to the device identifier white list and the operator indicated by the SIM card information belongs to the operator white list, it means that the electronic device can obtain resources from the server. For the device identifier and the SIM card information, although the device identifier belongs to the device identifier white list and the operator indicated by the SIM card information belongs to the operator white list, the corresponding resources may not be stored in the server. Therefore, the resource acquisition request carrying the device identifier, the SIM card information, and the system version information of the electronic device is sent to the server to ensure that resources can be obtained as much as possible.

[0239] In a possible implementation, multiple SIM cards are inserted into the electronic device, and the verification information includes the SIM card information corresponding to the multiple SIM cards. The verification result indicates whether the operator to which each SIM card belongs is in the operator whitelist. When only the operator to which one SIM card belongs is in the operator whitelist, the resource acquisition request carries the SIM card information corresponding to this SIM card. When the operators to which multiple SIM cards belong are in the operator whitelist, the resource acquisition request carries the SIM card information corresponding to the multiple SIM cards.

[0240] 1004. The server receives the resource acquisition request sent by the electronic device. In response to the resource acquisition request, the server acquires the resources corresponding to the third information and sends the resources to the electronic device.

[0241] In the embodiments of the present application, the third information is the information with a higher priority and corresponding resources among the SIM card information, the device identifier, and the system version information. The server may store the resources corresponding to the device identifier, there may also be the resources corresponding to the system version information, and there may also be the resources corresponding to the SIM card information. Moreover, there is a priority among the device identifier, the SIM card information, and the system version information. Therefore, acquiring resources according to the priorities of the device identifier, the SIM card information, and the system version information enables acquiring the resources corresponding to the information with a higher priority as much as possible, thereby ensuring the accuracy of the acquired resources.

[0242] In a possible implementation, the resource acquisition request also carries the priority identifiers of the device identifier, the SIM card information, and the system version information. Among them, the priority identifier indicates the priority of the corresponding information. Through the priority identifiers carried in the resource acquisition request, the server can know the priorities of the device identifier, the SIM card information, and the system version information, and acquire resources according to the priorities of the device identifier, the SIM card information, and the system version information.

[0243] Optionally, multiple SIM cards are inserted into the electronic device, and the operators to which the multiple SIM cards belong are all in the operator whitelist, and there is a priority among the multiple SIM cards. For example, among the multiple SIM cards inserted into the electronic device, the priority of the main card is higher than that of the secondary card. When the electronic device sends a resource acquisition request to the server, priorities are set for each SIM card information, device identifier, and system version information, so that the server acquires resources according to the priorities of the multiple SIM card information, device identifier, and system version information.

[0244] In another possible implementation, the server sets the priorities of the device identifier, the SIM card information, and the system version information. After receiving a resource acquisition request, the server acquires resources based on the device identifier, the SIM card information, and the system version information carried in the resource acquisition request, according to the priorities of the device identifier, the SIM card information, and the system version information.

[0245] This step 1004 is the same as step 604 above and will not be elaborated here.

[0246] 1005. The electronic device receives the resources sent by the server based on the resource acquisition request and loads the resources.

[0247] These steps 1004 - 1005 are the same as steps 604 - 605 above and will not be elaborated here.

[0248] It should be noted that the embodiments of this application are described by taking the resource acquisition request carrying the device identifier, the SIM card information, and the system version information as an example. In another embodiment, the resource acquisition request only carries the device identifier and the SIM card information. Then, in response to the resource acquisition request, the server acquires the resources corresponding to the second information, where the second information is the information with a higher priority and corresponding resources among the SIM card information and the device identifier, and sends it to the electronic device, which is received and loaded by the electronic device.

[0249] It should be noted that this application is described by taking the acquisition of the resources corresponding to the resource acquisition request as an example. In another embodiment, if the server fails to acquire the resources corresponding to the resource acquisition request, it sends a failure notice to the electronic device, and the failure notice indicates that the resources corresponding to the resource acquisition request have not been acquired. After receiving the failure notice, the electronic device displays the failure notice to remind the user, or does not display the failure notice and does not send a resource acquisition request to the server anymore.

[0250] The embodiments of this application provide a solution for an electronic device to automatically acquire resources, eliminating the need for manual configuration of resources for the electronic device, thus saving labor costs. Moreover, the device identifier whitelist set in the server indicates the electronic devices allowed by the server to send resources, and the operator whitelist set in the server indicates the operators allowed by the server to send resources. Through the server, resources are sent to the electronic device when the device identifier corresponding to the electronic device belongs to the device identifier whitelist and the operator to which the SIM card inserted in the electronic device belongs belongs to the operator whitelist, verifying the legitimacy of the electronic device to ensure the security of the resources in the server, and realizing a way of sending resources in a targeted manner.

[0251] Moreover, the electronic device sends a resource acquisition request carrying the device identifier, the SIM card information, and the system version information to the server, so that the server acquires resources according to the priorities of the device identifier, the SIM card information, and the system version information, enabling the acquisition of resources corresponding to information with a relatively high priority as much as possible, thereby ensuring the accuracy of the acquired resources.

[0252] Moreover, in the case where multiple SIM cards are inserted into the electronic device, the resource server request sent by the electronic device to the server carries the device identifier, the system version information, and the SIM card information of the SIM card whose indicated operator belongs to the operator whitelist, and no longer carries the SIM card information of the SIM card whose indicated operator does not belong to the operator whitelist, avoiding the situation where the server wastes resources by performing resource acquisition operations based on the SIM card information of the SIM card whose indicated operator does not belong to the operator whitelist, thereby reducing the pressure on the server.

[0253] Moreover, once the electronic device detects the operation of inserting a SIM card, it sends verification information to the server, that is, immediately initiates a process of interacting with the server to acquire resources, thereby ensuring that resources can be acquired in a timely manner and ensuring the real-time nature of resource acquisition.

[0254] It should be noted that, based on the above Figure 10 illustrated embodiments, when the electronic device detects the operation of inserting a SIM card, it first extracts the SIM card information from the SIM card, and then sends verification information to the server. That is, the process of the electronic device sending verification information to the server includes: in response to detecting the operation of inserting a SIM card, the electronic device extracts the SIM card information from the inserted SIM card of the electronic device and obtains the device identifier corresponding to the electronic device; and sends verification information to the server, where the verification information includes the SIM card information and the device identifier.

[0255] In the embodiments of the present application, the SIM card stores SIM card information. After the SIM card is inserted into the electronic device, the electronic device can read the SIM card information in the inserted SIM card. Once the electronic device detects the operation of inserting a SIM card, it extracts the SIM card information from the SIM card and obtains the device identifier to send verification information to the server to initiate a process of acquiring resources from the server, thereby ensuring the real-time nature of resource acquisition.

[0256] Regarding the above process of the electronic device extracting SIM card information from the server, the present application also provides a process for extracting SIM card information and sending verification information, and this process includes:

[0257] (1) When the electronic device detects an operation of inserting a SIM card, it detects the SIM card information of the SIM card through the Modem and sends a check success notification to the UiccController. This check success notification indicates that the Modem has obtained the SIM card information.

[0258] Among them, the Modem is used to detect the SIM inserted in the electronic device to obtain the SIM card information of the SIM card.

[0259] (2) The electronic device, through the UiccController, in response to this check success notification, loads the SIM card information from the Modem and calls back the Integrated Circuit Card Proxy (Icc Card Proxy).

[0260] Among them, the UiccController (Universal Integrated Circuit Card Controller) is used to monitor the status of the SIM card. The Icc Card Proxy is used to maintain the status of the SIM card.

[0261] (3) The electronic device updates the SIM card status through the Icc Card Proxy and broadcasts a notification to the Subscription Info Updater that the SIM card status has been updated.

[0262] (4) The electronic device notifies the customized resource download program through the Subscription Info Updater.

[0263] Among them, the customized resource download program is used to interact with the server. This customized resource download program can obtain the loaded SIM card information and can obtain the device identifier of the electronic device.

[0264] (5) The electronic device obtains the SIM card information and the device identifier through the resource download program.

[0265] (6) The electronic device sends the verification information to the server through the resource download program.

[0266] In the embodiment of the present application, the electronic device is configured with a Modem, a UiccController, an Icc CardProxy, a Subscription Info Updater, and a customized resource download program. These programs or interfaces cooperate with each other to extract the SIM card information in the SIM card when the SIM card is inserted into the electronic device, interact with the server, and send verification information to the server.

[0267] The following is an apparatus embodiment of the present application, which can be used to execute the method embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the method embodiment of the present application.

[0268] Figure 11 The block diagram of a resource sending apparatus provided by an exemplary embodiment of the present application is shown. Referring to Figure 11 , the resource sending apparatus includes:

[0269] A receiving module 1101, configured to receive verification information sent by an electronic device, where the verification information includes a device identifier corresponding to the electronic device;

[0270] A determining module 1102, configured to determine a verification result corresponding to the verification information based on a device identifier whitelist, where the verification result indicates whether the device identifier belongs to the device identifier whitelist, and send the verification result to the electronic device;

[0271] The receiving module 1101 is further configured to receive a resource acquisition request sent by the electronic device, where the resource acquisition request is sent by the electronic device when the device identifier belongs to the device identifier whitelist;

[0272] A sending module 1103, configured to send a resource corresponding to the resource acquisition request to the electronic device in response to the resource acquisition request.

[0273] In some embodiments, the verification information further includes subscriber identity module (SIM) card information; the determining module 1102 is configured to determine a verification result corresponding to the verification information based on the device identifier whitelist and a carrier whitelist, where the verification result indicates whether the device identifier belongs to the device identifier whitelist and whether the carrier indicated by the SIM card information belongs to the carrier whitelist;

[0274] Wherein, the resource acquisition request is sent by the electronic device when the device identifier belongs to the device identifier whitelist and the carrier indicated by the SIM card information does not belong to the carrier whitelist.

[0275] In some embodiments, the sending module 1103 is configured to: when the resource acquisition request carries a device identifier, in response to the resource acquisition request, determine the carrier to which the device identifier belongs, obtain the resource corresponding to the carrier, and send the resource to the electronic device; or, when the resource acquisition request carries the system version information of the electronic device, in response to the resource acquisition request, obtain the resource corresponding to the system version information and send the resource to the electronic device; or, when the resource acquisition request carries the device identifier and the system version information, in response to the resource acquisition request, obtain the resource corresponding to the first information and send the resource to the electronic device, where the first information is the information with a higher priority and corresponding resources among the device identifier and the system version information.

[0276] It should be noted that for the device provided in the above embodiments, when implementing its functions, only the division of the above functional modules is used for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the server is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiments and the method embodiments belong to the same concept. For the specific implementation process, please refer to the method embodiments and will not be elaborated here.

[0277] Figure 12 FIG. shows a structural block diagram of a resource acquisition device provided by an exemplary embodiment of the present application. Refer to Figure 12 , the resource acquisition device includes:

[0278] A sending module 1201, configured to send verification information to a server when the electronic device does not insert a SIM card, where the verification information includes a device identifier corresponding to the electronic device;

[0279] A receiving module 1202, configured to receive a verification result of the verification information from the server, where the verification result indicates whether the device identifier belongs to a device identifier whitelist;

[0280] The sending module 1201 is further configured to send a resource acquisition request to the server when the verification result indicates that the device identifier belongs to the device identifier whitelist;

[0281] A loading module 1203, configured to receive the resources sent by the server based on the resource acquisition request and load the resources.

[0282] In some embodiments, the resource acquisition request carries at least one of the device identifier or the system version information of the electronic device.

[0283] In some embodiments, the sending module 1201 is configured to send verification information to the server when the electronic device starts successfully; or send verification information to the server at preset time intervals.

[0284] In some embodiments, as Figure 13 shown, the device further includes:

[0285] A verification module 1204, configured to verify the verification information based on the device identifier whitelist stored locally;

[0286] The sending module 1201 is configured to send the verification information to the server when the verification of the verification information is passed.

[0287] In some embodiments, a loading module 1203 is configured to load resources including interface layout resources, display an interface that matches the interface layout resources; or, the resources include configuration resources, load the configuration resources, and configure the electronic device based on the configuration resources.

[0288] It should be noted that, when implementing its functions, the device provided in the above embodiments is only illustrated by dividing the above functional modules. In practical applications, the above functions may be allocated to different functional modules according to needs, that is, the internal structure of the electronic device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiments and the method embodiments belong to the same concept. For the specific implementation process, please refer to the method embodiments and will not be elaborated here.

[0289] Figure 14 The block diagram of a resource sending device provided by an exemplary embodiment of the present application is shown. Refer to Figure 14 , the resource sending device includes:

[0290] A receiving module 1401 is configured to receive verification information sent by the electronic device when a SIM card is inserted. The verification information includes a device identifier corresponding to the electronic device and SIM card information, and the SIM card information indicates the operator to which the SIM card belongs.

[0291] A determining module 1402 is configured to determine a verification result corresponding to the verification information based on a device identifier whitelist and an operator whitelist. The verification result indicates whether the device identifier belongs to the device identifier whitelist and whether the operator indicated by the SIM card information belongs to the operator whitelist, and send the verification result to the electronic device.

[0292] The receiving module 1401 is further configured to receive a resource acquisition request sent by the electronic device, where the resource acquisition request is sent by the electronic device when the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information belongs to the operator whitelist.

[0293] A sending module 1403 is configured to, in response to the resource acquisition request, send the resource corresponding to the resource acquisition request to the electronic device.

[0294] In some embodiments, the sending module 1403 is configured to carry the SIM card information and the device identifier in the resource acquisition request; in response to the resource acquisition request, acquire the resource corresponding to the second information, where the second information is the information with a higher priority and having a corresponding resource among the SIM card information and the device identifier; or, the resource acquisition request carries the SIM card information, the device identifier, and the system version information of the electronic device; in response to the resource acquisition request, acquire the resource corresponding to the third information, where the third information is the information with a higher priority and having a corresponding resource among the SIM card information, the device identifier, and the system version information.

[0295] It should be noted that for the device provided in the above embodiments, when implementing its functions, only the division of the above functional modules is used for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the server is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiments and the method embodiments belong to the same concept. For the specific implementation process, please refer to the method embodiments and will not be elaborated here.

[0296] Figure 15 It shows a structural block diagram of a resource acquisition device provided by an exemplary embodiment of the present application. Refer to Figure 15 , the resource acquisition device includes:

[0297] The sending module 1501 is configured to, when a SIM card is inserted into the electronic device, send verification information to the server, where the verification information includes the device identifier corresponding to the electronic device and the SIM card information, and the SIM card information indicates the operator to which the SIM card inserted into the electronic device belongs;

[0298] The receiving module 1502 is configured to receive the verification result of the server for the verification information, where the verification result indicates whether the device identifier belongs to the device identifier whitelist and whether the operator indicated by the SIM card information belongs to the operator whitelist;

[0299] The sending module 1501 is further configured to, when the verification result indicates that the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information belongs to the operator whitelist, send a resource acquisition request to the server;

[0300] The loading module 1503 is configured to receive the resource sent by the server based on the resource acquisition request and load the resource.

[0301] In some embodiments, the resource acquisition request carries the device identifier and the SIM card information; or,

[0302] The resource acquisition request carries the device identifier, the SIM card information, and the system version information of the electronic device.

[0303] In some embodiments, the sending module 1501 is configured to send verification information to the server in response to detecting an operation of inserting a SIM card; or, when the electronic device is successfully started and the SIM card has been inserted into the electronic device, send verification information to the server; or, when the SIM card has been inserted into the electronic device, send verification information to the server at preset time intervals.

[0304] In some embodiments, the sending module 1501 is configured to extract SIM card information from the SIM card inserted into the electronic device and obtain the device identifier corresponding to the electronic device in response to detecting an operation of inserting a SIM card; and send verification information to the server.

[0305] In some embodiments, the sending module 1501 is configured to detect the SIM card information corresponding to the SIM card through the Modem in response to detecting an operation of inserting a SIM card, send a check success notification to the UiccController, where the check success notification indicates that the Modem has obtained the SIM card information; through the UiccController, in response to the check success notification, load the SIM card information from the Modem, and call back the integrated circuit card proxy Icc Card Proxy; update the SIM card status through the Icc Card Proxy, and broadcast a notification to the subscription information updater Subscription Info Updater that the SIM card status has been updated; notify the customized resource downloader through the Subscription InfoUpdater; obtain the SIM card information and the device identifier through the resource downloader; and send verification information to the server through the resource downloader.

[0306] It should be noted that, when implementing its functions, the device provided in the foregoing embodiments is only illustrated by dividing the foregoing functional modules. In actual applications, the foregoing functions may be allocated to different functional modules according to needs, that is, the internal structure of the electronic device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the foregoing embodiments and the method embodiments belong to the same concept, and the specific implementation process thereof can be found in the method embodiments and will not be elaborated here.

[0307] An embodiment of the present application provides an electronic device, which includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the resource acquisition method provided in each of the foregoing method embodiments.

[0308] In some embodiments, the electronic device is a terminal, please refer to Figure 16, which shows a block diagram of the structure of a terminal provided by an exemplary embodiment of the present application. In some embodiments, the terminal 1600 is a terminal such as a smart phone, a tablet computer, a wearable device, etc. that can access a wireless local area network as a wireless station. The terminal 1600 in the present application at least includes one or more of the following components: a processor 1610, a memory 1620, and at least two wireless links 1630.

[0309] In some embodiments, the processor 1610 includes one or more processing cores. The processor 1610 connects various parts within the entire terminal 1600 through various interfaces and lines. By running or executing program codes stored in the memory 1620 and calling data stored in the memory 1620, it executes various functions of the terminal 1600 and processes data. In some embodiments, the processor 1610 is implemented in at least one of the following hardware forms: Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), Programmable Logic Array (PLA). The processor 1610 can integrate one or several combinations of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Neural-network Processing Unit (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the NPU is used to implement Artificial Intelligence (AI) functions; the modem is used to process wireless communications. It can be understood that the above modem can also not be integrated into the processor 1610 and can be implemented separately by a single chip.

[0310] In some embodiments, the processor 1610 is used to control the operating conditions of at least two wireless links 1630. Correspondingly, the processor 1610 is a processor integrated with a Wireless Fidelity (Wi-Fi) chip. Among them, the Wi-Fi chip is a chip with dual Wi-Fi processing capabilities. For example, the Wi-Fi chip is a Dual Band Dual Concurrent (DBDC) chip, or a Dual Band Simultaneous (DBS) chip, etc.

[0311] In some embodiments, the memory 1620 includes a Random Access Memory (RAM). In some embodiments, the memory 1620 includes a Read-Only Memory (ROM). In some embodiments, the memory 1620 includes a non-transitory computer-readable storage medium. The memory 1620 can be used to store program codes. The memory 1620 may include a program storage area and a data storage area. Among them, the program storage area can store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing each of the following method embodiments, etc.; the data storage area can store data created according to the use of the terminal 1600 (such as audio data, a phone book), etc.

[0312] In some embodiments, the memory 1620 stores reception schemes for received beacon frames of different wireless links 1630. Also, the identifiers of access nodes connected to different wireless links 1630, the identifiers of the wireless links 1630, etc.

[0313] The at least two wireless links 1630 are used to connect to different Access Points (APs) and receive downlink data sent by the APs. Among them, the different access nodes are access nodes in the same router or access nodes in different routers.

[0314] In some embodiments, the terminal 1600 further includes a display screen. The display screen is a display component for displaying a user interface. In some embodiments, the display screen is a display screen with a touch function. Through the touch function, a user can perform touch operations on the display screen with any suitable object such as a finger or a stylus. In some embodiments, the display screen is usually disposed on the front panel of the terminal 1600. In some embodiments, the display screen is designed as a full-screen, a curved screen, a special-shaped screen, a double-sided screen, or a foldable screen. In some embodiments, the display screen is also designed as a combination of a full-screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., and this embodiment does not limit this.

[0315] In addition, those skilled in the art can understand that the structure of the terminal 1600 shown in the above drawings does not constitute a limitation on the terminal 1600. The terminal 1600 includes more or fewer components than shown in the drawings, or combines some components, or has different component arrangements. For example, the terminal 1600 further includes components such as a microphone, a speaker, an input unit, a sensor, an audio circuit, a module, a power supply, a Bluetooth module, etc., which will not be elaborated here.

[0316] An embodiment of the present application provides a server, which includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the resource sending method provided in the above-mentioned various method embodiments.

[0317] In some embodiments, please refer to Figure 17 , which shows a structural block diagram of a server provided by an exemplary embodiment of the present application. The server 1700 may vary greatly due to configuration or performance differences, and may include one or more processors (Central Processing Units, CPUs) 1701 and one or more memories 1702. Among them, at least one computer program is stored in the memory 1702, and the at least one computer program is loaded and executed by the processor 1701 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input / output interface for input and output. The server may also include other components for implementing device functions, which will not be elaborated here.

[0318] The present application also provides a chip, which includes programmable logic circuits and / or program instructions. When the chip runs on a terminal, it is used to implement the resource sending method or the resource acquisition method shown in the above-mentioned various embodiments.

[0319] The present application also provides a computer-readable medium, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the resource sending method or the resource acquisition method shown in the above-mentioned various embodiments.

[0320] The present application also provides a computer program product, which stores at least one program code, and the at least one program code is used to be executed by the processor to implement the resource sending method or the resource acquisition method shown in the above-mentioned various embodiments.

[0321] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0322] Those of ordinary skill in the art can understand that all or part of the steps in implementing the resource sending method or the resource acquisition method of the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a disk, or an optical disc, etc. The above are only the preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A resource sending method, characterized in that, Applied to a server, the method includes: Receiving verification information sent by an electronic device without inserting a Subscriber Identity Module (SIM) card, where the verification information includes the device identifier corresponding to the electronic device. The verification information is sent after passing verification based on a locally stored device identifier whitelist in the electronic device. The device identifier whitelist is used to indicate the electronic devices allowed by the server to send resources. The device identifier is a unique identifier used to indicate the electronic device, and different electronic devices have different corresponding device identifiers. The device identifier whitelist stored in the electronic device is obtained from the server; Based on the device identifier whitelist, determining the verification result corresponding to the verification information, where the verification result indicates whether the device identifier belongs to the device identifier whitelist, and sending the verification result to the electronic device; Receiving a resource acquisition request sent by the electronic device, where the resource acquisition request is sent by the electronic device when the device identifier belongs to the device identifier whitelist; In response to the resource acquisition request, sending the resource corresponding to the resource acquisition request to the electronic device.

2. The method according to claim 1, characterized in that, The verification information further includes Subscriber Identity Module (SIM) card information; The determining the verification result corresponding to the verification information based on the device identifier whitelist, where the verification result indicates whether the device identifier belongs to the device identifier whitelist, includes: Based on the device identifier whitelist and the operator whitelist, determining the verification result corresponding to the verification information, where the verification result indicates whether the device identifier belongs to the device identifier whitelist and whether the operator indicated by the SIM card information belongs to the operator whitelist; Wherein, the resource acquisition request is sent by the electronic device when the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information belongs to the operator whitelist.

3. The method according to any one of claims 1-2, characterized in that, The sending the resource corresponding to the resource acquisition request to the electronic device in response to the resource acquisition request includes: The resource acquisition request carries the device identifier. In response to the resource acquisition request, determining the operator to which the device identifier belongs, obtaining the resource corresponding to the operator, and sending the resource to the electronic device; or, The resource acquisition request carries the system version information of the electronic device. In response to the resource acquisition request, obtaining the resource corresponding to the system version information and sending the resource to the electronic device; or, The resource acquisition request carries the device identifier and the system version information. In response to the resource acquisition request, obtaining the resource corresponding to the first information, and sending the resource to the electronic device, where the first information is the information with a higher priority and corresponding resources among the device identifier and the system version information.

4. A resource acquisition method, characterized in that, Applied to an electronic device, the method includes: When the SIM card is not inserted into the electronic device, verify the verification information based on the device identification whitelist stored locally. When the verification of the verification information is passed, send the verification information to the server. The device identification whitelist is used to indicate the electronic devices that allow the server to send resources. The verification information includes the device identification corresponding to the electronic device. The device identification is the unique identifier used to indicate the electronic device, and different electronic devices have different corresponding device identifications. The device identification whitelist stored in the electronic device is obtained from the server. Receive the verification result of the server for the verification information. The verification result indicates whether the device identification belongs to the device identification whitelist. When the verification result indicates that the device identification belongs to the device identification whitelist, send a resource acquisition request to the server. Receive the resources sent by the server based on the resource acquisition request, and load the resources.

5. The method according to claim 4, wherein The resource acquisition request carries at least one of the device identification or the system version information of the electronic device.

6. A resource sending method, characterized in that, Applied to the server, the method includes: Receive the verification information sent by the electronic device when the SIM card is inserted. The verification information includes the device identification corresponding to the electronic device and the SIM card information. The SIM card information indicates the operator to which the SIM card belongs. The verification information is sent after passing the verification based on the device identification whitelist and the operator whitelist stored locally in the electronic device. The device identification whitelist is used to indicate the electronic devices that allow the server to send resources. The operator whitelist is used to indicate the operators that allow the server to send resources. The device identification is the unique identifier used to indicate the electronic device, and different electronic devices have different corresponding device identifications. The device identification whitelist stored in the electronic device is obtained from the server. Based on the device identification whitelist and the operator whitelist, determine the verification result corresponding to the verification information. The verification result indicates whether the device identification belongs to the device identification whitelist and whether the operator indicated by the SIM card information belongs to the operator whitelist, and send the verification result to the electronic device. Receive the resource acquisition request sent by the electronic device, where the resource acquisition request is sent by the electronic device when the device identification belongs to the device identification whitelist and the operator indicated by the SIM card information belongs to the operator whitelist. In response to the resource acquisition request, send the resources corresponding to the resource acquisition request to the electronic device.

7. The method according to claim 6, characterized in that, The step of, in response to the resource acquisition request, sending the resources corresponding to the resource acquisition request to the electronic device includes: The resource acquisition request carries the SIM card information and the device identification; in response to the resource acquisition request, obtain the resources corresponding to the second information, where the second information is the information with the higher priority and the existence of corresponding resources among the SIM card information and the device identification; or, The resource acquisition request carries the SIM card information, the device identifier, and the system version information of the electronic device; in response to the resource acquisition request, acquire the resource corresponding to the third information, where the third information is the information with a higher priority and a corresponding resource among the SIM card information, the device identifier, and the system version information.

8. A resource acquisition method, characterized in that, Applied to an electronic device, the method includes: When a SIM card is inserted into the electronic device, based on the device identifier whitelist and operator whitelist stored locally, verify the verification information, and in the case where the verification of the verification information is passed, send the verification information to the server. The device identifier whitelist is used to indicate the electronic devices that allow the server to send resources, and the operator whitelist is used to indicate the operators that allow the server to send resources. The verification information includes the device identifier corresponding to the electronic device and the SIM card information. The SIM card information indicates the operator to which the SIM card inserted in the electronic device belongs. The device identifier is a unique identifier used to indicate the electronic device, and different electronic devices have different corresponding device identifiers. The device identifier whitelist stored in the electronic device is obtained from the server; Receive the verification result of the server for the verification information, where the verification result indicates whether the device identifier belongs to the device identifier whitelist and indicates whether the operator indicated by the SIM card information belongs to the operator whitelist; In the case where the verification result indicates that the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information belongs to the operator whitelist, send a resource acquisition request to the server; Receive the resources sent by the server based on the resource acquisition request, and load the resources.

9. The method according to claim 8, characterized in that, The resource acquisition request carries the device identifier and the SIM card information; or, The resource acquisition request carries the device identifier, the SIM card information, and the system version information of the electronic device.

10. The method according to claim 8, wherein When a SIM card is inserted into the electronic device, based on the device identifier whitelist and operator whitelist stored locally, verify the verification information, and in the case where the verification of the verification information is passed, send the verification information to the server, includes: In response to detecting an operation of inserting a SIM card, send the verification information to the server; or, When the electronic device starts up successfully and a SIM card has been inserted into the electronic device, send the verification information to the server; or, When a SIM card has been inserted into the electronic device, send the verification information to the server at every preset time interval.

11. A resource sending device, characterized in that, Applied to a server, the device includes: A receiving module, configured to receive verification information sent by an electronic device when a SIM card is inserted. The verification information includes a device identifier corresponding to the electronic device. The verification information is sent after being verified in the electronic device based on a locally stored device identifier whitelist, where the device identifier whitelist is used to indicate electronic devices allowed by the server to send resources. The device identifier is a unique identifier for indicating the electronic device, and different electronic devices have different corresponding device identifiers. The device identifier whitelist stored in the electronic device is obtained from the server; A determining module, configured to determine a verification result corresponding to the verification information based on the device identifier whitelist, where the verification result indicates whether the device identifier belongs to the device identifier whitelist, and send the verification result to the electronic device; The receiving module is further configured to receive a resource acquisition request sent by the electronic device, where the resource acquisition request is sent by the electronic device when the device identifier belongs to the device identifier whitelist; A sending module, configured to, in response to the resource acquisition request, send the resource corresponding to the resource acquisition request to the electronic device.

12. A resource acquisition device, characterized in that, Applied to an electronic device, the apparatus includes: A sending module, configured to, when the SIM card is not inserted in the electronic device, verify the verification information based on a locally stored device identifier whitelist, and send the verification information to the server when the verification of the verification information is passed. The device identifier whitelist is used to indicate electronic devices allowed by the server to send resources. The verification information includes a device identifier corresponding to the electronic device. The device identifier is a unique identifier for indicating the electronic device, and different electronic devices have different corresponding device identifiers. The device identifier whitelist stored in the electronic device is obtained from the server; A receiving module, configured to receive a verification result of the verification information from the server, where the verification result indicates whether the device identifier belongs to the device identifier whitelist; The sending module is further configured to send a resource acquisition request to the server when the verification result indicates that the device identifier belongs to the device identifier whitelist; A loading module, configured to receive the resource sent by the server based on the resource acquisition request and load the resource.

13. A resource sending device, characterized in that, Applied to a server, the apparatus includes: A receiving module, configured to receive verification information sent by an electronic device when a SIM card is inserted. The verification information includes a device identifier corresponding to the electronic device and SIM card information. The SIM card information indicates the operator to which the SIM card belongs. The verification information is sent after being verified in the electronic device based on a locally stored device identifier whitelist and operator whitelist. The device identifier whitelist is used to indicate the electronic devices allowed by the server to send resources, and the operator whitelist is used to indicate the operators allowed by the server to send resources. The device identifier is a unique identifier used to indicate the electronic device, and different electronic devices have different corresponding device identifiers. The device identifier whitelist stored in the electronic device is obtained from the server; A determining module, configured to determine a verification result corresponding to the verification information based on the device identifier whitelist and the operator whitelist. The verification result indicates whether the device identifier belongs to the device identifier whitelist and whether the operator indicated by the SIM card information belongs to the operator whitelist, and send the verification result to the electronic device; The receiving module is further configured to receive a resource acquisition request sent by the electronic device, where the resource acquisition request is sent by the electronic device when the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information belongs to the operator whitelist; A sending module, configured to, in response to the resource acquisition request, send the resource corresponding to the resource acquisition request to the electronic device.

14. A resource acquisition device, characterized in that, Applied to an electronic device, the apparatus includes: A sending module, configured to, when a SIM card is inserted into the electronic device, verify the verification information based on a locally stored device identifier whitelist and operator whitelist. When the verification of the verification information is passed, send the verification information to the server. The device identifier whitelist is used to indicate the electronic devices allowed by the server to send resources, and the operator whitelist is used to indicate the operators allowed by the server to send resources. The verification information includes a device identifier corresponding to the electronic device and SIM card information. The SIM card information indicates the operator to which the SIM card inserted on the electronic device belongs. The device identifier is a unique identifier used to indicate the electronic device, and different electronic devices have different corresponding device identifiers. The device identifier whitelist stored in the electronic device is obtained from the server; A receiving module, configured to receive the verification result of the server for the verification information. The verification result indicates whether the device identifier belongs to the device identifier whitelist and whether the operator indicated by the SIM card information belongs to the operator whitelist; The sending module is further configured to, when the verification result indicates that the device identifier belongs to the device identifier whitelist and the operator indicated by the SIM card information belongs to the operator whitelist, send a resource acquisition request to the server; The receiving module is configured to receive the resource sent by the server based on the resource acquisition request and load the resource.

15. A server, characterized in that, The server includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the resource sending method as described in any one of claims 1 to 3; or, to implement the resource sending method as described in any one of claims 6 or 7.

16. An electronic device, characterized in that, The electronic device includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the resource acquisition method as described in any one of claims 4 or 5; or, to implement the resource acquisition method as described in any one of claims 8 to 10.

Citation Information

Patent Citations

  • Resource file updating method and apparatus thereof

    CN106878445A

  • Data processing method and system and related equipment

    CN111698100A

  • Terminal resource issuing method and device, terminal resource obtaining method and device, and electronic equipment

    CN112637365A