Application control method, device, electronic device and storage medium
By detecting the signature file and the SDK of the application on the target device, the problem of SDK leakage risks in existing technologies has been solved, and the effect of reducing the probability of SDK leakage and protecting the interests of the service company.
Patent Information
- Application Number
- CN202210339653.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-01
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2042-04-01
AI Technical Summary
In the prior art, when the device calls an SDK that does not carry the service company identification information, it cannot verify whether the SDK is running on the equipment produced by the equipment manufacturer connected to the service company that issued the SDK, resulting in the risk of SDK leakage and the interests of the service company cannot be guaranteed. .
When the target application installed on the target device is started, the installation package of the target application provides the signature file and the SDK of the service party to find the corresponding relationship of the pre -stored service party and the signature file. If the signature file of the target device Not in the corresponding relationship, sending the target information indicating that the device cannot use the application.
The leakage rate of SDK has been reduced, the interests of the service company are ensured, and the provider of non -recognition or non -allowed provider uses target applications.
Smart Images

Figure CN114756248B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an application control method, device, electronic device and storage medium. Background Art
[0002] The current connection method between service companies and equipment manufacturers can be to release an Android installation package (Android Package, APK) or a software development kit (Software Development Kit, SDK).
[0003] That is, the service company can carry the service company's identification information when packaging the SDK into an APK, and then release the APK to the device manufacturer, so that the APK can be installed on the device produced by the device manufacturer to generate an APP. When the APP is used, the service company's identification information carried in the APP can be verified to protect the interests of the service company.
[0004] Alternatively, the service company can also directly release the SDK to the device manufacturer, so that the device manufacturer can package the SDK into an APK and then install the APK on the device produced by the device manufacturer to generate an APP. However, in this case, when the device manufacturer packages the SDK into an APK, it does not carry the identification information of the service company, so verification cannot be performed.
[0005] Therefore, since different devices can call SDK functions at will and the SDK does not carry the service company's identification information, it cannot be guaranteed that the SDK can be applied to devices produced by the device manufacturer connected to the service company that released the SDK.
[0006] From the above, it can be seen that in the prior art, when a device calls an SDK that does not carry the service company's identification information, it is impossible to verify whether the SDK is running on a device produced by the device manufacturer connected to the service company that released the SDK, which makes the SDK at risk of being leaked and the interests of the service company cannot be guaranteed. Summary of the invention
[0007] The embodiments of the present invention provide an application control method, device, electronic device and storage medium to reduce the probability of SDK leakage to a certain extent, thereby ensuring the interests of the service company to a certain extent.
[0008] In a first aspect of an embodiment of the present invention, a method for controlling an application program is provided, the method comprising:
[0009] When detecting that a target application installed on a target device is started, obtaining a first signature file of a target provider of an installation package of the target application and a target service provider providing a target software development kit SDK, wherein the installation package of the target application is encapsulated by the target software development kit SDK;
[0010] Searching for a second signature file corresponding to the target service provider in a pre-stored first correspondence between service providers and signature files;
[0011] In a case where the first signature file does not exist in the second signature file, target indication information is sent to the target device, wherein the target indication information is used to indicate that the target device cannot use the target application.
[0012] In a second aspect of an embodiment of the present invention, an application control device is further provided, the device comprising:
[0013] an acquisition module, configured to acquire, when detecting that a target application installed on a target device is started, a first signature file of a target provider of an installation package of the target application and a target service provider providing a target software development kit SDK, wherein the installation package of the target application is encapsulated by the target software development kit SDK;
[0014] A search module, used to search for a second signature file corresponding to the target service provider in a pre-stored first correspondence between service providers and signature files;
[0015] The first sending module is used to send target indication information to the target device when the first signature file does not exist in the second signature file, wherein the target indication information is used to indicate that the target device cannot use the target application.
[0016] In a third aspect of an embodiment of the present invention, there is further provided an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0017] Memory, used to store computer programs;
[0018] The processor is used to implement the above-mentioned application control method when executing the program stored in the memory.
[0019] In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes any of the above-mentioned application control methods.
[0020] In a fifth aspect of the embodiments of the present invention, a computer program product comprising instructions is also provided, which, when executed on a computer, enables the computer to execute any of the above-mentioned application control methods.
[0021] The embodiments of the present invention include at least the following technical effects:
[0022] An application control method provided by an embodiment of the present invention, when detecting that a target application installed on a target device is started, obtains a first signature file of a target provider of an installation package of the target application and a target service provider who provides a target software development kit SDK, thereby searching for a second signature file corresponding to the target service provider in a pre-stored first correspondence between the service provider and the signature file; and then, when the first signature file does not exist in the second signature file, sends target indication information to the target device, wherein the installation package of the target application is encapsulated by the target software development kit SDK, and the target indication information is used to indicate that the target device cannot use the target application.
[0023] Among them, the provider of the application has a signature file used to represent identity information. The signature file of the provider of an application corresponds to a service provider, indicating that the service provider recognizes or allows the provider. Therefore, when the first signature file of the target provider does not exist in the second signature file corresponding to the target service provider in the above-mentioned first correspondence, it means that the target service party does not recognize or allow the target provider, thereby indicating that the target device cannot use the target application. In this way, it can prevent the provider who is not recognized or allowed by the target service party from using the target application, thereby reducing the probability of SDK leakage and guaranteeing the interests of the target service party to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0025] Figure 1 A schematic diagram of an application control method provided in an embodiment of the present invention;
[0026] Figure 2 A flow chart of an implementation of the application control method provided in an embodiment of the present invention;
[0027] Figure 3 A flowchart of another implementation of the application control method provided by an embodiment of the present invention;
[0028] Figure 4A schematic diagram of the structure of an application control device provided in an embodiment of the present invention;
[0029] Figure 5 The block diagram is a block diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present invention. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0032] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0033] The technical solutions in the embodiments of the present invention are described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0034] like Figure 1 FIG. 1 is a flow chart of an application control method according to an embodiment of the present invention. The method can be applied to a server and can include the following steps:
[0035] Step 101: when it is detected that a target application installed on a target device is started, a first signature file of a target provider of an installation package of the target application and a target service provider providing a target software development kit SDK are obtained.
[0036] The installation package of the target application is encapsulated by the target software development kit SDK; the software development kit SDK is a collection of development tools used to create application software for specific software packages, software frameworks, hardware platforms, operating systems, etc.
[0037] In addition, the target device can be a vehicle-mounted terminal or a mobile phone; the target application can be an application installed on a vehicle-mounted terminal or a mobile phone; the target provider can be an automobile manufacturer or a mobile phone manufacturer; the target service provider can be a service company that cooperates with the target provider, for example, providing data on applications used in vehicle-mounted terminals to automobile manufacturers, or providing data on applications used in mobile phones to mobile phone manufacturers.
[0038] In addition, the signature file may be an MD5 signature file obtained through a message-digest algorithm (MD5); the MD5 message digest algorithm is a widely used cryptographic hash function that can generate a 128-bit (16-byte) hash value to ensure that information transmission is complete and consistent.
[0039] It is understandable that the above is only an example of a signature file, and in the embodiment of the present invention, no specific limitation is imposed on the signature file.
[0040] It should be noted that there is an MD5 signature file for the provider of an application, and the MD5 signature files of each provider are different, which can represent the identity information of each provider.
[0041] In an embodiment of the present invention, the target service party provides a target SDK to the corresponding target provider, which then packages the target SDK into an installation package of the target application and installs the installation package of the target application on the target device of the target provider to form a target application; after the target device with the target application installed starts the target application, the target service party provides the target device with service data of the target application.
[0042] Step 102: searching for a second signature file corresponding to the target service provider in a pre-stored first correspondence between service providers and signature files.
[0043] Wherein, a provider has a signature file representing identity information, then the pre-stored correspondence between the service provider and the signature file is the correspondence between the service provider and the provider. The first correspondence may be a correspondence between one service provider and multiple providers, or may be a correspondence between multiple service providers and multiple providers.
[0044] Specifically, a service provider can cooperate with multiple providers. For example, service provider A cooperates with providers B, C, and D. Providers B, C, and D respectively provide their own signature files to service provider A, and a first correspondence between the signature files of service provider A and providers B, C, and D can be established.
[0045] Multiple service providers can cooperate with multiple providers respectively. For example, service provider A cooperates with providers B, C, and D, and service provider E cooperates with providers F, G, and H. Providers B, C, and D respectively provide their signature files to service provider A, and a first correspondence between the signature files of service provider A and providers B, C, and D can be established; providers F, G, and H respectively provide their signature files to service provider E, and a first correspondence between the signature files of service provider E and providers F, G, and H can be established.
[0046] From the above, it can be seen that the signature file of the provider of an application corresponds to a service provider, which means that the service provider has a cooperative relationship with the provider, that is, the service provider recognizes the provider.
[0047] It should be noted that the second signature file corresponding to the target service provider may be one signature file or multiple signature files.
[0048] Step 103: When the first signature file does not exist in the second signature file, send target indication information to the target device.
[0049] The target indication information is used to indicate that the target device cannot use the target application.
[0050] In addition, the absence of the first signature file in the second signature file can be understood as the signature file corresponding to the target service provider does not contain the signature file of the target provider of the target application, indicating that the target service provider does not recognize or allow the target provider to use the target application, thereby indicating that the target device cannot use the target application.
[0051] It can be seen from the above steps 101 to 103 that an application control method provided by an embodiment of the present invention, when detecting that a target application installed on a target device is started, obtains a first signature file of a target provider of an installation package of the target application and a target service provider that provides a target software development kit SDK, thereby searching for a second signature file corresponding to the target service provider in a first correspondence between a pre-stored service provider and a signature file; and then, when the first signature file does not exist in the second signature file, sends target indication information to the target device, wherein the installation package of the target application is encapsulated by the target software development kit SDK, and the target indication information is used to indicate that the target device cannot use the target application.
[0052] Among them, the provider of the application has a signature file used to represent identity information. The signature file of the provider of an application corresponds to a service provider, indicating that the service provider recognizes or allows the provider. Therefore, when the first signature file of the target provider does not exist in the second signature file corresponding to the target service provider in the above-mentioned first correspondence, it means that the target service party does not recognize or allow the target provider, thereby indicating that the target device cannot use the target application. In this way, it can prevent the provider who is not recognized or allowed by the target service party from using the target application, thereby reducing the probability of SDK leakage and guaranteeing the interests of the target service party to a certain extent.
[0053] Optionally, the method further includes:
[0054] In a case where the first signature file exists in the second signature file, the service data of the target application is sent to the target device.
[0055] Among them, the presence of the first signature file in the second signature file can be understood as the presence of the signature file of the target provider of the target application in the signature file corresponding to the target service party, indicating that the target service party recognizes or allows the target provider to use the target application, so that the target service party can send the service data of the target application to the target device, and then the target device displays the interface of the target application according to the service data.
[0056] For example, the target application may be video software, the service data may be a video file, and the target device may be a vehicle-mounted terminal. Then, the user may use the video software installed on the vehicle-mounted terminal to watch the video.
[0057] Optionally, the method further includes:
[0058] Obtaining statistical data of use of the target application by devices installed with the target application;
[0059] When the statistical data indicates that the number of devices using the target application meets a preset condition, a preset prompt operation is performed.
[0060] The above-mentioned preset prompt operation can send prompt information to a predetermined terminal device so that the manually controlled device uses the target application; the above-mentioned preset conditions include: the total number of devices using the target application exceeds the preset number, and / or the growth rate of the number of devices using the target application exceeds the preset value.
[0061] Among them, statistical data on the use of the target application by the device on which the target application is installed can be obtained at preset time intervals, or statistical data on the use of the target application by the device on which the target application is installed can be obtained upon receiving a first preset operation (such as a click operation on a first preset control displayed on a server).
[0062] In addition, the above statistical data may include device information (e.g., device model). Because the server can detect the device information on which the target application is installed when the target application is started, the server can obtain the above statistical data (i.e., the device information on which the target application is used), and thus, when the number of devices using the target application meets a preset condition, perform a preset prompt operation to enable the manually controlled device to use the target application.
[0063] In addition, when the server obtains the above statistical data, even if the number of devices using the target application does not meet the above preset conditions, the devices can be manually controlled to use the target application.
[0064] Specifically, in the embodiment of the present invention, the specific process of manually controlling the device to use the target application (i.e., controlling the device to use the target application through the human-computer interaction process) includes:
[0065] When the server receives a second preset operation (for example, a click operation on a second preset control displayed on the server), the server displays a device list, wherein the device list includes device models;
[0066] When a first operation (such as a single click operation) on a device model displayed on the server is received, the device model targeted by the first operation is moved into a whitelist;
[0067] When a second operation (eg, a double-click operation) on the device model displayed on the server is received, the device model targeted by the second operation is moved into the blacklist.
[0068] After at least one device model exists in the whitelist and the blacklist, if a device is detected to start a target application, a first signature file of a target provider of the target application and a target service provider that provides a target software development kit SDK are obtained;
[0069] Searching for a second signature file corresponding to the target service provider in a pre-stored first correspondence between service providers and signature files;
[0070] If the first signature file exists in the second signature file, obtaining the device model of the device that starts the target application program this time;
[0071] If the acquired device model exists in the whitelist, the service data of the target application is sent to the device that starts the target application this time;
[0072] When the device model of the target device exists in the blacklist, target indication information is sent to the device that starts the target application this time, wherein the target indication information is used to indicate that the device that starts the target application this time cannot use the target application.
[0073] In addition, the statistical data may also include the account used to log into the application, the number of times the application is used, the duration of the application being used, etc. Among them, the server can calculate the user profile based on the statistical data of the application, so that the service provider can update the SDK of the application based on the user's user profile, and send the updated SDK to the provider cooperating with it, so that the provider can update the application based on the updated SDK. Among them, the SDK updated according to the user profile is more in line with the user's preference for using the target application.
[0074] Optionally, the method further includes:
[0075] When the first signature file exists in the second signature file, obtaining a first device model of the target device;
[0076] Searching for a second device model corresponding to the target service provider in a pre-stored second correspondence between service providers and device models;
[0077] In a case where the first device model exists in the second device model, sending service data of the target application to the target device;
[0078] In a case where the first device model does not exist in the second device model, the target indication information is sent to the target device.
[0079] In an embodiment of the present invention, in the second corresponding relationship, after finding the target service provider corresponding to the first device model, it is determined whether the first device model exists in the second device model corresponding to the target service provider. If the first device model exists, the installation package of the application packaged by the target software development kit SDK provided by the target service provider is determined, the application is installed to form the application, and is run on the target device of the target provider, thereby sending service data to the target device.
[0080] Among them, if a provider has at least one device model representing the device produced by the provider, then the pre-stored second correspondence between the service provider and the device model can be understood as the correspondence between the service provider and the device produced by the provider. In the second correspondence, it can be the correspondence between the device models of a service provider and the devices produced by multiple providers, or it can be the correspondence between the device models of multiple service providers and the devices produced by multiple providers. In addition, the device model is a number composed of designated pinyin letters and Arabic numerals for devices of the same category, which is used to identify the device category and can indicate the provider of the device, the type of device, and the main characteristic parameters, etc.
[0081] For example, a service provider can cooperate with multiple providers. For example, service provider A cooperates with providers B, C, and D. Providers B, C, and D respectively provide service provider A with the equipment models of the equipment they produce. In this way, a second correspondence between the equipment models of service provider A and the equipment models produced by providers B, C, and D can be established.
[0082] Alternatively, multiple service providers may cooperate with multiple providers respectively. For example, service provider A cooperates with providers B, C, and D, and service provider E cooperates with providers F, G, and H. Providers B, C, and D respectively provide service provider A with the equipment models of their respective equipment products, and thus a second correspondence between the equipment models of service provider A and the equipment models produced by providers B, C, and D can be established; providers F, G, and H respectively provide service provider E with the equipment models of their respective equipment products, and thus a second correspondence between service provider E and the equipment models produced by providers F, G, and H can be established.
[0083] In addition, the existence of the first device model in the second device model indicates that the target service provider recognizes or allows the target device to use the target application, so that the service data of the target application can be sent to the target device, and the target device then displays the interface of the target application based on the service data; the absence of the first device model in the second device model indicates that the target service provider does not recognize or allow the target device to use the target application.
[0084] Optionally, the process of acquiring the first corresponding relationship and the second corresponding relationship includes:
[0085] Receive a software development kit SDK request sent by a provider of the application, wherein the software development kit SDK request carries a signature file and a device model of the provider of the application;
[0086] Establishing a first correspondence between a service provider providing the software development tool SDK and the signature file;
[0087] A second corresponding relationship between a service provider providing the software development tool SDK and the device model is established.
[0088] Among them, when at least one service party determines to cooperate with at least one provider, the server used by each service party (different service parties can use independent servers or the same server) sends information confirming the cooperation to each provider device cooperating with it (that is, the device used by the provider to interact with the service party). After receiving the information confirming the cooperation, each provider device sends a software development kit SDK request to the server used by the service party cooperating with it, and carries a signature file representing the identity of the provider and at least one device model of the device produced by the provider; after the server used by each service party receives the software development kit SDK request sent by each provider device, it establishes a first correspondence between the service party and the signature file, and a second correspondence between the service party and the device model.
[0089] In addition, after receiving the SDK request, the service provider server sends the SDK to the device of the provider cooperating with the service provider; so that the provider's device encapsulates the SDK, generates an installation package for the application, and sends it to the device produced by the provider for installation.
[0090] It should be noted that the correspondence between service providers and providers may be stored in advance, wherein one service provider may correspond to at least one provider, or multiple service providers may correspond to at least one provider respectively.
[0091] Optionally, the establishing a first correspondence between a service provider providing the software development tool SDK and the signature file includes:
[0092] Compiling the signature file of the provider of the application program in C language, and establishing a first correspondence between the service provider providing the software development tool SDK and the compiled signature file;
[0093] The establishing of a second correspondence between the service provider providing the software development tool SDK and the device model includes:
[0094] The device model of the provider of the application is compiled using C language, and a second corresponding relationship between the service provider providing the software development tool SDK and the compiled device model is established.
[0095] Among them, C language is a process-oriented, abstract general-purpose programming language, widely used in low-level development, which can compile and process low-level memory in a simple way. It is a high-efficiency programming language that only generates a small amount of machine language and does not require any operating environment support to run.
[0096] In addition, the server used by each service provider (different service providers may use independent servers or the same server), after receiving the SDK request sent by the various provider devices (i.e., the devices used by the providers to interact with the service providers) that cooperate with it, can compile the signature file carried in the SDK request and at least one device model of the device produced by the provider in accordance with the C language compilation specification, thereby establishing a first correspondence between the service provider and the signature file compiled in C language, and a second correspondence between the service provider and the device model compiled in C language.
[0097] It should be noted that one C language compilation specification can be used for one service provider, or the same C language compilation specification can be used for multiple providers, and the server does not provide the C language compilation specification to other service providers other than the service provider using the C language compilation specification. In this way, the specific compilation or modification content cannot be viewed externally, thereby preventing the leakage of compiled signature files and device models.
[0098] Optionally, when detecting that a target application installed on a target device is started, obtaining a first signature file of a target provider of the target application includes:
[0099] When it is detected that the target application installed on the target device is started, the first signature file of the target provider encapsulated in the target application is read.
[0100] The target application is formed by installing the installation package of the target application on the target device of the target provider. The installation package of the target application is generated by the target provider using the first signature file to encapsulate the SDK provided by the target service provider, that is, the first signature file and the target SDK are encapsulated to obtain the installation package of the target application. In addition, the target service provider can monitor the call data of the target SDK, so the target service provider can monitor the startup of the target application, and can directly read the first signature file encapsulated in the target application.
[0101] In summary, the specific implementation of the application control method of the embodiment of the present invention can be as described in the following implementation mode 1 or implementation mode 2:
[0102] Implementation method 1:
[0103] The preliminary preparation process may include steps H1 to H4 as described below:
[0104] Step H1: When the video service company (i.e., the service provider) cooperates with the automobile manufacturer (i.e., the provider), the automobile manufacturer's device sends a target SDK request to the video service company's server, and the request carries the automobile manufacturer's signature file;
[0105] Step H2: The server of the video service company compiles the signature file using C language to establish a first corresponding relationship between the video service company and the compiled signature file;
[0106] Step H3: The server of the video service company sends the target SDK to the device of the cooperating automobile manufacturer;
[0107] Step H4: The automobile manufacturer's device packages the target SDK, generates an installation package for the video software, and sends it to the vehicle terminal for installation;
[0108] like Figure 2 As shown, the subsequent control process of the application may include steps J1 to J5 as described below:
[0109] Step J1: When the server of the video service company detects that the video software installed on the vehicle terminal is started, it reads the first signature file of the automobile manufacturer encapsulated in the video software and obtains the video service company that provides the target SDK;
[0110] Step J2: searching for a second signature file corresponding to the video service company in the stored first correspondence between the service provider and the compiled signature file;
[0111] Step J3: When the first signature file does not exist in the second signature file, the server of the video service company sends target indication information to the vehicle terminal, wherein the target indication information is used to indicate that the vehicle terminal cannot use the video software;
[0112] Step J4: When the first signature file exists in the second signature file, the service data of the video software is sent to the vehicle terminal;
[0113] Step J5: Count the device models using the video software;
[0114] Step J6: When the number of device models counted in step J5 meets a preset condition, a prompt message is sent to the manually controlled terminal device so that the manually controlled device uses the target application.
[0115] The specific process of manually controlling the device to use the target application is described above and will not be repeated here.
[0116] Implementation method 2:
[0117] The preliminary preparation process may include steps N1 to N4 as follows:
[0118] Step N1: When the video service company (i.e., the service provider) cooperates with the automobile manufacturer (i.e., the provider), the automobile manufacturer's device sends a target SDK request to the video service company's server, and the request carries the automobile manufacturer's signature file and the device model of the vehicle terminal;
[0119] Step N2: The server of the video service company compiles the signature file using C language to establish a first correspondence between the video service company and the compiled signature file; the server of the video service company compiles the device model using C language to establish a second correspondence between the video service company and the compiled device model;
[0120] Step N3: The server of the video service company sends the target SDK to the device of the automobile manufacturer with which it cooperates;
[0121] Step N4: The automobile manufacturer's device packages the target SDK, generates an installation package for the video software, and sends it to the vehicle terminal for installation;
[0122] like Figure 3 As shown, the subsequent control process of the application may include steps M1 to M5 as described below:
[0123] Step M1: When the server of the video service company detects that the video software installed on the vehicle terminal is started, the server reads the first signature file of the automobile manufacturer encapsulated in the video software and obtains the video service company that provides the target SDK;
[0124] Step M2: searching for a second signature file corresponding to the video service company in the stored first correspondence between the service provider and the compiled signature file;
[0125] Step M3: When the first signature file does not exist in the second signature file, the server of the video service company sends target indication information to the vehicle terminal, wherein the target indication information is used to indicate that the vehicle terminal cannot use the video software;
[0126] Step M4: when the first signature file exists in the second signature file, obtaining the first device model of the vehicle-mounted terminal;
[0127] Step M5: searching for a second device model corresponding to the target service provider in the stored second correspondence between service providers and device models;
[0128] Step M6: When the first device model exists in the second device model, the service data of the video software is sent to the vehicle terminal;
[0129] Step M7: When the first device model does not exist in the second device model, target indication information is sent to the vehicle terminal.
[0130] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0131] Reference Figure 4 , shows a structural block diagram of an application control device in an embodiment of the present invention, and the application control device 400 may include the following modules:
[0132] The acquisition module 401 is used to acquire, when detecting that the target application installed on the target device is started, a first signature file of a target provider of an installation package of the target application and a target service provider providing a target software development kit SDK, wherein the installation package of the target application is encapsulated by the target software development kit SDK;
[0133] A search module 402 is used to search for a second signature file corresponding to the target service provider in a pre-stored first correspondence between service providers and signature files;
[0134] The first sending module 403 is configured to send target indication information to the target device when the first signature file does not exist in the second signature file, wherein the target indication information is used to indicate that the target device cannot use the target application.
[0135] Optionally, the application control device 400 further includes:
[0136] A second sending module is configured to send the service data of the target application to the target device when the first signature file exists in the second signature file.
[0137] Optionally, the application control device 400 further includes:
[0138] A statistical data acquisition module, used to acquire statistical data of the use of the target application by the device on which the target application is installed;
[0139] The execution module is used to execute a preset prompt operation when the statistical data indicates that the number of devices using the target application meets a preset condition.
[0140] Optionally, the application control device 400 further includes:
[0141] A first device model acquisition module, configured to acquire a first device model of the target device when the first signature file exists in the second signature file;
[0142] A second device model acquisition module, used to search for a second device model corresponding to the target service provider in a pre-stored second correspondence between service providers and device models;
[0143] a third sending module, configured to send the service data of the target application to the target device when the first device model exists in the second device model;
[0144] A fourth sending module is used to send the target indication information to the target device when the first device model does not exist in the second device model.
[0145] Optionally, the application control device 400 further includes:
[0146] A receiving module, used to receive a software development kit SDK request sent by a provider of an application, wherein the software development kit SDK request carries a signature file and a device model of the provider of the application;
[0147] A first establishing module, used to establish a first corresponding relationship between a service provider providing the software development tool SDK and the signature file;
[0148] The second establishing module is used to establish a second corresponding relationship between the service provider providing the software development tool SDK and the device model.
[0149] Optionally, the first establishing module includes:
[0150] A first establishing submodule is used to compile the signature file of the provider of the application program in C language, and establish a first corresponding relationship between the service provider providing the software development tool SDK and the compiled signature file;
[0151] The second establishing module comprises:
[0152] The second establishing submodule is used to compile the device model of the provider of the application program in C language, and establish a second corresponding relationship between the service provider providing the software development tool SDK and the compiled device model.
[0153] Optionally, the acquisition module 401 includes:
[0154] The reading submodule is used to read the first signature file of the target provider encapsulated in the target application when detecting that the target application installed on the target device is started.
[0155] It can be seen that an application control method provided by an embodiment of the present invention, when detecting that a target application installed on a target device is started, obtains the first signature file of the target provider of the installation package of the target application and the target service provider who provides the target software development kit SDK, thereby searching for the second signature file corresponding to the target service provider in the first correspondence between the pre-stored service provider and the signature file; and then, when the first signature file does not exist in the second signature file, sends target indication information to the target device, wherein the installation package of the target application is encapsulated by the target software development kit SDK, and the target indication information is used to indicate that the target device cannot use the target application.
[0156] Among them, the provider of the application has a signature file used to represent identity information. The signature file of the provider of an application corresponds to a service provider, indicating that the service provider recognizes or allows the provider. Therefore, when the first signature file of the target provider does not exist in the second signature file corresponding to the target service provider in the above-mentioned first correspondence, it means that the target service party does not recognize or allow the target provider, thereby indicating that the target device cannot use the target application. In this way, it can prevent the provider who is not recognized or allowed by the target service party from using the target application, thereby reducing the probability of SDK leakage and guaranteeing the interests of the target service party to a certain extent.
[0157] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0158] The embodiment of the present invention further provides an electronic device, such as Figure 5 As shown, it includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.
[0159] Memory 503, used for storing computer programs;
[0160] The processor 501 is used to execute the program stored in the memory 503, and implements the following steps:
[0161] When detecting that a target application installed on a target device is started, obtaining a first signature file of a target provider of an installation package of the target application and a target service provider providing a target software development kit SDK, wherein the installation package of the target application is encapsulated by the target software development kit SDK;
[0162] Searching for a second signature file corresponding to the target service provider in a pre-stored first correspondence between service providers and signature files;
[0163] In the case that the first signature file does not exist in the second signature file, the communication interface 502 is controlled to send target indication information to the target device, wherein the target indication information is used to indicate that the target device cannot use the target application.
[0164] Optionally, the processor 501 is further configured to:
[0165] In a case where the first signature file exists in the second signature file, the communication interface 502 is controlled to send the service data of the target application to the target device.
[0166] Optionally, the processor 501 is further configured to:
[0167] Obtaining statistical data of use of the target application by devices installed with the target application;
[0168] When the statistical data indicates that the number of devices using the target application meets a preset condition, a preset prompt operation is performed.
[0169] Optionally, the processor 501 is further configured to:
[0170] When the first signature file exists in the second signature file, obtaining a first device model of the target device;
[0171] Searching for a second device model corresponding to the target service provider in a pre-stored second correspondence between service providers and device models;
[0172] In the case where the first device model exists in the second device model, controlling the communication interface 502 to send the service data of the target application to the target device;
[0173] In a case where the first device model does not exist in the second device model, the communication interface 502 is controlled to send the target indication information to the target device.
[0174] Optionally, when acquiring the first corresponding relationship and the second corresponding relationship, the processor 501 is specifically configured to:
[0175] Controlling the communication interface 502 to receive a software development kit SDK request sent by a provider of an application, wherein the software development kit SDK request carries a signature file and a device model of the provider of the application;
[0176] Establishing a first correspondence between a service provider providing the software development tool SDK and the signature file;
[0177] A second corresponding relationship between a service provider providing the software development tool SDK and the device model is established.
[0178] Optionally, when establishing the first corresponding relationship between the service provider providing the software development tool SDK and the signature file, the processor 501 is specifically configured to:
[0179] Compiling the signature file of the provider of the application program in C language, and establishing a first correspondence between the service provider providing the software development tool SDK and the compiled signature file;
[0180] When establishing the second correspondence between the service provider providing the software development tool SDK and the device model, the processor 501 is specifically configured to:
[0181] The device model of the provider of the application is compiled using C language, and a second corresponding relationship between the service provider providing the software development tool SDK and the compiled device model is established.
[0182] Optionally, when the processor 501 detects that the target application installed on the target device is started, when acquiring the first signature file of the target provider of the target application, it is specifically configured to:
[0183] When it is detected that the target application installed on the target device is started, the first signature file of the target provider encapsulated in the target application is read.
[0184] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0185] The communication interface is used for communication between the above terminal and other devices.
[0186] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0187] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0188] In another embodiment of the present invention, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the application control method described in any of the above embodiments.
[0189] In another embodiment of the present invention, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute the application control method described in any one of the above embodiments.
[0190] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0191] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0192] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0193] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. An application control method, characterized in that: The method comprises: When detecting that a target application installed on a target device is started, obtaining a first signature file of a target provider of an installation package of the target application and a target service provider providing a target software development kit SDK, wherein the installation package of the target application is encapsulated by the target software development kit SDK; Searching for a second signature file corresponding to the target service provider in a pre-stored first correspondence between service providers and signature files; In a case where the first signature file does not exist in the second signature file, sending target indication information to the target device, wherein the target indication information is used to indicate that the target device cannot use the target application; In a case where the first signature file exists in the second signature file, the first device model of the target device is obtained; in a pre-stored second correspondence between service providers and device models, the second device model corresponding to the target service provider is searched; in a case where the first device model exists in the second device model, the service data of the target application is sent to the target device; in a case where the first device model does not exist in the second device model, the target indication information is sent to the target device.
2. The method according to claim 1, characterized in that The method further comprises: In a case where the first signature file exists in the second signature file, the service data of the target application is sent to the target device.
3. The method according to claim 2, characterized in that The method further comprises: Obtaining statistical data of use of the target application by devices installed with the target application; When the statistical data indicates that the number of devices using the target application meets a preset condition, a preset prompt operation is performed.
4. The method according to claim 1, characterized in that: The process of acquiring the first corresponding relationship and the second corresponding relationship includes: Receive a software development kit SDK request sent by a provider of the application, wherein the software development kit SDK request carries a signature file and a device model of the provider of the application; Establishing a first correspondence between a service provider providing the software development tool SDK and the signature file; A second corresponding relationship between a service provider providing the software development tool SDK and the device model is established.
5. The method according to claim 4, characterized in that The establishing of a first correspondence between the service provider providing the software development tool SDK and the signature file includes: Compiling the signature file of the provider of the application program in C language, and establishing a first correspondence between the service provider providing the software development tool SDK and the compiled signature file; The establishing of a second correspondence between the service provider providing the software development tool SDK and the device model includes: The device model of the provider of the application is compiled using C language, and a second corresponding relationship between the service provider providing the software development tool SDK and the compiled device model is established.
6. The method according to claim 1, characterized in that The step of obtaining a first signature file of a target provider of an installation package of the target application upon detecting that the target application installed on the target device is started includes: When it is detected that the target application installed on the target device is started, the first signature file of the target provider encapsulated in the target application is read.
7. An application control device, characterized in that: The device comprises: an acquisition module, configured to acquire, when detecting that a target application installed on a target device is started, a first signature file of a target provider of an installation package of the target application and a target service provider providing a target software development kit SDK, wherein the installation package of the target application is encapsulated by the target software development kit SDK; A search module, used to search for a second signature file corresponding to the target service provider in a pre-stored first correspondence between service providers and signature files; A first sending module, configured to send target indication information to the target device when the first signature file does not exist in the second signature file, wherein the target indication information is used to indicate that the target device cannot use the target application; A first device model acquisition module, configured to acquire a first device model of the target device when the first signature file exists in the second signature file; A second device model acquisition module, used to search for a second device model corresponding to the target service provider in a pre-stored second correspondence between service providers and device models; a third sending module, configured to send the service data of the target application to the target device when the first device model exists in the second device model; A fourth sending module is used to send the target indication information to the target device when the first device model does not exist in the second device model.
8. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Signature and signature verification method of upgrade package, and storage medium
CN111274552A
File testing method, device and system, electronic equipment and readable storage medium
CN113342660A