CN111638888B - Android application package APK installation method and first terminal - Google Patents

Android application package APK installation method and first terminal Download PDF

Info

Publication number
CN111638888B
CN111638888B CN202010476832.6A CN202010476832A CN111638888B CN 111638888 B CN111638888 B CN 111638888B CN 202010476832 A CN202010476832 A CN 202010476832A CN 111638888 B CN111638888 B CN 111638888B
Authority
CN
China
Prior art keywords
target
control
apk
dialog box
terminal
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.)
Active
Application number
CN202010476832.6A
Other languages
Chinese (zh)
Other versions
CN111638888A (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.)
Ruiting Network Technology Shanghai Co ltd
Original Assignee
Ruiting Network Technology Shanghai 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 Ruiting Network Technology Shanghai Co ltd filed Critical Ruiting Network Technology Shanghai Co ltd
Priority to CN202010476832.6A priority Critical patent/CN111638888B/en
Publication of CN111638888A publication Critical patent/CN111638888A/en
Application granted granted Critical
Publication of CN111638888B publication Critical patent/CN111638888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/28Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet
    • G06V30/287Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet of Kanji, Hiragana or Katakana characters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides an installation method of an android Application Package (APK) and a first terminal, wherein the method comprises the following steps: receiving a target APK pushed by the second equipment through an Android debug bridge ADB; acquiring a target dialog box corresponding to the target APK, wherein the target dialog box is a trigger dialog box for receiving a user indication that the target APK is installed; identifying a trigger control in the target dialog; and responding to the identified trigger control in the target dialog box, triggering the target APK to install so as to obtain the corresponding target application program. In this way, the target dialog box can be canceled in an automatic mode, so that the system installation program installs the target APK and the corresponding target application program is obtained. The implementation process is simple, convenient and quick.

Description

