CN113766059A - Application program starting method, terminal device and computer readable storage medium - Google Patents

Application program starting method, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN113766059A
CN113766059A CN202111316681.9A CN202111316681A CN113766059A CN 113766059 A CN113766059 A CN 113766059A CN 202111316681 A CN202111316681 A CN 202111316681A CN 113766059 A CN113766059 A CN 113766059A
Authority
CN
China
Prior art keywords
card
serial number
terminal equipment
exchange format
data exchange
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111316681.9A
Other languages
Chinese (zh)
Other versions
CN113766059B (en
Inventor
陆舟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN202111316681.9A priority Critical patent/CN113766059B/en
Publication of CN113766059A publication Critical patent/CN113766059A/en
Application granted granted Critical
Publication of CN113766059B publication Critical patent/CN113766059B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/04Details of telephonic subscriber devices including near field communication means, e.g. RFID

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present application relates to the field of information security technologies, and in particular, to an application program starting method, a terminal device, and a computer-readable storage medium. In the application, the automatic starting of the target application program corresponding to the card is realized, the manual selection of the target application program is avoided, the starting efficiency is improved, and the use experience of a user is improved.

Description

Application program starting method, terminal device and computer readable storage medium
Technical Field
The present application relates to the field of information security technologies, and in particular, to an application program starting method, a terminal device, and a computer-readable storage medium.
Background
Currently, with the development of science and technology, internet and 5G technologies are also in rapid development, in the prior art, when a terminal device scans a card through an NFC function, a plurality of application programs are popped up in an interface of the terminal device, the popped up application programs include an application program corresponding to the card, and a user selects a required application program from the application programs; because a plurality of irrelevant application programs can be popped up, the starting efficiency of the target application program is not high, and a user needs to actively select the required target application program, so that the use feeling of the user is poor, and therefore, how to realize the automatic selection starting of the target application program becomes a technical problem which needs to be solved at present.
Disclosure of Invention
The application provides an application program starting method, terminal equipment and a computer readable storage medium, so as to realize automatic starting of a target application program.
In a first aspect, an application starting method is provided, where a terminal device is configured with a program filter, and the method includes:
when the application program is installed for the first time, the terminal equipment starts a core process according to the received installation package, incubates a system service process, and creates and starts package management service in the system service process;
the terminal equipment traverses a preset file directory in the started package management service and analyzes an apk file under the file directory to obtain corresponding node information;
the terminal equipment stores the node information obtained by analysis in a preset setting object;
the terminal equipment saves the package name of the apk file and the setting object in a key value pair form;
the terminal equipment maintains apk information and installs the apk information to obtain an installed application program;
the method further comprises the following steps:
when the terminal equipment is communicated with a card, the terminal equipment performs data interaction with the card based on communication negotiation with the card to obtain NFC data exchange format file content data;
the terminal equipment packages the NFC data exchange format file content data into the program filter;
the terminal equipment performs intersection set duplication elimination according to the stored package name of the apk file and the data packaged in the program filter to obtain duplication eliminated data;
the terminal equipment determines a matched setting object according to the data after the duplication removal;
and the terminal equipment starts the application program according to the determined setting object.
In one possible implementation manner, the obtaining, by the terminal device, NFC data exchange format file content data by performing data interaction with a card based on a communication negotiation with the card includes:
the terminal equipment performs communication negotiation with the card based on the started NFC function;
and the terminal equipment performs data interaction with the card based on the communication negotiation to obtain the content data of the NFC data exchange format file.
In one possible implementation, the encapsulating, by the terminal device, the NFC data exchange format file content data into the program filter includes:
the terminal equipment analyzes the NFC data exchange format file content data to obtain corresponding analyzed data;
and the terminal equipment encapsulates the analysis data into the program filter.
In one possible implementation, the negotiating, by the terminal device, communication with the card based on the opened NFC function includes:
the terminal equipment sends a card searching request based on the started NFC function;
the terminal equipment receives a card searching response returned by the card, wherein the card searching response carries serial number information corresponding to the card;
the terminal equipment determines whether the serial number of the card is a complete serial number according to the serial number information;
and if the serial number is complete, the terminal equipment sends a communication negotiation instruction to the card so as to realize communication negotiation with the card.
In a possible implementation manner, the card-searching response further carries information on whether bit frame anti-collision is supported, and the determining, by the terminal device, whether the serial number of the card is a complete serial number according to the serial number information includes:
when the information whether the bit frame anti-collision is supported is the bit frame anti-collision support, the terminal equipment determines whether the serial number of the card is a complete serial number according to the serial number information;
and when the information whether the bit frame anti-collision is supported is that the bit frame anti-collision is not supported, ending the process.
In one possible implementation manner, the determining, by the terminal device, whether the serial number of the card is a complete serial number according to the serial number information includes:
the terminal equipment determines the serial number digit according to the serial number information;
the terminal equipment sends a serial number query request to the card according to the determined serial number;
the terminal equipment receives a first inquiry response of the serial number returned by the card to obtain the serial number of the specific digit corresponding to the card;
the terminal equipment sends a selection request to the card according to the serial number of the specific digit;
the terminal equipment receives a second query response returned by the card, wherein the second query response comprises a serial number of the card;
and the terminal equipment detects the serial number of the card and determines whether the serial number of the card is a complete serial number.
In one possible implementation, the method further includes:
if the serial number is not complete, the terminal equipment sends a serial number query request to the card so as to query the serial number corresponding to the card;
the terminal equipment receives a communication negotiation response returned by the card, and sends an NFC data exchange format application selection instruction to the card according to the communication negotiation response;
the terminal equipment receives a first execution response returned by the card based on the NFC data exchange format application selection instruction;
and the terminal equipment acquires the NFC data exchange format file content data of the card according to the first execution response, and starts an application program corresponding to the card according to the NFC data exchange format file content data.
In a possible implementation manner, the performing, by the terminal device, data interaction with the card based on the communication negotiation to obtain a content number of the NFC data exchange format file includes:
the terminal equipment sends an NFC data exchange format application selection instruction to the card based on the communication negotiation;
the terminal equipment receives a first execution response returned by the card based on the NFC data exchange format application selection instruction;
and the terminal equipment acquires the NFC data exchange format file content data of the card according to the first execution response.
In one possible implementation manner, the obtaining, by the terminal device, NFC data exchange format file content data of the card according to the first execution response includes:
the terminal equipment sends a CC file selection instruction to the card according to the first execution response;
the terminal equipment receives a second execution response returned by the card based on the CC file selection instruction;
the terminal equipment sends a command for reading data from the selected CC file to the card according to the second execution response;
the terminal equipment receives CC file reading data returned by the card;
the terminal equipment sends an NFC data exchange format file selection instruction to the card according to the CC file reading data;
the terminal equipment receives a third execution response returned by the card based on the NFC data exchange format file selecting instruction;
the terminal equipment sends an NFC data exchange format file length reading instruction to the card according to the third execution response;
the terminal equipment receives the NFC data exchange format file length data returned by the card;
the terminal equipment sends an instruction for reading the content of the NFC data exchange format file to the card according to the NFC data exchange format file length data;
and the terminal equipment receives the NFC data exchange format file content data returned by the card.
In a second aspect, a terminal device is provided, where a program filter is configured on the terminal device, and the terminal device includes:
the first processing module is used for starting a core process according to a received installation package when an application program is installed for the first time, hatching out a system service process, and creating and starting package management service in the system service process;
the second processing module is used for traversing a preset file directory in the started package management service and analyzing an apk file under the file directory to obtain corresponding node information;
the third processing module is used for storing the node information obtained by analysis in a preset setting object by the terminal equipment;
the fourth processing module is used for saving the package name of the apk file and the setting object in a key value pair form;
the fifth processing module is used for maintaining apk information and installing the apk information to obtain an installed application program;
the sixth processing module is used for performing data interaction with the card based on communication negotiation with the card to obtain NFC data exchange format file content data;
a seventh processing module, configured to encapsulate the NFC data exchange format file content data into the program filter;
the eighth processing module is used for performing intersection and duplication removal on the stored package name of the apk file and the data encapsulated in the program filter to obtain data subjected to duplication removal;
the ninth processing module is used for determining a matched setting object according to the data after the duplication removal; wherein, the matched setting object is the saved setting object;
and the tenth processing module is used for starting the application program according to the determined setting object.
In one possible implementation manner, the sixth processing module is configured to perform communication negotiation with the card based on the turned-on NFC function; and performing data interaction with the card based on the communication negotiation to obtain the content data of the NFC data exchange format file.
In a possible implementation manner, the seventh processing module is configured to parse the NFC data exchange format file content data to obtain corresponding parsed data; encapsulating the parsed data into the program filter.
In a possible implementation manner, the sixth processing module is specifically configured to send a card search request based on the turned-on NFC function; receiving a card searching response returned by the card, wherein the card searching response carries serial number information corresponding to the card; determining whether the serial number of the card is a complete serial number according to the serial number information; and if the serial number is complete, sending a communication negotiation instruction to the card so as to realize communication negotiation with the card.
In a possible implementation manner, the card-searching response further carries information on whether bit frame anti-collision is supported, and the sixth processing module is specifically configured to determine whether the serial number of the card is a complete serial number according to the serial number information when the information on whether bit frame anti-collision is supported is bit frame anti-collision; and when the information whether the bit frame anti-collision is supported is that the bit frame anti-collision is not supported, ending the process.
In a possible implementation manner, the sixth processing module is specifically configured to determine a serial number bit number according to the serial number information; sending a serial number query request to the card according to the determined serial number; receiving a first inquiry response of the serial number returned by the card to obtain the serial number of the specific digit corresponding to the card; sending a selection request to the card according to the serial number of the specific digit; receiving a second query response returned by the card, wherein the second query response comprises a serial number of the card; and detecting the serial number of the card, and determining whether the serial number of the card is a complete serial number.
In one possible implementation, the method further includes:
if the serial number is not complete, the sixth processing module is configured to send a serial number query request to the card to query the serial number corresponding to the card; receiving a communication negotiation response returned by the card, and sending an NFC data exchange format application selection instruction to the card according to the communication negotiation response; receiving a first execution response returned by the card based on the NFC data exchange format application selection instruction; and acquiring the NFC data exchange format file content data of the card according to the first execution response, and starting an application program corresponding to the card according to the NFC data exchange format file content data.
In one possible implementation, the sixth processing module is specifically configured to send an NFC data exchange format application selection instruction to the card based on the communication negotiation; receiving a first execution response returned by the card based on the NFC data exchange format application selection instruction; and acquiring the NFC data exchange format file content data of the card according to the first execution response.
In one possible implementation, the sixth processing module is configured to send a CC file selection instruction to the card according to the first execution response; receiving a second execution response returned by the card based on the CC file selection instruction; sending an instruction for reading data from the selected CC file to the card according to the second execution response; receiving CC file reading data returned by the card; sending an NFC data exchange format file selection instruction to the card according to the CC file reading data; receiving a third execution response returned by the card based on the NFC data exchange format file selecting instruction; sending an NFC data exchange format file length reading instruction to the card according to the third execution response; receiving NFC data exchange format file length data returned by the card; sending an instruction for reading the NFC data exchange format file content to the card according to the NFC data exchange format file length data; and receiving the content data of the NFC data exchange format file returned by the card.
In a third aspect, a terminal device is provided, which includes: a processor and a memory;
the memory for storing a computer program;
the processor is used for executing the application program starting method by calling the computer program.
In a fourth aspect, a computer-readable storage medium is provided for storing a computer program which, when run on a computer, causes the computer to perform the application launching method described above.
By means of the technical scheme, the technical scheme provided by the application at least has the following advantages:
in the application, through the scheme, the automatic starting of the target application program corresponding to the card is realized, the manual selection of the target application program is avoided, the starting efficiency is improved, and the use experience of a user is improved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the embodiments of the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flowchart of an application starting method provided in the present application;
FIG. 2 is a schematic processing flow diagram illustrating one possible implementation of an application startup method provided in the present application;
fig. 3 is a schematic processing flow diagram of a specific implementation manner of the application program starting method provided in the present application;
fig. 4 is a schematic structural diagram of a terminal device provided in the present application;
fig. 5 is a schematic structural diagram of an electronic device of an application starting method provided in the present application.
Detailed Description
The present application provides an application program starting method, a terminal device and a computer-readable storage medium, and the following describes in detail embodiments of the present application with reference to the accompanying drawings.
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
As shown in fig. 1, a schematic flowchart of an application starting method provided by the present application is provided, where a terminal device is configured with a program filter, and the method includes the following steps:
step S101, when an application program is installed for the first time, the terminal equipment starts a core process according to a received installation package, hatches a system service process, and creates and starts package management service in the system service process;
step S102, the terminal device traverses a preset file directory in the started package management service and analyzes an apk file under the file directory to obtain corresponding node information;
step S103, the terminal equipment stores the node information obtained by analysis in a preset setting object;
step S104, the terminal equipment saves the package name of the apk file and the setting object in a key value pair form;
step S105, the terminal equipment maintains apk information and installs the apk information to obtain an installed application program;
the method further comprises the following steps:
step S106, the terminal equipment performs data interaction with the card based on communication negotiation with the card to obtain NFC data exchange format file content data;
step S107, the terminal equipment packages the NFC data exchange format file content data into the program filter;
step S108, the terminal device performs intersection set duplication elimination according to the packaged data and the stored package name of the apk file to obtain duplication eliminated data;
step S109, the terminal equipment determines a matched setting object according to the data after the duplication removal; wherein, the matched setting object is the saved setting object;
and step S110, the terminal equipment starts the application program according to the determined setting object.
In the application, through the scheme, the automatic starting of the target application program corresponding to the card is realized, the manual selection of the target application program is avoided, the starting efficiency is improved, and the use experience of a user is improved.
Based on the technical solution provided by the present application, the following explains the technical solution in detail, as shown in fig. 2, which is a processing flow chart of one possible implementation manner of the application program starting method provided by the present application.
Step S201, the terminal device sends a card searching request based on the opened NFC function.
In a possible implementation manner, after the terminal device starts the NFC function, the terminal device may actively send a card-searching request broadcast to the field intensity range based on the started NFC function, so that all cards in the field intensity range send responses to the terminal device.
Step S202, the terminal equipment receives a card searching response returned by the card.
In a possible implementation manner, after the terminal device sends a card-searching request broadcast, each card within the field intensity range sends a card-searching response to the terminal device, so that the terminal device is informed that the card is within the field intensity range, and the card-searching response carries serial number information corresponding to the card, so that the serial number information informs the terminal device of how many bits the serial number of the terminal device is.
In a possible implementation manner, for a card-searching response returned by a plurality of cards, the terminal device may sequentially select the cards from strong to weak according to the strength sequence of the field intensity of each card for processing, and when the current card processing fails, the terminal device may continue to select the sequential cards for processing.
In step S203, the terminal device determines whether the information carried in the card-searching response supports bit frame anti-collision.
In a possible implementation manner, the card-searching response received by the terminal device also carries information whether to support bit frame anti-collision, and the terminal device may determine a subsequent processing flow according to the information whether to support bit frame anti-collision. And when the information whether the bit frame anti-collision is supported is the bit frame anti-collision support, the step is switched to the step S204, and when the information whether the bit frame anti-collision is supported is the bit frame anti-collision support, the process is ended.
And step S204, the terminal equipment determines the serial number digits of the card according to the serial number information.
In one possible implementation, after obtaining the serial number information, the terminal device may determine how many bits of the serial number of the card is based on the serial number information.
And S205, the terminal equipment sends a serial number query request to the card according to the determined serial number digits.
In one possible implementation manner, after determining the number of the serial number, the terminal device sends a serial number query request to the card, so as to query the serial number of the specific number of the card. Of course, in the query request, the terminal device may send a request for a serial number query according to a specific protocol, for example, send a request message for querying the first 4 bits of the serial number.
And step S206, the terminal equipment obtains the serial number of the specific digit according to the first inquiry response of the serial number of the card.
In a possible implementation manner, after sending the request to the card, the terminal device may receive a first query response returned by the card, and obtain a serial number of a specific number of bits corresponding to the card in the response.
And step S207, the terminal equipment sends a selection request to the card according to the serial number of the specific digit.
In one possible implementation manner, after obtaining the serial number of the specific digit corresponding to the card, the terminal device sends a serial number selection request to the card, so that the card determines whether the serial number carried in the selection request is the serial number of the terminal device itself.
And step S208, the terminal equipment receives a second inquiry response returned by the card.
In a possible implementation manner, after receiving the selection request sent by the terminal device, the card determines that the serial number is the own serial number, and accordingly sends, through the second inquiry response, a corresponding other serial number to the terminal device, of course, how many other serial numbers are sent are also the specific number of bits sent according to the specific protocol.
Step S209, the terminal device detects the serial number in the second query response, and determines whether the serial number is a complete serial number.
In a possible implementation manner, after obtaining the serial number returned by the card, the terminal device combines the serial number in the second inquiry response and the serial number of the specific digit into a serial number combination, detects the serial number combination according to the obtained serial number digit of the card, and determines whether the serial number combination is a complete serial number. If the sequence number is a complete sequence number, go to step S210, and if the sequence number is an incomplete sequence number, go to step S205.
Step S210, the terminal device sends a communication negotiation instruction to the card.
In one possible implementation, the terminal device performs communication negotiation with the card by sending a communication negotiation instruction after determining that the serial number is a complete serial number.
Step S211, the terminal device sends an NFC data exchange format application selection instruction to the card according to the received communication negotiation response.
In a possible implementation manner, after receiving a communication negotiation instruction sent by a terminal device, a card returns a communication negotiation response to the terminal device according to the instruction, so as to implement negotiation on communication parameters; and the terminal equipment sends an NFC data exchange format application selection instruction to the card according to the negotiated communication parameters, and informs the card of the selected NFC data exchange format application through the NFC data exchange format application ID.
In step S212, the terminal device receives the first execution response returned by the card.
After receiving the NFC data exchange format application selection instruction, the card determines whether the corresponding NFC data exchange format application is an executable application, and returns a corresponding execution response to the terminal device.
Step S213, the terminal device obtains the NFC data exchange format file content data of the card according to the first execution response.
In a possible implementation manner, the terminal device sends a CC file selection instruction to the card according to the first execution response, the card receives the CC file selection instruction, determines whether the corresponding CC file is an executable file according to the CC file selection instruction, and returns a corresponding second execution response to the terminal device; after obtaining the corresponding second execution response, the terminal equipment continues to send a command for reading data from the selected CC file to the card; the card finds out corresponding CC file reading data according to the instruction, and returns the CC file reading data to the terminal equipment; after the CC file reading data is obtained, the terminal equipment sends an NFC data exchange format file selecting instruction to the card according to the CC file reading data; the card receives the instruction for selecting the NFC data exchange format file, determines whether the corresponding NFC data exchange format file is an executable file or not according to the instruction, and returns a corresponding third execution response to the terminal equipment; the terminal equipment continues to send an instruction for reading the length of the NFC data exchange format file to the card according to the third execution response; the terminal equipment receives the NFC data exchange format file length data returned by the card; the terminal equipment sends an instruction for reading the content of the NFC data exchange format file to the card according to the obtained NFC data exchange format file length data; and the terminal equipment receives the NFC data exchange format file content data returned by the card.
Step S214, the terminal device analyzes the NFC data exchange format file content data to obtain corresponding analysis data.
In a possible implementation manner, after obtaining the NFC data exchange format file content data, the terminal device parses the NFC data exchange format file content data to obtain corresponding parsed data.
Step S215, the terminal device packages the parsed data into a program filter.
In one possible implementation manner, after obtaining the NFC data exchange format file content data, the terminal device encapsulates the data therein into the program filter.
In step S216, the terminal device determines a setting object matched with the card according to the data encapsulated in the program filter.
In a possible implementation manner, the terminal device performs intersection set removing and duplication removing operations according to the data encapsulated in the program filter and the package name of the stored APK file to obtain corresponding duplication removed data, and further determines a setting object matched with the card according to the duplication removed data, where the setting object is the stored setting object.
Step S217, the terminal device starts the application program according to the determined setting object.
In a possible implementation manner, after the terminal device matches the corresponding setting object, the terminal device starts the application program according to the determined setting object, so that the application program with the matched target is found from the plurality of application programs in the background.
In one possible implementation, the processing of step S215 to step S217 may include:
after the terminal equipment obtains the NFC data exchange format file content data of the card, the data is packaged into a program filter on the terminal equipment in an NFC data exchange format, and the application program is started based on the data packaged in the program filter; specifically, the terminal device first determines whether a program filter matching an application record in data in an NFC data exchange format exists on the terminal device; if the workflow exists, the application program is directly started, and if the workflow does not exist, the terminal equipment further determines whether a workflow matched with the program filter exists; if the workflow matched with the program filter does not exist, turning to the step a for processing; if the workflow matched with the program filter exists, continuously determining whether the workflow matched with the program filter is multiple or not; if the workflow is a plurality of workflows, turning to the step a for processing; if not, further determining whether the workflow matched with the program filter matches with the application program record; if the two are matched, the application program is started, and if the two are not matched, the step a is carried out to process.
Step a, starting an application program specified by application program record, and determining whether the application program specified by the application program record exists; if the specified application program exists, directly starting the target application program; and if the specified application program does not exist, popping up a dialog box for prompting, and ending the process.
In the application, through the scheme, the automatic starting of the target application program corresponding to the card is realized, the manual selection of the target application program is avoided, the starting efficiency is improved, and the use experience of a user is improved.
Based on the technical solution provided by the present application, the following explains the technical solution in detail in a specific implementation manner, as shown in fig. 3, a specific processing flow chart of a possible implementation manner of the application program starting method provided by the present application is provided.
Step S301, a system of the mobile phone acquires an installation package of the bus card application program.
In a possible implementation mode, when an application program corresponding to a bus card needs to be installed for the first time, a user performs installation triggering operation on the application program on a mobile phone, and a system acquires ID information of the application program according to the triggering of the user; after receiving the ID information, the system performs an authorization check for the application, including: and checking whether the process for calling and installing has the authority for installing the application, and then checking whether the user of the calling process has the authority for installing the application. When the checking is finished and the permission is determined, calling a corresponding installation process to initiate a request to an application program platform to acquire request information of the application program, binding specific service in the message, waiting for a binding result, and putting the installed parameter information into a corresponding installation list; and the application program platform finds the corresponding installation package of the application program according to the request message sent by the system and returns the installation package to the system.
Step S302, the system starts the establishment of the package management service through the system service process.
In one possible implementation, the system receives the installation package and performs the corresponding installation process. Specifically, a core (zygate) process in the system is started, a system service process is hatched, and a package management service is created and started in the system service process.
In step S303, 6 file directories are traversed in the started package management service.
In one possible implementation, the 6 directories of data, app-lib, app-asec, user, app-private are traversed in the package management service that is started.
Step S304, analyzing the apk files in the 6 file directories.
In a possible implementation manner, analyzing an apk file (android manifest. xml file) in the 6 file directories, and analyzing the node information of the whole android manifest through loop traversal; analyzing a uses-sdk node to obtain attribute values of minsDkVersion and targetSkVersion; analyzing a uses-permission node to obtain an attribute value of the name as android. Analyzing the application node to obtain an activity property node, continuously analyzing the property node, and obtaining the action value of the program filter as android.
In step S305, the system stores the node information obtained by parsing in a preset setting object.
In one possible implementation manner, the parsed node information is stored in a package object, and further stored in a preset setting object.
Step S306, the system saves the package name and the setting object of the android Manifest.
In one possible implementation, the system saves the package name com.ftsafe.nfc.card (corresponding to 636F 6D 2E 6674736166652E 6E 66632E 63617264) and the setting object of the android manifest.xml file having a one-to-one correspondence with the setting object in the form of a key-value pair.
Step S307, the apk information is maintained and installed.
In one possible implementation, after saving the package name and the setting object, the system persistently maintains the apk information, i.e. continuously presents the apk information (such as continuously displaying an icon of an application program to be installed in the terminal device), and performs installation of the application program. When the installation is carried out, if other application programs to be installed exist in the installation list, the installation processing of the application programs is sequentially executed according to the arrangement sequence in the installation list.
Step 308, the system sends a card-seeking request based on the opened NFC function.
Specifically, the system turns on the NFC function and actively sends a card-seeking request 26 within its own broadcast range based on the turned-on NFC function.
In step S309, the system receives a card-searching response returned by each card.
Specifically, there are 4 cards, a bus card, an access card, a fueling card and a membership card in the broadcasting range of the system, and after receiving the aforementioned card-searching request 26, the 4 cards respectively return corresponding card-searching responses 4400 to the system.
And S310, selecting a card searching response corresponding to the bus card from the card searching responses of the cards by the system.
Specifically, after obtaining the card-seeking response 4400 returned by each card, the system selects the card-seeking response 4400 of the bus card with the maximum field strength according to the field strength of each card to process.
And S311, the system determines the serial number information corresponding to the bus card according to the card searching response of the bus card.
Specifically, the system obtains serial number information corresponding to the bus card according to the card-seeking response 4400 of the bus card, so as to determine the serial number 0425 DA 8a 906B 81 with the serial number being 7 bits.
In step S312, the system determines that the bus card supports bit frame anti-collision.
Specifically, the system determines that the bus card supports bit frame anti-collision by detecting the card-seeking response 4400.
Step S313, the system sends a serial number query request to the bus card.
Specifically, after determining that the bus card supports the anti-collision of the bit frame, the system sends a serial number query request 9320 to the bus card, so as to query the first 4 serial numbers corresponding to the bus card.
And step S314, the bus card determines a corresponding serial number according to the serial number query request.
Specifically, after the bus card receives the query request 9320, based on the preset serial number splitting setting, the 7-bit serial number is split into 2 parts, that is, the first part includes the first 3-bit serial number, and the second part includes the last 4-bit serial number, then the first 3-bit serial number needs to be provided to the system at this time, but in order to achieve the format requirement of returning the first 4-bit serial number, 1-bit serial number used for format filling is available, that is, the first serial number is filled with "88", so that the obtained first 4-bit serial number is 880425 DA.
And step S315, the bus card carries the determined serial number in the first query response and sends the first query response to the system.
Specifically, after obtaining the first 4-bit serial number 880425 DA, the bus card returns the first 4-bit serial number to the system by carrying the first 4-bit serial number in a first query response 880425 DA 73, where 73 is a check bit.
Step S316, the system obtains the first 4 serial numbers according to the first query response.
Specifically, the system obtains the first 4-bit serial number 880425 DA corresponding to the bus card according to the first query response 880425 DA 73.
And step S317, the system sends a selection request to the bus card according to the obtained first 4 serial numbers.
Specifically, the system sends a selection request 9370880425 DA 73D 4A 2 to the bus card according to the obtained first 4-bit serial number 880425 DA corresponding to the bus card and the check bit "73", so that the bus card determines whether the serial number 0425 DA carried in the selection request 93708B 0425 DA 73D 4A 2 is the own serial number.
Step S318, the bus card determines whether the serial number carried in the selection request is the own serial number.
Specifically, the bus card determines whether the serial number 0425 DA carried in the selection request 93708B 0425 DA 73D 4 a2 is its own serial number.
And step S319, the bus card sends a second inquiry response to the system.
Specifically, after the bus card determines that the serial number 0425 DA carried in the selection request is the own serial number, a second inquiry response 04 DA 17 is sent to the system, and whether the serial number is complete serial number information is informed in the second inquiry response 04 DA 17.
In step S320, the system determines that the obtained sequence number is an incomplete sequence number according to the second query response.
Specifically, the system detects the second query response after obtaining the second query response, and thereby determines that the obtained sequence number is an incomplete sequence number.
Step S321, the system sends a serial number query request to the bus card.
Specifically, after the system detects and determines that the serial number is an incomplete serial number, the system continuously sends a serial number query request 9520 to the bus card, so as to query serial numbers of other digits corresponding to the bus card.
And step S322, the bus card returns a first inquiry response to the system.
Specifically, after receiving the query request 9520 sent by the system for the second time, the bus card returns the corresponding other 4-bit serial number 8a 906B 81 carried in the first query response 8a 906B 81F 0 to the system.
Step S323, the system obtains other 4-bit serial numbers according to the first query response.
Specifically, the system obtains other 4-bit serial numbers 8a 906B 81 corresponding to the bus card according to the first query response 8a 906B 81F 0 returned by the bus card.
In step S324, the system sends a selection request according to the other 4-bit serial numbers.
Specifically, after obtaining the other 4-bit serial number 8A 906B 81, the system sends a selection request 95708A 906B 81F 013E 7 to the bus card according to the obtained other 4-bit serial number 8A 906B 81.
Step S325, the bus card determines whether the other 4-bit sequence number carried in the selection request is its own serial number.
Specifically, after receiving the selection request, the bus card continues to determine whether the other 4-bit serial number 8a 906B 81 carried in the selection request 95708 a 906B 81F 013E 7 is its own serial number.
Step S326, the bus card sends a second inquiry response to the system.
Specifically, after the bus card determines that the other 4-bit serial number 8a 906B 81 carried in the selection request is the own serial number, a second query response 00 FE 51 is sent to the system, and the second query response 00 FE 51 informs that the serial number is the own serial number.
And step S327, the system determines the serial number as the serial number of the bus card according to the second inquiry response.
Specifically, after obtaining the second inquiry response, the system detects the second inquiry response, thereby determining that the other 4-bit serial number 8a 906B 81 is the serial number of the bus card.
Step S328, the system combines the obtained serial number with other 4-bit serial numbers to obtain a serial number combination.
Specifically, after determining that the other 4-bit serial number is the serial number of the bus card, the system combines and splices the other 4-bit serial number 8A 906B 81 and the front 4-bit serial number 880425 DA to obtain a serial number combination 880425 DA 8A 906B 81.
In step S329, the system determines whether the combination of serial numbers is a complete serial number.
Specifically, the system detects 880425 DA 8A 906B 81 combination of serial numbers through the obtained serial number 0425 DA 8A 906B 81 of the bus card; since the first bit "88" of the serial number combination is the serial number of the padding bit, the serial number of the padding bit is not detected when determining whether the serial number combination is the complete serial number, and therefore, only the 0425 DA 8a 906B 81 is detected whether the serial number is the complete serial number.
And step S330, the system communicates and negotiates with the bus card.
Specifically, after determining that the serial number combination is a complete serial number 0425 DA 8a 906B 81, the system sends a communication negotiation instruction E0803173 to the bus card to perform communication negotiation; after receiving the communication negotiation instruction E0803173, the bus card returns a communication negotiation response 057880E 1022046 to the system according to the instruction, so that the negotiation of the communication parameters by the bus card and the system is realized.
And step S331, the system sends an NFC data exchange format application selection instruction to the bus card according to the negotiated communication parameters.
Specifically, after the system negotiates with the bus card in communication, the system sends an NFC Data Exchange Format (NDEF) application selection instruction 0200 a 4040007D 27600008501010035C 0 to the bus card according to the negotiated communication parameters.
Step S332, the bus card determines whether the corresponding NFC data exchange format application is an executable application according to the NFC data exchange format application selection instruction.
Specifically, after receiving the NFC data exchange format application selection instruction 0200 a 4040007D 27600008501010035C 0, the bus card determines whether the NFC data exchange format application corresponding to the instruction is an executable application, and obtains a corresponding first result.
And S333, the bus card sends a first execution response carrying the first result to the system.
Specifically, the bus card returns the obtained first result to the system in the first execution response 029000F 109.
In step S334, the system sends a CC file selection instruction to the bus card based on the first execution response.
Specifically, the system determines the NFC data exchange format application as an executable application according to the first result carried in the first execution response 029000F 109, and further sends a select CC file instruction 0300 a 4000C 02E 103D 2 AF to the bus card.
Step S335, the bus card determines whether the corresponding CC file is an executable file according to the CC file selecting instruction.
Specifically, the bus card receives the select CC file command 0300 a 4000C 02E 103D 2 AF, and determines whether the corresponding CC file is an executable file according to the command, so as to obtain a corresponding second result.
And step S336, the bus card sends a second execution response carrying the second result to the system.
Specifically, the bus card returns a corresponding second execution response 0390002D 53 carrying the second result to the system.
And S337, sending a data reading instruction to the bus card by the system according to the second execution response.
Specifically, after obtaining the corresponding second execution response 0390002D 53, the system determines that the CC file is an executable file according to the second result carried in the second execution response, and further continues to send the command 0200B 000000F 8E A6 for reading data from the selected CC file to the bus card.
And step S338, the bus card returns corresponding CC file read data to the system according to the received instruction.
Specifically, the bus card finds the corresponding CC file read data 02000F 20008000800406E 10401000000900088D 9 according to the command 0200B 000000F 8E A6, and returns the CC file read data 02000F 20008000800406E 10401000000900088D 9 to the system.
And step S339, the system sends an NFC data exchange format file selection instruction to the bus card according to the CC file read data.
Specifically, after obtaining the CC file read data 02000F 20008000800406E 10401000000900088D 9, the system sends an NFC data exchange format file selecting instruction 0300 a 4000C 02E 1046D DB to the bus card according to the CC file read data.
Step S340, the bus card determines whether the corresponding NFC data exchange format file is an executable file according to the instruction for selecting the NFC data exchange format file.
Specifically, the bus card receives the instruction 0300 a 4000C 02E 1046D DB for selecting the NFC data exchange format file, and determines whether the corresponding NFC data exchange format file is an executable file according to the instruction, so as to obtain a third corresponding result.
And step S341, the bus card sends a third execution response carrying a third result to the system.
Specifically, the bus card returns a corresponding third execution response 0990002D 53 to the system, where the response carries the obtained third result.
In step S342, the system sends an instruction to read the length of the NFC data exchange format file to the bus card based on the third execution response.
Specifically, the system determines that the NFC data exchange format file is an executable file according to the third result carried in the third execution response 0990002D 53, and further continues to send a command 0200B 00000026B 7D for reading the NFC data exchange format file length to the bus card.
And step S343, the bus card returns corresponding NFC data exchange format file length data to the system according to the NFC data exchange format file length instruction.
Specifically, after receiving the instruction for reading the length of the NFC data exchange format file, the bus card finds 02002590000535 corresponding to the instruction for the length of the NFC data exchange format file, and returns the length of the NFC data exchange format file to the system.
And step S344, the system sends an instruction for reading the content of the NFC data exchange format file to the bus card according to the length data of the NFC data exchange format file.
Specifically, after receiving the NFC data exchange format file length data 02002590000535 returned by the bus card, the system sends an instruction 0300B 00002254D 1F for reading the NFC data exchange format file content to the bus card according to the obtained NFC data exchange format file length data.
And step S345, the bus card returns corresponding NFC data exchange format file content data to the system according to the NFC data exchange format file content reading instruction.
Specifically, the bus card finds the corresponding NFC data exchange format file content data 03D 40F 13616E 64726F 69642E 636F 6D 3a 706B 67636F 6D 2E 6674736166652E 6E 66632E 63617264 according to the received NFC data exchange format file content reading instruction sent by the system, and returns the data to the system.
Step S346, the system parses the NFC data exchange format file content data to obtain corresponding parsed data.
Specifically, the system parses the NFC data exchange format file content data 03D 40F 13616E 64726F 69642E 636F 6D 3a 706B 67636F 6D 2E 6674736166652E 6E 66632E 63617264 to obtain parsed NFC data exchange format file content data D40F 13616E 64726F 69642E 636F 6D 3a 706B 6763636F 6D 2E 6674736166652E 6E 66632E 63617264.
In step S347, the system packages the parsed data into a program filter.
Specifically, the system load-packages the type data 616E 64726F 69642E 636F 6D 3a 706B 67 and the data 636F 6D 2E 6674736166652E 6E 66632E 63617264 in the parsed NFC data exchange format file content data D40F 13616E 64726F 69642E 636F 6D 3a 706B 67636F 6D 2E 6674736166652E 6E 66632E 63617264 into the program filter so as to match the subsequent data packaged in the program filter.
In step S348, the system takes intersection deduplication based on the data encapsulated in the program filter and the stored packet name.
In one possible implementation, the system performs intersection deduplication processing on the data (type data 616E 64726F 69642E 636F 6D 3a 706B 67 and data 636F 6D 2E 6674736166652E 6E 66632E 63617264) encapsulated in the program filter and the packet name com, ftsafe, nfc, card (636F 6D 2E 6674736166652E 6E 66632E 63617264) stored in the form of a key value pair, to obtain deduplicated data 636F 6D 2E 6674736166652E 6E 66632E 63617264.
In step S349, the system obtains a corresponding setting object according to the deduplicated data.
In one possible implementation, after the system obtains the deduplicated data 636F 6D 2E 6674736166652E 6E 66632E 63617264, a corresponding setting object is obtained accordingly, and it is determined from the setting object that it is the same as the saved setting object.
And step S350, the system starts the bus card application program according to the determined setting object.
Specifically, after the system is matched with the corresponding setting object, the bus card application program is started according to the determined setting object, so that the matched bus card application program is found from a plurality of application programs (an application program corresponding to a bus card, an application program corresponding to an entrance guard card, an application program corresponding to a fueling card and an application program corresponding to a membership card) in the background.
In the application, through the scheme, the automatic starting of the target application program corresponding to the card is realized, the manual selection of the target application program is avoided, the starting efficiency is improved, and the use experience of a user is improved.
Based on the above technical solution of the application program starting method provided by the present application, the present application correspondingly provides a schematic structural diagram of a terminal device, and as shown in fig. 4, the configuring of the terminal device 400 with a program filter may include:
the first processing module 401 is configured to, when an application is installed for the first time, start a core process according to a received installation package, hatch a system service process, and create and start a package management service in the system service process;
a second processing module 402, configured to traverse a preset file directory in the started package management service and analyze an apk file under the file directory to obtain corresponding node information;
a third processing module 403, configured to store, by the terminal device, the node information obtained through analysis in a setting object;
a fourth processing module 404, configured to save the package name of the apk file and the setting object in the form of a key-value pair;
a fifth processing module 405, configured to maintain apk information and perform installation to obtain an installed application program;
a sixth processing module 406, configured to perform data interaction with the card based on communication negotiation with the card, to obtain NFC data exchange format file content data;
a seventh processing module 407, configured to encapsulate the NFC data exchange format file content data into the program filter;
an eighth processing module 408, configured to take intersection and duplicate removal for the stored package name of the apk file and the data encapsulated in the program filter, to obtain data after duplicate removal;
a ninth processing module 409, configured to determine a matched setting object according to the deduplicated data; wherein, the matched setting object is the saved setting object;
a tenth processing module 410, configured to start the application according to the determined setting object.
In one possible implementation manner, the sixth processing module 406 is configured to perform a communication negotiation with the card based on the turned-on NFC function; and performing data interaction with the card based on the communication negotiation to obtain the content data of the NFC data exchange format file.
In a possible implementation manner, the seventh processing module 407 is configured to parse the NFC data exchange format file content data to obtain corresponding parsed data; encapsulating the parsed data into the program filter.
In a possible implementation manner, the sixth processing module 406 is specifically configured to send a card search request based on the turned-on NFC function; receiving a card searching response returned by the card, wherein the card searching response carries serial number information corresponding to the card; determining whether the serial number of the card is a complete serial number according to the serial number information; and if the serial number is complete, sending a communication negotiation instruction to the card so as to realize communication negotiation with the card.
In a possible implementation manner, the card-searching response further carries information on whether bit frame anti-collision is supported, and the sixth processing module 406 is specifically configured to determine whether the serial number of the card is a complete serial number according to the serial number information when the information on whether bit frame anti-collision is supported is bit frame anti-collision; and when the information whether the bit frame anti-collision is supported is that the bit frame anti-collision is not supported, ending the process.
In a possible implementation manner, the sixth processing module 406 is specifically configured to determine a number of bits of the serial number according to the serial number information; sending a serial number query request to the card according to the determined serial number; receiving a first inquiry response of the serial number returned by the card to obtain the serial number of the specific digit corresponding to the card; sending a selection request to the card according to the serial number of the specific digit; receiving a second query response returned by the card, wherein the second query response comprises a serial number of the card; and detecting the serial number of the card, and determining whether the serial number of the card is a complete serial number.
In one possible implementation, the method further includes:
if the serial number is not complete, the sixth processing module 406 is configured to send a serial number query request to the card to query the serial number corresponding to the card; receiving a communication negotiation response returned by the card, and sending an NFC data exchange format application selection instruction to the card according to the communication negotiation response; receiving a first execution response returned by the card based on the NFC data exchange format application selection instruction; and acquiring the NFC data exchange format file content data of the card according to the first execution response, and starting an application program corresponding to the card according to the NFC data exchange format file content data.
In one possible implementation, the sixth processing module 406 is specifically configured to send an NFC data exchange format application selection instruction to the card based on the communication negotiation; receiving a first execution response returned by the card based on the NFC data exchange format application selection instruction; and acquiring the NFC data exchange format file content data of the card according to the first execution response.
In one possible implementation, the sixth processing module 406 is configured to send a CC file selection instruction to the card according to the first execution response; receiving a second execution response returned by the card based on the CC file selection instruction; sending an instruction for reading data from the selected CC file to the card according to the second execution response; receiving CC file reading data returned by the card; sending an NFC data exchange format file selection instruction to the card according to the CC file reading data; receiving a third execution response returned by the card based on the NFC data exchange format file selecting instruction; sending an NFC data exchange format file length reading instruction to the card according to the third execution response; receiving NFC data exchange format file length data returned by the card; sending an instruction for reading the NFC data exchange format file content to the card according to the NFC data exchange format file length data; and receiving the content data of the NFC data exchange format file returned by the card.
In the application, through the scheme, the automatic starting of the target application program corresponding to the card is realized, the manual selection of the target application program is avoided, the starting efficiency is improved, and the use experience of a user is improved.
Referring now to FIG. 5, shown is a schematic diagram of an electronic device 500 suitable for use in implementing embodiments of the present application. The electronic device may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), etc., and a stationary terminal such as a digital TV, a desktop computer, etc. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present application when executed by the processing device 501.
It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
The electronic device provided by the application is applicable to any embodiment of the application program starting method, and details are not repeated herein.
In the application, through the scheme, the automatic starting of the target application program corresponding to the card is realized, the manual selection of the target application program is avoided, the starting efficiency is improved, and the use experience of a user is improved.
The present application provides a computer-readable storage medium storing a computer program that causes a computer to execute an application startup method shown in the above-described embodiments.
The computer-readable storage medium provided in the present application is applicable to any embodiment of the bluetooth device connection method, and is not described herein again.
In the application, through the scheme, the automatic starting of the target application program corresponding to the card is realized, the manual selection of the target application program is avoided, the starting efficiency is improved, and the use experience of a user is improved.
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions may be implemented by a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the aspects specified in the block or blocks of the block diagrams and/or flowchart illustrations disclosed herein.
The modules of the device can be integrated into a whole or can be separately deployed. The modules can be combined into one module, and can also be further split into a plurality of sub-modules.
Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present application.
Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
The above application serial numbers are for descriptive purposes only and do not represent the merits of the embodiments.
The disclosure of the present application is only a few specific embodiments, but the present application is not limited to these, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (12)

