CN111638888A - Installation method of android Application Package (APK) and first terminal - Google Patents

Installation method of android Application Package (APK) and first terminal Download PDF

Info

Publication number
CN111638888A
CN111638888A CN202010476832.6A CN202010476832A CN111638888A CN 111638888 A CN111638888 A CN 111638888A CN 202010476832 A CN202010476832 A CN 202010476832A CN 111638888 A CN111638888 A CN 111638888A
Authority
CN
China
Prior art keywords
target
dialog box
apk
control
trigger
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
CN202010476832.6A
Other languages
Chinese (zh)
Other versions
CN111638888B (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

Images

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

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 (Android application Key) pushed by second equipment through an Android Debug Bridge (ADB); acquiring a target dialog box corresponding to a target APK, wherein the target dialog box is a trigger dialog box used for receiving a user indication target APK to install; identifying a trigger control in a target dialog box; and responding to the identified trigger control in the target dialog box, and triggering the target APK to install so as to obtain the corresponding target application program. Therefore, the target dialog box can be cancelled in an automatic mode, and the system installation program is enabled to install the target APK to obtain the corresponding target application program. The realization process is simple, convenient and fast.

Description

Installation method of android Application Package (APK) 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
An Android Debug Bridge (ADB) is a command line tool that can communicate with a terminal. An Android Application Package (APK) can be installed on the terminal through the ADB, so that the terminal obtains a corresponding Application (APP).
In the prior art, during the process of installing the APK into the terminal through the ADB, the display interface of the terminal forces to pop up a dialog box, which contains a confirmation button. At this point, the APK installation process will be suspended and a countdown will be performed. Before the countdown is finished, the user needs to manually click the confirmation button to recover the APK installation process and obtain the corresponding APP. If the user does not click the confirm button before the countdown is over, an APK installation failure results.
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 countdown is finished, APK installation fails.
In a first aspect, the present invention provides an installation method for an android application package APK, which is applied to a first terminal, and includes:
receiving a target APK (Android application Key) pushed by 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 used for receiving a user indication that the target APK is installed;
identifying a trigger control in the target dialog box;
and responding to the identified trigger control in the target dialog box, and triggering the target APK to install so as to obtain a corresponding target application program.
Further, the obtaining of the target dialog box corresponding to the target APK includes:
detecting at least one event;
screening a target event from 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, the interface class name corresponding to the target event is matched with the 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 a trigger control in the target dialog box includes:
determining a control type of each control in a plurality of controls contained in the target dialog box;
determining a control of which the type is a trigger type in the plurality of controls according to the determined control type of each control;
identifying the text content carried by the trigger type control;
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 trigger control function starting instruction of an android system in the first terminal;
and responding to the received automatic trigger control function starting instruction, and starting an automatic trigger control function for the android system.
In a second aspect, the present invention also provides a first terminal, including:
the first receiving module is used for receiving a target APK (Android application Key) pushed by the second equipment through an Android Debug Bridge (ADB);
an obtaining module, 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 indication that the target APK is installed;
the identification module is used for identifying the trigger control in the target dialog box;
and the installation module is used for responding to the identified trigger control in the target dialog box and 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;
the screening submodule is used for screening a target event from 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, 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 the obtaining submodule is used for obtaining a dialog box which causes 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 comprises:
the first determining sub-module 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 the control of which the type is the trigger type in the plurality of controls according to the determined control type of each control;
the first identification submodule is used for identifying the text content carried by the trigger type control;
and the second identification submodule is used for identifying the control of the trigger type, matched with the carried text content and the preset text content, as the trigger control.
Further, the first terminal further includes:
the second receiving module is used for receiving an automatic trigger control function starting instruction of the android system in the first terminal;
and the starting module is used for responding to the received automatic trigger control function starting instruction and starting an automatic trigger control function for the android system.
In a third aspect, the present invention further 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 in the readable storage medium, and when at least one processor of the first terminal executes the computer program, the first terminal executes the method for installing the Android application package APK according to the first aspect.
According to the technical scheme, the installation method of 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 used for receiving a user indication that the target APK is installed; identifying a trigger control in the target dialog box; and responding to the identified trigger control in the target dialog box, and triggering the target APK to install so as to obtain a corresponding target application program. Therefore, the target dialog box can be cancelled in an automatic mode, and the system installation program is enabled to install the target APK to obtain the corresponding target application program. The realization process is simple, convenient and fast.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an installation method of an android application package APK according to the present invention;
FIG. 2 is a diagram of a target dialog provided in 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 structural diagram of a first terminal according to the present invention;
fig. 5 is a structural diagram of another first terminal provided in the present invention;
fig. 6 is a block diagram of another first terminal provided in the present invention;
fig. 7 is a block diagram of another first terminal provided in the present invention;
fig. 8 is a schematic diagram of a hardware structure of the electronic device provided in the present invention.
Detailed Description
Reference will now be made in detail to embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following examples do not represent all embodiments consistent with the present application. But merely as exemplifications of systems and methods consistent with certain aspects of the application, as recited 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 present invention, and is applied to a first terminal. As shown in fig. 1, the method comprises the following steps:
step 101, receiving a target APK pushed by second equipment 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.
And 102, 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.
In step 102, a target dialog box corresponding to the target APK may be obtained. The target dialog box is a trigger dialog box used for receiving a user indication target APK to install.
It should be noted that a countdown may also be performed while the target dialog box is being generated. For example, a countdown may begin at 10 seconds while the target dialog box is generated. Fig. 2 is a schematic diagram of a target dialog box. In fig. 2, the text: "click to confirm installation before the countdown is over, otherwise install APK will be cancelled". Also shown in FIG. 2 are two trigger-type controls. One of the trigger type controls is used for displaying countdown, and the other trigger type control is a trigger control displayed with 'installation confirmation'.
And 103, identifying a trigger control in the target dialog box.
In step 103, a trigger control in the target dialog box may be identified.
And 104, responding to the identified trigger 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 be installed to obtain the corresponding target application. For example, before the countdown ends, i.e., before the 10 second countdown ends, and upon identifying a trigger control in the target dialog, the system installer may install the target APK, obtaining the corresponding target application.
It should be noted that, in the prior art, during the process of installing the APK into the terminal through the ADB, the display interface of the terminal may force to pop up a dialog box, which includes a confirmation button. At this point, the APK installation process will be suspended and a countdown will be performed. Before the countdown is finished, the user needs to manually click the confirmation button to recover the APK installation process and obtain the corresponding APP. If the user does not click the confirm button before the countdown is over, an APK installation failure results.
In the application, the target dialog box can be cancelled in an automatic mode, so that the system installation program installs the target APK and obtains the corresponding target application program. The realization process is simple, convenient and fast.
As can be seen from the above technical solutions, the installation method of the Android application package APK provided by the embodiment of the invention is applied to a first terminal, and receives a target APK pushed by a second device 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 used for receiving a user indication that the target APK is installed; identifying a trigger control in the target dialog box; and responding to the identified trigger control in the target dialog box, and triggering the target APK to install so as to obtain a corresponding target application program. Therefore, the target dialog box can be cancelled in an automatic mode, and the system installation program is enabled to install the target APK to obtain the corresponding target application program. The realization process is simple, convenient and fast.
Referring to fig. 3, fig. 3 is a flowchart of another installation method of an android application package APK provided by the present invention, and is 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 trigger control function starting instruction of an android system in the first terminal;
and responding to the received automatic trigger control function starting instruction, and starting an automatic trigger control function for the android system.
It should be noted that an automatic trigger control function starting instruction for the android system in the first terminal may be received, and then in response to the received automatic trigger control function starting instruction, an automatic trigger control function may be started for the android system. Therefore, a user can select whether to start the automatic trigger control function according to own needs, and under the condition that the automatic trigger control function is started, the user can wait for installation of the APK through the ADB.
Step 302, detecting at least one event.
In step 302, the first terminal may detect at least one event with the auto-trigger control functionality turned on.
Step 303, a target event is screened from 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, 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.
In step 303, a target event may be screened for 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 used for installing the target APK in the first terminal.
And 304, 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, and the target dialog box is a trigger dialog box for receiving a user indication that the target APK is installed.
In step 304, the dialog box causing the target event may be obtained as the target dialog box corresponding to the target APK. The target dialog box is popped up by a system installation program, and the target dialog box is a trigger dialog box used for receiving a user instruction target APK to install. In this way, the target event can be screened from the at least one event, and then the dialog box which triggers the target event can be determined as the target dialog box corresponding to the target APK. The operation steps for obtaining the target dialog box corresponding to the target APK are fewer, and the realization process is simple, convenient and fast.
And 305, identifying a trigger control in the target dialog box.
In step 305, a trigger control in the target dialog box may be identified.
Optionally, the identifying a trigger control in the target dialog box includes:
determining a control type of each control in a plurality of controls contained in the target dialog box;
determining a control of which the type is a trigger type in the plurality of controls according to the determined control type of each control;
identifying the text content carried by the trigger type control;
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 a plurality of controls included in the target dialog box may be determined. Still taking fig. 2 as an example, at this time, it may be determined that the control types of the multiple controls included in the target dialog box are two types in total, and the two types are respectively a text type and a trigger type. Next, a control of which the type is the trigger type in the plurality of controls may be determined according to the determined control type of each control. The textual 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-type controls in the plurality of controls, and it may be recognized that the text content on one trigger-type control is "countdown: x seconds "; the text on the other trigger type control is "confirm install". And finally, identifying the control of the trigger type, which is matched with the carried text content and the preset text content, as the trigger control. It should be noted that the preset text content may be "installation confirmation". That is, at this time, it may be determined that the control whose text content displayed in the two trigger-type controls is "installation confirmation" is the trigger control described above. Therefore, the type of the control contained in the target dialog box can be determined firstly, and then the text content on the control is recognized, so that the recognition of the trigger control in the target dialog box is realized. The realization process is simple, convenient and fast.
And step 306, responding to the identified trigger control in the target dialog box, and triggering the target APK to install 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 be installed to obtain the corresponding target application. For example, before the countdown is over, and upon identifying a trigger control in the target dialog, the system installer may install the target APK, obtaining the corresponding target application.
According to the technical scheme, the installation method of the android application package APK provided by the embodiment of the invention is applied to the first terminal. The target dialog box can be cancelled in an automatic mode, and then the system installation program is enabled to install the target APK to obtain the corresponding target application program. The realization process is simple, convenient and fast. Further, a target event can be screened from at least one event, and then the dialog box which triggers the target event can be determined as the target dialog box corresponding to the target APK. The operation steps for obtaining the target dialog box corresponding to the target APK are fewer, and the realization process is simple, convenient and fast.
Referring to fig. 4, fig. 4 is a structural 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 obtaining 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 indication that the target APK is installed;
the identification module 403 is configured to identify a trigger control in the target dialog box;
an installation module 404, configured to trigger the target APK to install in response to the identified trigger control in the target dialog box, 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;
the screening submodule 4022 is configured to screen a target event from 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 installer, and an interface class name corresponding to the target event is matched with a preset interface class name, where the system installer is an application program used in the first terminal to install the target APK;
the obtaining sub-module 4023 is configured to obtain a dialog box that causes 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 identifying module 403 includes:
a first determining submodule 4031, configured to determine a control type of each of multiple controls included in the target dialog box;
a second determining submodule 4032, configured to determine, according to the determined control type of each control, a control of which the type is the trigger type in the multiple controls;
the first identification submodule 4033 is used for identifying the text content carried by the trigger type control;
and the second identification submodule 4034 is configured to identify a trigger-type control, which is matched with the carried text content and 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 trigger control function starting instruction for an android system in the first terminal;
and the starting module 406 is configured to start an automatic trigger control function for the android system in response to the received automatic trigger control function starting instruction.
The first terminal 400 can implement each process implemented by the first terminal in the method embodiments of fig. 1 and fig. 3, and is not described herein again to avoid repetition. And the first terminal 400 can cancel the target dialog box in an automatic manner, so that the system installer installs the target APK to obtain the corresponding target application. The realization process is simple, convenient and fast.
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 to implement the installation method of the Android application package APK in the foregoing embodiment. Reference may be made in particular to the description in relation to the preceding 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.
An embodiment of the present invention further provides a readable storage medium, including: 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 method for installing 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) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, for the first terminal, the electronic device and the readable storage medium embodiment, since they are substantially similar to the method embodiment, the description is simple, and for the relevant points, refer to the description in the method embodiment.
The above-described embodiments of the present invention should not be construed as limiting the scope of the present invention.