Android application package APK installation method and first terminal
Technical Field
The application relates to the technical field of communication, in particular to an installation method of an android Application Package (APK) and a first terminal.
Background
The Android debug bridge (Android Debug Bridge, ADB) is a command line tool that can communicate with terminals. Android Application packages (Android Application package, APK) can be installed on the terminal through the ADB, so that the terminal obtains corresponding Applications (APPs).
In the prior art, in the process of installing an APK to a terminal through an ADB, a display interface of the terminal forcibly pops up a dialog box, and the dialog box contains a confirm button. At this time, the APK installation process is paused while the countdown is performed. Before the countdown is finished, the user needs to manually click the confirmation button to recover the APK installation process, and the corresponding APP is obtained. If the user does not click the confirm button before the countdown is over, this may result in an APK installation failure.
Disclosure of Invention
The application provides an installation method of an android Application Package (APK) and a first terminal, and aims to solve the problem that in the prior art, if a user does not click a confirmation button before counting down is finished, APK installation fails.
In a first aspect, the present invention provides a method for installing an android application package APK, applied to a first terminal, including:
receiving a target APK pushed by the second equipment through an Android debug bridge ADB;
acquiring a target dialog box corresponding to the target APK, wherein the target dialog box is a trigger dialog box for receiving a user instruction for installing the target APK;
identifying a trigger control in the target dialog;
and responding to the identified triggering control in the target dialog box, triggering the target APK to install so as to obtain a corresponding target application program.
Further, the obtaining the target dialog box corresponding to the target APK includes:
detecting at least one event;
screening target events in the at least one event, wherein the type corresponding to the target event is matched with a preset type, the package name corresponding to the target event is matched with the package name of a system installation program, and the interface class name corresponding to the target event is matched with a preset interface class name, and the system installation program is an application program used for installing the target APK in the first terminal;
and acquiring a dialog box for triggering the target event as a target dialog box corresponding to the target APK, wherein the target dialog box is popped up by the system installation program.
Further, the identifying the trigger control in the target dialog includes:
determining a control type of each control in a plurality of controls contained in the target dialog box;
according to the determined control type of each control, determining a control with a trigger type in the plurality of controls;
identifying text content carried by the control of the trigger type;
and identifying the control of the trigger type, which is matched with the carried text content and the preset text content, as the trigger control.
Further, before the step of receiving the target APK pushed by the second device through the Android debug bridge ADB, the method further includes:
receiving an automatic control triggering function starting instruction of an android system in the first terminal;
and responding to the received automatic triggering control function opening instruction, and opening the automatic triggering control function for the android system.
In a second aspect, the present invention further provides a first terminal, including:
the first receiving module is used for receiving a target APK pushed by the second equipment through the Android debug bridge ADB;
the acquisition module is used for acquiring a target dialog box corresponding to the target APK, wherein the target dialog box is a trigger dialog box used for receiving a user indication that the target APK is installed;
the identification module is used for identifying the trigger control in the target dialog;
and the installation module is used for responding to the identified triggering control in the target dialog box, triggering the target APK to install so as to obtain a corresponding target application program.
Further, the obtaining module includes:
a detection sub-module for detecting at least one event;
a screening sub-module, configured to screen a target event in the at least one event, where a type corresponding to the target event is matched with a preset type, a package name corresponding to the target event is matched with a package name of a system installation program, and an interface class name corresponding to the target event is matched with a preset interface class name, where the system installation program is an application program in the first terminal for installing the target APK;
and the acquisition sub-module is used for acquiring a dialog box for triggering the target event as a target dialog box corresponding to the target APK, wherein the target dialog box is popped up by the system installation program.
Further, the identification module includes:
the first determining submodule is used for determining the control type of each control in the plurality of controls contained in the target dialog box;
the second determining submodule is used for determining a control with a trigger type in the plurality of controls according to the determined control type of each control;
the first identification sub-module is used for identifying the text content carried by the control of the trigger type;
and the second identification sub-module is used for identifying the trigger type control matched with the preset text content as the trigger control.
Further, the first terminal further includes:
the second receiving module is used for receiving an automatic triggering control function opening instruction of the android system in the first terminal;
and the starting module is used for responding to the received automatic triggering control function starting instruction and starting the automatic triggering control function for the android system.
In a third aspect, the present invention also provides an electronic device, including:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory so as to realize the installation method of the Android application package APK in the first aspect.
In a fourth aspect, the present invention further provides a readable storage medium, where a computer program is stored, and when at least one processor of a first terminal executes the computer program, the first terminal executes the installation method of the Android application package APK in the first aspect.
According to the technical scheme, the method for installing the Android application package APK and the first terminal provided by the embodiment of the invention receive the target APK pushed by the second device through the Android debug bridge ADB; acquiring a target dialog box corresponding to the target APK, wherein the target dialog box is a trigger dialog box for receiving a user instruction for installing the target APK; identifying a trigger control in the target dialog; and responding to the identified triggering control in the target dialog box, triggering the target APK to install so as to obtain a corresponding target application program. In this way, the target dialog box can be canceled in an automatic mode, so that the system installation program installs the target APK and the corresponding target application program is obtained. The implementation process is simple, convenient and quick.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of an installation method of an android application package APK provided by the present invention;
FIG. 2 is a schematic diagram of a target dialog box according to the present invention;
fig. 3 is a flowchart of another installation method of an android application package APK provided by the present invention;
fig. 4 is a block diagram of a first terminal according to the present invention;
fig. 5 is a block diagram of another first terminal according to the present invention;
fig. 6 is a block diagram of another first terminal according to the present invention;
fig. 7 is a block diagram of another first terminal according to the present invention;
fig. 8 is a schematic diagram of a hardware structure of an electronic device according to the present invention.
Detailed Description
Reference will now be made in detail to the embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the examples below do not represent all embodiments consistent with the present application. Merely as examples of systems and methods consistent with some aspects of the present application as detailed in the claims.
Referring to fig. 1, fig. 1 is a flowchart of an installation method of an android application package APK, provided by the invention, applied to a first terminal. As shown in fig. 1, the method comprises the following steps:
step 101, receiving a target APK pushed by a second device through an Android debug bridge ADB.
In step 101, the first terminal may receive a target APK pushed by the second device through the Android debug bridge ADB.
Step 102, obtaining a target dialog box corresponding to the target APK, where the target dialog box is a trigger dialog box for receiving a user instruction that the target APK is installed.
In step 102, a target dialog corresponding to the target APK may be obtained. The target dialog box is a trigger dialog box for receiving a user indication that the target APK is installed.
It should be noted that the countdown may also be performed when the target dialog is generated. For example, a countdown may be started from 10 seconds when the target dialog is generated. Fig. 2 is a schematic diagram of a target dialog. In fig. 2, there are displayed the text: "please click to confirm installation before the countdown ends, otherwise, the APK will be canceled. Two trigger type controls are also shown in fig. 2. One of the trigger type controls is used for displaying countdown, and the other trigger type control is a trigger control with 'confirm installation' displayed.
Step 103, identifying a trigger control in the target dialog.
In step 103, a trigger control in the target dialog may be identified.
And 104, responding to the identified triggering control in the target dialog box, and triggering the target APK to install so as to obtain a corresponding target application program.
In step 104, in response to the identified trigger control in the target dialog, the target APK may be triggered to install to obtain a corresponding target application. For example, before the countdown ends, i.e., before the 10 second countdown ends, and in the event that a trigger control in the target dialog is identified, the system installer may install the target APK to obtain the corresponding target application.
It should be noted that, in the prior art, during the process of installing the APK to the terminal through the ADB, the display interface of the terminal will force to pop up a dialog box, where the dialog box includes a confirm button. At this time, the APK installation process is paused while the countdown is performed. Before the countdown is finished, the user needs to manually click the confirmation button to recover the APK installation process, and the corresponding APP is obtained. If the user does not click the confirm button before the countdown is over, this may result in an APK installation failure.
In the application, the target dialog box can be canceled in an automatic mode, so that the system installation program installs the target APK to obtain the corresponding target application program. The implementation process is simple, convenient and quick.
According to the technical scheme, the method for installing the Android application package APK is applied to the first terminal and used for receiving the target APK pushed by the second device through the Android debug bridge ADB; acquiring a target dialog box corresponding to the target APK, wherein the target dialog box is a trigger dialog box for receiving a user instruction for installing the target APK; identifying a trigger control in the target dialog; and responding to the identified triggering control in the target dialog box, triggering the target APK to install so as to obtain a corresponding target application program. In this way, the target dialog box can be canceled in an automatic mode, so that the system installation program installs the target APK and the corresponding target application program is obtained. The implementation process is simple, convenient and quick.
Referring to fig. 3, fig. 3 is a flowchart of another installation method of an android application package APK, provided by the present invention, applied to a first terminal. As shown in fig. 3, the method comprises the following steps:
step 301, receiving a target APK pushed by the second device through the Android debug bridge ADB.
In step 301, the first terminal may receive a target APK pushed by the second device through the Android debug bridge ADB.
Optionally, before the step of receiving the target APK pushed by the second device through the Android debug bridge ADB, the method further includes:
receiving an automatic control triggering function starting instruction of an android system in the first terminal;
and responding to the received automatic triggering control function opening instruction, and opening the automatic triggering control function for the android system.
It should be noted that, an automatic triggering control function opening instruction for the android system in the first terminal may be received, and then, in response to the received automatic triggering control function opening instruction, the automatic triggering control function may be opened for the android system. Therefore, a user can select whether to start the automatic triggering control function according to the needs of the user, and under the condition that the automatic triggering control function is started, the user waits for installing the APK through the ADB.
Step 302, at least one event is detected.
In step 302, in case the auto-trigger control function is turned on, the first terminal may detect at least one event.
Step 303, screening a target event in the at least one event, wherein the type corresponding to the target event is matched with a preset type, the package name corresponding to the target event is matched with a package name of a system installation program, and the interface class name corresponding to the target event is matched with a preset interface class name, and the system installation program is an application program for installing the target APK in the first terminal.
In step 303, a target event may be screened among the at least one event. The type corresponding to the target event is matched with the preset type, the package name corresponding to the target event is matched with the package name of the system installation program, and the interface class name corresponding to the target event is matched with the preset interface class name. The system installation program is an application program for installing the target APK in the first terminal.
Step 304, obtaining a dialog box for triggering the target event as a target dialog box corresponding to the target APK, where the target dialog box is popped up by the system installation program, and the target dialog box is a trigger dialog box for receiving a user instruction that the target APK is installed.
In step 304, a dialog box for triggering the target event may be acquired as a target dialog box corresponding to the target APK. The target dialog box is popped up by the system installation program, and the target dialog box is a trigger dialog box for receiving a user indication target APK to install. In this way, the target event can be selected from at least one event, and further, the dialog box for triggering the target event can be determined to be the target dialog box corresponding to the target APK. The operation steps for acquiring the target dialog box corresponding to the target APK are fewer, and the implementation process is simple, convenient and quick.
Step 305, identifying a trigger control in the target dialog.
In step 305, a trigger control in the target dialog may be identified.
Optionally, the identifying the trigger control in the target dialog includes:
determining a control type of each control in a plurality of controls contained in the target dialog box;
according to the determined control type of each control, determining a control with a trigger type in the plurality of controls;
identifying text content carried by the control of the trigger type;
and identifying the control of the trigger type, which is matched with the carried text content and the preset text content, as the trigger control.
Further, a control type for each of the plurality of controls included in the target dialog may be determined. Still taking fig. 2 as an example, at this time, it may be determined that the control types of the plurality of controls included in the target dialog box are two types, namely, a text type and a trigger type. Next, a control of the plurality of controls of which the type is a trigger type may be determined according to the determined control type of each control. The text content carried by the trigger type control may then be identified. At this time, as shown in fig. 2, it may be determined that there are two trigger types of controls in the plurality of controls, and text content on one trigger type of control may be identified as "countdown: x seconds "; the text on the other trigger type control is "confirm install". Finally, the trigger type control with the carried text content matched with the preset text content can be identified as the trigger control. It should be noted that, the preset text content may be "confirm installation". Namely, the control which can determine that the displayed text content in the two trigger types of controls is 'confirm installation' is the trigger control. Therefore, the type of the control contained in the target dialog box can be determined first, then the text content on the control is identified, and further the identification of the trigger control in the target dialog box is realized. The implementation process is simple, convenient and quick.
And step 306, triggering the target APK to install in response to the identified triggering control in the target dialog box so as to obtain a corresponding target application program.
In step 306, in response to the identified trigger control in the target dialog, the target APK may be triggered to install to obtain the corresponding target application. For example, before the countdown is over, and if a trigger control in the target dialog is identified, the system installer may install the target APK to obtain the corresponding target application.
As can be seen from the above technical solutions, the method for installing the android application package APK provided by the embodiments of the present invention is applied to the first terminal. The target dialog box can be canceled in an automatic mode, so that the system installation program installs the target APK and the corresponding target application program is obtained. The implementation process is simple, convenient and quick. Further, the target event may be selected from at least one event, and further, it may be determined that the dialog box that triggers the target event is a target dialog box corresponding to the target APK. The operation steps for acquiring the target dialog box corresponding to the target APK are fewer, and the implementation process is simple, convenient and quick.
Referring to fig. 4, fig. 4 is a block diagram of a first terminal according to the present invention. As shown in fig. 4, the first terminal 400 includes a first receiving module 401, an acquiring module 402, an identifying module 403, and an installing module 404, wherein:
the first receiving module 401 is configured to receive a target APK pushed by the second device through the Android debug bridge ADB;
an obtaining module 402, configured to obtain a target dialog box corresponding to the target APK, where the target dialog box is a trigger dialog box for receiving a user instruction that the target APK is installed;
an identifying module 403, configured to identify a trigger control in the target dialog;
and the installation module 404 is configured to trigger the target APK to install in response to the identified trigger control in the target dialog, so as to obtain a corresponding target application program.
Optionally, as shown in fig. 5, the obtaining module 402 includes:
a detection sub-module 4021 for detecting at least one event;
a screening submodule 4022, configured to screen a target event in the at least one event, where a type corresponding to the target event is matched with a preset type, a package name corresponding to the target event is matched with a package name of a system installation program, and an interface class name corresponding to the target event is matched with a preset interface class name, where the system installation program is an application program in the first terminal for installing the target APK;
the obtaining submodule 4023 is configured to obtain a dialog box for triggering the target event as a target dialog box corresponding to the target APK, where the target dialog box is popped up by the system installer.
Optionally, as shown in fig. 6, the identification module 403 includes:
a first determining submodule 4031, configured to determine a control type of each control in the plurality of controls included in the target dialog;
a second determining submodule 4032, configured to determine, according to the determined control type of each control, a control of which the type is a trigger type in the plurality of controls;
a first recognition submodule 4033, configured to recognize text content carried by the control of the trigger type;
and the second recognition submodule 4034 is used for recognizing the trigger type control of which the carried text content is matched with the preset text content as the trigger control.
Optionally, as shown in fig. 7, the first terminal further includes:
a second receiving module 405, configured to receive an automatic control triggering function opening instruction for an android system in the first terminal;
and the starting module 406 is configured to start the auto-triggering control function for the android system in response to the received auto-triggering control function starting instruction.
The first terminal 400 is capable of implementing each process implemented by the first terminal in the method embodiments of fig. 1 and 3, and in order to avoid repetition, a description thereof will be omitted. And the first terminal 400 can cancel the target dialog box in an automatic mode, so that the system installation program installs the target APK to obtain the corresponding target application program. The implementation process is simple, convenient and quick.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 8, the electronic device includes:
a memory 801 for storing program instructions;
the processor 802 is configured to call and execute the program instructions in the memory, so as to implement the installation method of the Android application package APK in the foregoing embodiment. Reference may be made in particular to the relevant description of the previous embodiments.
In this embodiment, the processor 802 and the memory 801 may be connected by a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
The embodiment of the invention also provides a readable storage medium, which comprises: the readable storage medium stores a computer program, and when at least one processor of the first terminal executes the computer program, the first terminal executes the installation method of the Android application package APK described in the above embodiment.
The readable storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (random access memory, RAM), or the like.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in essence or what contributes to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the first terminal, the electronic device and the readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and the relevant points are referred to the description in the method embodiments.
The embodiments of the present invention described above do not limit the scope of the present invention.