1. An application program starting method is characterized in that a program filter is configured on a terminal device, and the method comprises the following steps:
when the application program is installed for the first time, the terminal equipment starts a core process according to the received installation package, incubates a system service process, and creates and starts package management service in the system service process;
the terminal equipment traverses a preset file directory in the started package management service and analyzes an apk file under the file directory to obtain corresponding node information;
the terminal equipment stores the node information obtained by analysis in a preset setting object;
the terminal equipment saves the package name of the apk file and the setting object in a key value pair form;
the terminal equipment maintains apk information and installs the apk information to obtain an installed application program;
the method further comprises the following steps:
when the terminal equipment is communicated with a card, the terminal equipment performs data interaction with the card based on communication negotiation with the card to obtain NFC data exchange format file content data;
the terminal equipment packages the NFC data exchange format file content data into the program filter;
the terminal equipment performs intersection set duplication elimination according to the stored package name of the apk file and the data packaged in the program filter to obtain duplication eliminated data;
the terminal equipment determines a matched setting object according to the data after the duplication removal;
and the terminal equipment starts the application program according to the determined setting object.
2. The method of claim 1, wherein the terminal device performs data interaction with the card based on communication negotiation with the card to obtain NFC data exchange format file content data, and the method comprises:
the terminal equipment performs communication negotiation with the card based on the started NFC function;
and the terminal equipment performs data interaction with the card based on the communication negotiation to obtain the content data of the NFC data exchange format file.
3. The method of claim 2, wherein the end device encapsulating the NFC data exchange format file content data into the program filter comprises:
the terminal equipment analyzes the NFC data exchange format file content data to obtain corresponding analyzed data;
and the terminal equipment encapsulates the analysis data into the program filter.
4. The method of claim 2, wherein the terminal device negotiates communication with the card based on the NFC functionality turned on, including:
the terminal equipment sends a card searching request based on the started NFC function;
the terminal equipment receives a card searching response returned by the card, wherein the card searching response carries serial number information corresponding to the card;
the terminal equipment determines whether the serial number of the card is a complete serial number according to the serial number information;
and if the serial number is complete, the terminal equipment sends a communication negotiation instruction to the card so as to realize communication negotiation with the card.
5. The method of claim 4, wherein the card-searching response further carries information on whether to support anti-collision of bit frames, and the determining, by the terminal device, whether the serial number of the card is a complete serial number according to the serial number information includes:
when the information whether the bit frame anti-collision is supported is the bit frame anti-collision support, the terminal equipment determines whether the serial number of the card is a complete serial number according to the serial number information;
and when the information whether the bit frame anti-collision is supported is that the bit frame anti-collision is not supported, ending the process.
6. The method according to claim 4 or 5, wherein the terminal device determines whether the serial number of the card is a complete serial number according to the serial number information, and comprises the following steps:
the terminal equipment determines the serial number digit according to the serial number information;
the terminal equipment sends a serial number query request to the card according to the determined serial number;
the terminal equipment receives a first inquiry response of the serial number returned by the card to obtain the serial number of the specific digit corresponding to the card;
the terminal equipment sends a selection request to the card according to the serial number of the specific digit;
the terminal equipment receives a second query response returned by the card, wherein the second query response comprises a serial number of the card;
and the terminal equipment detects the serial number of the card and determines whether the serial number of the card is a complete serial number.
7. The method of claim 4, further comprising:
if the serial number is not complete, the terminal equipment sends a serial number query request to the card so as to query the serial number corresponding to the card;
the terminal equipment receives a communication negotiation response returned by the card, and sends an NFC data exchange format application selection instruction to the card according to the communication negotiation response;
the terminal equipment receives a first execution response returned by the card based on the NFC data exchange format application selection instruction;
and the terminal equipment acquires the NFC data exchange format file content data of the card according to the first execution response, and starts an application program corresponding to the card according to the NFC data exchange format file content data.
8. The method of claim 2, wherein the terminal device performs data interaction with the card based on the communication negotiation to obtain the content number of the NFC data exchange format file, and the method comprises:
the terminal equipment sends an NFC data exchange format application selection instruction to the card based on the communication negotiation;
the terminal equipment receives a first execution response returned by the card based on the NFC data exchange format application selection instruction;
and the terminal equipment acquires the NFC data exchange format file content data of the card according to the first execution response.
9. The method of claim 8, wherein the terminal device obtaining the NFC data exchange format file content data of the card according to the first execution response comprises:
the terminal equipment sends a CC file selection instruction to the card according to the first execution response;
the terminal equipment receives a second execution response returned by the card based on the CC file selection instruction;
the terminal equipment sends a command for reading data from the selected CC file to the card according to the second execution response;
the terminal equipment receives CC file reading data returned by the card;
the terminal equipment sends an NFC data exchange format file selection instruction to the card according to the CC file reading data;
the terminal equipment receives a third execution response returned by the card based on the NFC data exchange format file selecting instruction;
the terminal equipment sends an NFC data exchange format file length reading instruction to the card according to the third execution response;
the terminal equipment receives the NFC data exchange format file length data returned by the card;
the terminal equipment sends an instruction for reading the content of the NFC data exchange format file to the card according to the NFC data exchange format file length data;
and the terminal equipment receives the NFC data exchange format file content data returned by the card based on the received NFC data exchange format file content reading instruction.
10. A terminal device, wherein a program filter is configured on the terminal device, and the terminal device comprises:
the first processing module is used for starting a core process according to a received installation package when an application program is installed for the first time, hatching out a system service process, and creating and starting package management service in the system service process;
the second processing module is used for traversing a preset file directory in the started package management service and analyzing an apk file under the file directory to obtain corresponding node information;
the third processing module is used for storing the node information obtained by analysis in a preset setting object by the terminal equipment;
the fourth processing module is used for saving the package name of the apk file and the setting object in a key value pair form;
the fifth processing module is used for maintaining and installing the apk information to obtain an installed application program;
the sixth processing module is used for performing data interaction with the card based on communication negotiation with the card to obtain NFC data exchange format file content data;
a seventh processing module, configured to encapsulate the NFC data exchange format file content data into the program filter;
the eighth processing module is used for performing intersection and duplication removal on the stored package name of the apk file and the data encapsulated in the program filter to obtain data subjected to duplication removal;
the ninth processing module is used for determining a matched setting object according to the data after the duplication removal; wherein, the matched setting object is the saved setting object;
and the tenth processing module is used for starting the application program according to the determined setting object.
11. A terminal device, comprising: a processor and a memory;
the memory for storing a computer program;
the processor is configured to execute the application startup method according to any one of the above claims 1 to 9 by calling the computer program.
12. A computer-readable storage medium for storing a computer program which, when run on a computer, causes the computer to perform the application launching method of any one of the preceding claims 1 to 9.
CN202111316681.9A 2021-11-09 2021-11-09 Application program starting method, terminal device and computer readable storage medium Active CN113766059B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111316681.9A CN113766059B (en) 2021-11-09 2021-11-09 Application program starting method, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111316681.9A CN113766059B (en) 2021-11-09 2021-11-09 Application program starting method, terminal device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113766059A true CN113766059A (en) 2021-12-07
CN113766059B CN113766059B (en) 2022-03-18