Claims (10)

1. An installation method of an android Application Package (APK) is applied to a first terminal, and is characterized by comprising the following steps:
receiving a target APK (Android application Key) pushed by 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 used for receiving a user indication that the target APK is installed;
identifying a trigger control in the target dialog box;
and responding to the identified trigger control in the target dialog box, and triggering the target APK to install so as to obtain a corresponding target application program.
2. The method of claim 1, wherein the obtaining the target dialog corresponding to the target APK comprises:
detecting at least one event;
screening a target event from 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, the interface class name corresponding to the target event is matched with the 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.
3. The method of claim 1 or 2, wherein the identifying a trigger control in the target dialog box comprises:
determining a control type of each control in a plurality of controls contained in the target dialog box;
determining a control of which the type is a trigger type in the plurality of controls according to the determined control type of each control;
identifying the text content carried by the trigger type control;
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.
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 trigger control function starting instruction of an android system in the first terminal;
and responding to the received automatic trigger control function starting instruction, and starting an automatic trigger control function for the android system.
5. A first terminal, comprising:
the first receiving module is used for receiving a target APK (Android application Key) pushed by the second equipment through an Android Debug Bridge (ADB);
an obtaining module, 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 indication that the target APK is installed;
the identification module is used for identifying the trigger control in the target dialog box;
and the installation module is used for responding to the identified trigger control in the target dialog box and triggering the target APK to install so as to obtain a corresponding target application program.
6. The first terminal of claim 5, wherein the acquisition module comprises:
a detection sub-module for detecting at least one event;
the screening submodule is used for screening a target event from 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, 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 the obtaining submodule is used for obtaining a dialog box which causes 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.
7. The first terminal of claim 5 or 6, wherein the identification module comprises:
the first determining sub-module 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 the control of which the type is the trigger type in the plurality of controls according to the determined control type of each control;
the first identification submodule is used for identifying the text content carried by the trigger type control;
and the second identification submodule is used for identifying the control of the trigger type, matched with the carried text content and 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 trigger control function starting instruction of the android system in the first terminal;
and the starting module is used for responding to the received automatic trigger control function starting instruction and starting an automatic trigger 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 so as to realize the installation method of the Android application package APK in any one of claims 1 to 4.
10. A readable storage medium, in which a computer program is stored, and when the computer program is executed by at least one processor of a first terminal, the first terminal executes the method for installing an 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 true CN111638888A (en) 2020-09-08
CN111638888B 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遍历自动化方法" *