Claims (10)

1. The method for installing the android application package APK is applied to a first terminal and is characterized by comprising the following steps:
receiving a target APK pushed by the second equipment through an Android debug bridge ADB;
detecting a target event, wherein the type corresponding to the target event is matched with a preset type, the package name corresponding to the target event is matched with the package name of a system installation program, and the interface class name corresponding to the target event is matched with a preset interface class name, and the system installation program is an application program used for installing the target APK in the first terminal;
acquiring a dialog box for triggering the target event as a target dialog box corresponding to the target APK, wherein the target dialog box is a trigger dialog box for receiving a user indication that the target APK is installed;
determining a control with a trigger type in a plurality of controls contained in the target dialog box; identifying a trigger type control with the carried text content matched with the preset text content as a trigger control;
and responding to the identified triggering control in the target dialog box, triggering the target APK to install so as to obtain a corresponding target application program.
2. The method of claim 1, wherein the target dialog box is popped up by the system installer, the detecting a target event comprising:
detecting at least one event;
and screening the target event from the at least one event.
3. The method of claim 1 or 2, wherein determining that a type of the plurality of controls included in the target dialog is a trigger type control comprises:
determining a control type of each control in a plurality of controls contained in the target dialog box;
and determining the control with the trigger type in the plurality of controls according to the determined control type of each control.
4. The method of claim 3, wherein prior to the step of receiving the target APK pushed by the second device through the Android debug bridge ADB, the method further comprises:
receiving an automatic control triggering function starting instruction of an android system in the first terminal;
and responding to the received automatic triggering control function opening instruction, and opening the automatic triggering control function for the android system.
5. A first terminal, comprising:
the first receiving module is used for receiving a target APK pushed by the second equipment through the Android debug bridge ADB;
the system comprises an acquisition module, a system installation program and a control module, wherein the acquisition module is used for detecting a target event, the type corresponding to the target event is matched with a preset type, the package name corresponding to the target event is matched with the package name of the system installation program, the interface class name corresponding to the target event is matched with a preset interface class name, and the system installation program is an application program used for installing the target APK in the first terminal; the dialog box for triggering the target event is a target dialog box corresponding to the target APK, wherein the target dialog box is a trigger dialog box for receiving a user indication that the target APK is installed;
the identification module is used for determining a control with a trigger type in a plurality of controls contained in the target dialog box; identifying a trigger type control with the carried text content matched with the preset text content as a trigger control;
and the installation module is used for responding to the identified triggering control in the target dialog box, triggering the target APK to install so as to obtain a corresponding target application program.
6. The first terminal of claim 5, wherein the target dialog box is popped up by the system installer, the acquisition module comprising:
a detection sub-module for detecting at least one event;
and the screening sub-module is used for screening the target event in the at least one event.
7. The first terminal of claim 5 or 6, wherein the identification module comprises:
the first determining submodule is used for determining the control type of each control in the plurality of controls contained in the target dialog box;
the second determining submodule is used for determining a control with a trigger type in the plurality of controls according to the determined control type of each control;
the first identification sub-module is used for identifying the text content carried by the control of the trigger type;
and the second identification sub-module is used for identifying the trigger type control matched with the preset text content as the trigger control.
8. The first terminal of claim 7, wherein the first terminal further comprises:
the second receiving module is used for receiving an automatic triggering control function opening instruction of the android system in the first terminal;
and the starting module is used for responding to the received automatic triggering control function starting instruction and starting the automatic triggering control function for the android system.
9. An electronic device, comprising:
a memory for storing program instructions;
the processor is used for calling and executing the program instructions in the memory to realize the installation method of the Android application package APK according to any one of claims 1 to 4.
10. A readable storage medium, wherein a computer program is stored in the readable storage medium, and when at least one processor of a first terminal executes the computer program, the first terminal executes the installation method of the Android application package APK according to any one of claims 1 to 4.
CN202010476832.6A 2020-05-29 2020-05-29 Android application package APK installation method and first terminal Active CN111638888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010476832.6A CN111638888B (en) 2020-05-29 2020-05-29 Android application package APK installation method and first terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010476832.6A CN111638888B (en) 2020-05-29 2020-05-29 Android application package APK installation method and first terminal

Publications (2)

Publication Number Publication Date
CN111638888A CN111638888A (en) 2020-09-08
CN111638888B true CN111638888B (en) 2023-08-08

Family

ID=72332365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010476832.6A Active CN111638888B (en) 2020-05-29 2020-05-29 Android application package APK installation method and first terminal

Country Status (1)

Country Link
CN (1) CN111638888B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014206054A1 (en) * 2013-06-28 2014-12-31 Tencent Technology (Shenzhen) Company Limited Systems and methods for pushing applications
CN104573552A (en) * 2014-12-29 2015-04-29 广东欧珀移动通信有限公司 Method and device for hiding application icons
CN108170438A (en) * 2017-11-27 2018-06-15 深圳市金立通信设备有限公司 A kind of application program automatic installation method, terminal and computer-readable medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014206054A1 (en) * 2013-06-28 2014-12-31 Tencent Technology (Shenzhen) Company Limited Systems and methods for pushing applications
CN104573552A (en) * 2014-12-29 2015-04-29 广东欧珀移动通信有限公司 Method and device for hiding application icons
CN108170438A (en) * 2017-11-27 2018-06-15 深圳市金立通信设备有限公司 A kind of application program automatic installation method, terminal and computer-readable medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张胜桥 ; 尹青 ; 常瑞 ; 朱晓东 ; .基于APK的Android应用程序GUI遍历自动化方法.计算机应用.2016,(第11期),全文. *

Also Published As

Publication number Publication date
CN111638888A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN108804299B (en) Application program exception handling method and device
CN111258914A (en) Popup window processing method, device and equipment for automatic case test and storage medium
CN111475401A (en) Test method and related equipment
CN113505073B (en) Performance test method, device, equipment and medium of database
CN108009085B (en) Channel package testing method
CN110704311B (en) Application program testing method and device, electronic equipment and readable storage medium
CN111061448A (en) Log information display method and device, electronic equipment and storage medium
US10318731B2 (en) Detection system and detection method
CN112181760A (en) Anomaly detection method and device
CN110018918B (en) Method and device for repairing terminal abnormity, mobile terminal and storage medium
CN109597760B (en) Deployment method and device for abnormal scene of test
CN111638888B (en) Android application package APK installation method and first terminal
CN112286821A (en) HTML5 page compatibility testing method, device, equipment and storage medium
CN112835667A (en) Interface element positioning method, equipment and storage medium
CN108563578B (en) SDK compatibility detection method, device, equipment and readable storage medium
CN111078382A (en) Command timeout processing method and device
CN107391267B (en) Process detection method and device, electronic equipment and readable storage medium
CN110659082A (en) Application program interface display method and device, terminal and storage medium
CN114880244A (en) Application testing method and device, storage medium and electronic equipment
CN111767203A (en) Application test-based bullet frame processing method and system
CN110633196A (en) Automatic use case execution method and device of application program
CN106130815B (en) Board level testing method and device
CN109002694B (en) Method and device for positioning problem point after application code confusion
CN115269252A (en) Application program fault processing method, device, equipment and storage medium
CN114968294A (en) Firmware upgrading method and device for equipment, electronic equipment 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