Family

ID=78784648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111316681.9A Active CN113766059B (en) 2021-11-09 2021-11-09 Application program starting method, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113766059B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115543489A (en) * 2022-11-30 2022-12-30 飞天诚信科技股份有限公司 Method and device for realizing application starting

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2816501A1 (en) * 2013-06-18 2014-12-24 ST-Ericsson SA A near field communication listen device emulating multiple NFC B technology tags
US20160188547A1 (en) * 2014-07-14 2016-06-30 Nazareno Cruzada Electronic digital card system comprising a web-based interactive card, mobile app viewer and organizer, website, online design tool and integrated design environment, and remote central server
CN108595192A (en) * 2018-05-08 2018-09-28 青岛海信宽带多媒体技术有限公司 A kind of installation method and terminal device of application program
CN111212421A (en) * 2020-01-03 2020-05-29 飞天诚信科技股份有限公司 Card automatic connection method, electronic device and computer readable storage medium
CN112395894A (en) * 2019-08-16 2021-02-23 华为技术有限公司 Communication method and device based on NFC
CN112527403A (en) * 2019-09-19 2021-03-19 华为技术有限公司 Application starting method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2816501A1 (en) * 2013-06-18 2014-12-24 ST-Ericsson SA A near field communication listen device emulating multiple NFC B technology tags
US20160188547A1 (en) * 2014-07-14 2016-06-30 Nazareno Cruzada Electronic digital card system comprising a web-based interactive card, mobile app viewer and organizer, website, online design tool and integrated design environment, and remote central server
CN108595192A (en) * 2018-05-08 2018-09-28 青岛海信宽带多媒体技术有限公司 A kind of installation method and terminal device of application program
CN112395894A (en) * 2019-08-16 2021-02-23 华为技术有限公司 Communication method and device based on NFC
CN112527403A (en) * 2019-09-19 2021-03-19 华为技术有限公司 Application starting method and electronic equipment
CN111212421A (en) * 2020-01-03 2020-05-29 飞天诚信科技股份有限公司 Card automatic connection method, electronic device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115543489A (en) * 2022-11-30 2022-12-30 飞天诚信科技股份有限公司 Method and device for realizing application starting
CN115543489B (en) * 2022-11-30 2023-03-24 飞天诚信科技股份有限公司 Method and device for realizing application starting