Also Published As

Publication number Publication date
CN111638888B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
CN105302722B (en) CTS automatic testing method and device
CN106802814B (en) Method and device for upgrading software version
CN111258914A (en) Popup window processing method, device and equipment for automatic case test and storage medium
CN111475401A (en) Test method and related equipment
CN104346279A (en) Method and device for software testing
CN113254331A (en) Model test method, device, storage medium and program product
CN110908702A (en) Version switching method, version switching device, computer equipment and storage medium
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
CN106201787A (en) Terminal control method and device
CN111638888B (en) Android application package APK installation method and first terminal
CN115604307A (en) Processing method and device for upgrading log, terminal equipment and computer medium
CN110688206A (en) Timing task scheduling method and device, computer equipment and storage medium
CN114880244A (en) Application testing method and device, storage medium and electronic equipment
CN114443065A (en) Platform deployment method, platform deployment device, electronic equipment and storage medium
CN109582586B (en) Application program advanced networking test method, device, server and storage medium
CN113010422A (en) Mirror image file testing method and device, electronic equipment and readable storage medium
CN108881585B (en) Built-in application program test processing method and device, electronic equipment and storage medium
CN111506492B (en) Application program testing method and device, equipment and storage medium
CN117707609B (en) Method and device for managing script tasks based on container arrangement management tool
CN115545677B (en) Online process specification detection method and system based on automatic case execution condition
CN113722170B (en) PFR function test method, device, equipment and readable storage medium
CN117349166A (en) Automatic test method, device, equipment and medium for mobile terminal JSAPI interface
CN117634402A (en) Method, device, equipment and storage medium for realizing automatic replacement of PCB (printed circuit board) via holes
CN114756247A (en) System deployment method, device, 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