Also Published As

Publication number Publication date
CN113766059B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN111629252A (en) Video processing method and device, electronic equipment and computer readable storage medium
CN110390493B (en) Task management method and device, storage medium and electronic equipment
CN107979830B (en) Bluetooth connection method, device, equipment and storage medium for intelligent rearview mirror
CN111935694B (en) Bluetooth device connection method and device, electronic device and readable storage medium
CN113766059B (en) Application program starting method, terminal device and computer readable storage medium
CN111198777A (en) Data processing method, device, terminal and storage medium
CN110727566A (en) Method, device, medium and electronic equipment for acquiring process crash information
CN109814915B (en) Parameter configuration method, device, medium and electronic equipment based on lua
CN113993115B (en) Method and device for automatically unlocking screen, electronic equipment and readable storage medium
CN112230969B (en) Method and equipment for formatting user space storage area in firmware upgrading process
CN110278273A (en) Multimedia file method for uploading, device, terminal, server and storage medium
CN112767565B (en) Method and device for OBU issuing and activating based on vehicle machine and electronic equipment
CN114422436A (en) Gateway, gateway control method, gateway control device, electronic equipment and storage medium
CN114936175B (en) Method, device, terminal equipment and medium for realizing OTG communication without plugging
CN105630948A (en) Web page display method and apparatus
CN110955402B (en) Recording method, device and equipment based on webpage and storage medium
CN113553594A (en) Vulnerability information processing method and device, electronic equipment and readable storage medium
CN112766827A (en) Automatic processing method and device for asset inventory data
CN110737765A (en) Dialogue data processing method for multi-turn dialogue and related device
CN110545107A (en) data processing method and device, electronic equipment and computer readable storage medium
CN114968621B (en) Data communication method, device, equipment, storage medium and system
CN113760338B (en) Method and device for switching application binary interface ABI and electronic equipment
CN113760382B (en) Plug-in starting method and device, terminal equipment and storage medium
CN114613355B (en) Video processing method and device, readable medium and electronic equipment
CN118093218A (en) Device driver management method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant