CN105278969A - Application program code verifying method and system - Google Patents
Application program code verifying method and system Download PDFInfo
- Publication number
- CN105278969A CN105278969A CN201410267539.3A CN201410267539A CN105278969A CN 105278969 A CN105278969 A CN 105278969A CN 201410267539 A CN201410267539 A CN 201410267539A CN 105278969 A CN105278969 A CN 105278969A
- Authority
- CN
- China
- Prior art keywords
- various different
- apk
- different model
- android terminal
- application program
- 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.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention relates to the internet technical field, and discloses an application program code verifying method and system; the method comprises the following steps: obtaining code snippets of the application program; compiling and packing the application program code snippets into an android install package APK; using a program installation order to send the APK to various connected android terminals of different models, thus trigging the android terminals of different models to install the APK; sending a program starting order to the android terminals of different models, thus triggering the android terminals of different models to run the installed APK; transmitting a log obtain order to the android terminals of different models, and receiving the log information sent by the different-model android terminals responding to the log obtain order. The log information is obtained by running the installed APK, and comprises running results obtained by running the installed APK. The application program code verifying method and system can effectively improve application program code verify efficiency, thus greatly reducing handwork repetition works.
Description
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of code verification method and system of application program.
Background technology
At present, there is Android (Android) mobile phone of various different model in market, after developer develops a certain application program, developer needs the Android phone of collecting various different model, and the Android phone successively application program developed being installed to various different model is to manually run, whether identical to verify the operation fruit of the code of same application in the Android phone of various different model.And find in practice, when the model of Android phone is more, the efficiency of above-mentioned verification mode is lower, and manual repeated work is very many.
Summary of the invention
The embodiment of the invention discloses a kind of code verification method and system of application program, effectively can improve the code verification efficiency of application program, reduce a large amount of manual repeated works.
Embodiment of the present invention first aspect discloses a kind of code verification method of application program, comprising:
Obtain the code snippet of application program;
The compiling of the code snippet of described application program is packaged into Android installation kit (AndroidPackage, APK);
Transmit described APK to the android terminal of the various different models connected by program installation order, with the android terminal triggering described various different model, described APK is installed;
Transmission procedure startup command gives the android terminal of described various different model, runs mounted described APK with the android terminal triggering described various different model;
The android terminal of described various different model is given in the order of transmission log acquisition, and the android terminal receiving described various different model responds the log information of the mounted described APK acquisition of operation that described log acquisition command transfer is come, described log information comprises the operation result running mounted described APK and obtain.
The code verification system of a kind of application program of the embodiment of the present invention, is characterized in that, comprising:
Acquiring unit, for obtaining the code snippet of application program;
Compiling packaged unit, for being packaged into Android installation kit APK by the compiling of the code snippet of described application program;
Communication unit, for being transmitted described APK by program installation order to the android terminal of the various different models connected, installs described APK with the android terminal triggering described various different model;
Described communication unit, also gives the android terminal of described various different model for transmission procedure startup command, run mounted described APK with the android terminal triggering described various different model;
Described communication unit, also for transmitting log acquisition order to the android terminal of described various different model, and the android terminal receiving described various different model responds the log information of the mounted described APK acquisition of operation that described log acquisition command transfer is come, described log information comprises the operation result running mounted described APK and obtain.
In the embodiment of the present invention, after the code snippet obtaining application program, by program installation order, APK uniform transmission can be given the Android terminal of the various different models connected, with the Android terminal triggering various different model, this APK is installed, and uniform transmission program startup command can give the Android terminal of various different model, this APK mounted is run with the Android terminal triggering various different model, and the Android terminal of various different model is given in the order of uniform transmission log acquisition, and the Android terminal receiving various different model responds the log information of mounted this APK acquisition of operation that this log acquisition command transfer is come, thus the operation result that Android terminal operation this APK mounted of various different model obtains can be learned from log information.Visible, the Android terminal that the application program developed automatically can be installed to various different model by the embodiment of the present invention is verified, effectively can improve the code verification efficiency of application program, reduce a large amount of manual repeated works.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the code verification method of a kind of application program disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the code verification method of another kind of application program disclosed in the embodiment of the present invention;
Fig. 3 is the structural representation of the code verification system of a kind of application program disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of the code verification system of another kind of application program disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of the code verification system of another kind of application program disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of code verification method and system of application program, effectively can improve the code verification efficiency of application program, reduce a large amount of manual repeated works.Below be described in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of the code verification method of a kind of application program disclosed in the embodiment of the present invention.As shown in Figure 1, the method can comprise the following steps.
The code snippet of S101, acquisition application program.
In the embodiment of the present invention, the code verification system of an application program can be built, the Android phone that automatically application program developed can be installed to various different model by the code verification system of the application program of building is verified, effectively can improve the code verification efficiency of application program, reduce a large amount of manual repeated works.
In the embodiment of the present invention, the code of the application program needing checking can be submitted to the code verification system of the application program of having built by developer, makes the code verification system of the application program of having built can get the code snippet of application program.
S102, by the code snippet of application program compiling be packaged into APK.
In the embodiment of the present invention, the compiling of the code snippet of application program, after the code snippet getting application program, can be packaged into APK by the code verification system of the application program of having built automatically.For example, the mode that the compiling of the code snippet of application program is packaged into APK can comprise the following steps by the code verification system of application program:
Step 1), call the java code section relevant to resource that aapt instrument comprises according to the code of application program and generate resource index file.
Wherein, appt instrument (i.e. AndroidAssetPackagingTool) is under the build-tools catalogue of AndroidSDK (Android SDK (Software Development Kit)), appt instrument can be checked, create, upgrade the document attachment of ZIP form, also the java code section relevant to resource can be generated resource index file (i.e. R file).
Step 2), call all java code sections that javac instrument comprises according to the code of this application program and this resource index file is compiled into class file.
Wherein, javac instrument is java Programming with Pascal Language compiler, and suffix can be called all java code sections of .java by javac instrument and this resource index file (suffix is called .java) is compiled into the class file that suffix is called .class.
Step 3), call dx instrument according to this resource index file and this class file generated dex file.
Wherein, dx instrument be AndroidSDK provide by the instrument of file generated dex file.
Step 4), call the non-java code section that aapt instrument comprises according to the code of application program and be packaged into resource file.
Wherein, non-java code section be packaged into resource file may be used for generate application interface.
Step 5), call apkbuilder instrument according to this resource file and dex file generated APK.
Wherein, apkbuilder instrument be AndroidSDK provide the dex file of specifying and resource file are packaged as the instrument that can run APK in Android terminal.
Step 6), call jarsigner APK signed.
Wherein, the instrument that the compressed file that can run is signed that provides of jarsigner instrument JavaSDK.And to APK carry out sign can prevent mounted APK by malice third party cover or replace.
S103, to be transmitted this APK by program installation order to the Android terminal of the various different models connected, with the Android terminal triggering various different model, this APK is installed.
In the embodiment of the present invention, the code verification system of the application program of having built is after being packaged into APK by the compiling of the code snippet of application program, automatically can transmit this APK to the Android terminal of the various different models connected by program installation order, with the Android terminal triggering various different model, this APK is installed.
In the embodiment of the present invention, the code verification system of the application program of having built can be connected by the Android terminal of USB port with various different model, or the code verification system of the application program of having built can (such as bluetooth, Wi-Fi) be connected with the Android terminal of various different model to wirelessly.
S104, transmission procedure startup command give the android terminal of various different model, run this APK mounted with the Android terminal triggering various different model.
In the embodiment of the present invention, the code verification system of the application program of having built is transmitting this APK to the Android terminal of the various different models connected by program installation order, after this APK being installed with the Android terminal triggering various different model, automatically transmission procedure startup command can give the android terminal of various different model, run this APK mounted with the Android terminal triggering various different model.
S105, the order of transmission log acquisition are to the Android terminal of various different model, and the Android terminal receiving various different model responds the log information of mounted this APK acquisition of operation that this log acquisition command transfer is come, this log information comprises the operation result running this APK mounted and obtain.
In the embodiment of the present invention, the code verification system of the application program of having built gives the android terminal of various different model in transmission procedure startup command, after running this APK mounted with the Android terminal triggering various different model, automatically can transmit log acquisition order to the Android terminal of various different model, and the Android terminal receiving various different model responds the log information comprising operation result of mounted this APK acquisition of operation that this log acquisition command transfer is come.
As the optional embodiment of one, in the method described by Fig. 1, the code verification system of the application program of having built gives the Android terminal of various different model in transmission procedure startup command, after running this APK mounted with the Android terminal triggering various different model, execution following steps can also be comprised, that is:
Transmission screenshotss obtain order to the Android terminal of various different model, and the Android terminal receiving various different model responds the screenshot capture that these screenshotss obtain the application interface of mounted this APK acquisition of operation that command transfer is come.
As the optional embodiment of one, in the method described by Fig. 1, the code verification system of the application program of having built can also perform following steps, that is:
Export operation result and screenshot capture.
Wherein, the Android terminal that the application program developed automatically can be installed to various different model by the method described by Fig. 1 is verified, effectively can improve the code verification efficiency of application program, reduce a large amount of manual repeated works.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the code verification method of another kind of application program disclosed in the embodiment of the present invention.In the method described by Fig. 2, put up the code verification system of application program in advance, and perform the code verification method of application program disclosed in the embodiment of the present invention by this code verification system.As shown in Figure 2, the method can comprise the following steps.
S201, code verification system obtain the code snippet of application program.
In the embodiment of the present invention, the code of the application program needing checking can be submitted to code verification system by developer, makes code verification system can get the code snippet of application program.
The compiling of the code snippet of application program is packaged into APK by S202, code verification system.
In the embodiment of the present invention, the mode that the compiling of the code snippet of application program is packaged into APK can comprise the following steps by code verification system:
Step 1), call the java code section relevant to resource that aapt instrument comprises according to the code of application program and generate resource index file.
Wherein, appt instrument (i.e. AndroidAssetPackagingTool) is under the build-tools catalogue of AndroidSDK (Android SDK (Software Development Kit)), appt instrument can be checked, create, upgrade the document attachment of ZIP form, also the java code section relevant to resource can be generated resource index file (i.e. R file).
Step 2), call all java code sections that javac instrument comprises according to the code of this application program and this resource index file is compiled into class file.
Wherein, javac instrument is java Programming with Pascal Language compiler, and suffix can be called all java code sections of .java by javac instrument and this resource index file (suffix is called .java) is compiled into the class file that suffix is called .class.
Step 3), call dx instrument according to this resource index file and this class file generated dex file.
Wherein, dx instrument be AndroidSDK provide by the instrument of file generated dex file.
Step 4), call the non-java code section that aapt instrument comprises according to the code of application program and be packaged into resource file.
Wherein, non-java code section be packaged into resource file may be used for generate application interface.
Step 5), call apkbuilder instrument according to this resource file and dex file generated APK.
Wherein, apkbuilder instrument be AndroidSDK provide the dex file of specifying and resource file are packaged as the instrument that can run APK in Android terminal.
Step 6), call jarsigner APK signed.
Wherein, the instrument that the compressed file that can run is signed that provides of jarsigner instrument JavaSDK.And to APK carry out sign can prevent mounted APK by malice third party cover or replace.
S203, code verification system transmit this APK to the Android terminal of the various different models connected by program installation order adbpminstall, install this APK with the Android terminal triggering various different model.
In the embodiment of the present invention, code verification system can be connected by the Android terminal of USB port with various different model, or code verification system can (such as bluetooth, Wi-Fi) be connected with the Android terminal of various different model to wirelessly.
S204, code verification system transmission procedure startup command adbamstart give the android terminal of various different model, run this APK mounted with the Android terminal triggering various different model.
S205, code verification system transmission log acquisition order adblogcat gives the Android terminal of various different model, and the log information that operation this APK mounted that the Android terminal response adblogcat receiving various different model transmits obtains, this log information comprises the operation result running this APK mounted and obtain.
In the embodiment of the present invention, the code verification system of the application program of having built gives the android terminal of various different model in transmission procedure startup command, after running this APK mounted with the Android terminal triggering various different model, automatically can transmit log acquisition order to the Android terminal of various different model, and the Android terminal receiving various different model responds the log information comprising operation result of mounted this APK acquisition of operation that this log acquisition command transfer is come.
S206, code verification system are transmitted screenshotss and are obtained order adbscreencap to the Android terminal of various different model, and the Android terminal receiving various different model responds the screenshot capture that these screenshotss obtain the application interface of mounted this APK acquisition of operation that command transfer is come.
S207, code verification system export operation result and screenshot capture.
Wherein, the Android terminal that the application program developed automatically can be installed to various different model by the method described by Fig. 2 is verified, effectively can improve the code verification efficiency of application program, reduce a large amount of manual repeated works.
Refer to Fig. 3, Fig. 3 is the structural representation of the code verification system of a kind of application program disclosed in the embodiment of the present invention.As shown in Figure 3, this code verification system can comprise:
Acquiring unit 301, for obtaining the code snippet of application program;
Compiling packaged unit 302, for being packaged into APK by the compiling of the code snippet of application program;
Communication unit 303, for being transmitted this APK by program installation order to the Android terminal of the various different models connected, installs this APK with the Android terminal triggering various different model;
Above-mentioned communication unit 303, also gives the Android terminal of various different model for transmission procedure startup command, run this APK mounted with the Android terminal triggering various different model;
Above-mentioned communication unit 303, also for transmitting log acquisition order to the Android terminal of various different model, and the Android terminal response log receiving various different model obtains the log information of mounted this APK acquisition of operation that command transfer is come, this log information comprises the operation result running this APK mounted and obtain.
In the embodiment of the present invention, above-mentioned communication unit 303 is also for giving the Android terminal of various different model in transmission procedure startup command, after running this APK mounted with the Android terminal triggering various different model, transmission screenshotss obtain order to the Android terminal of various different model, and the Android terminal receiving various different model responds the screenshot capture that these screenshotss obtain the application interface of mounted this APK acquisition of operation that command transfer is come.
In the embodiment of the present invention, the code verification system shown in Fig. 3 can also comprise:
Output unit 304, for exporting operation result and screenshot capture.
It is the structural representation of the code verification system of another kind of application program disclosed in the embodiment of the present invention referring to Fig. 4, Fig. 4.Wherein, the code verification system shown in Fig. 4 is that code verification system is as shown in Figure 3 optimized and obtains.In the code verification system shown in Fig. 4, compiling packaged unit 302 can comprise:
First subelement 3021, the java code section relevant to resource comprised according to the code of application program for calling aapt instrument generates resource index file;
Second subelement 3022, all java code sections comprised according to the code of application program for calling javac instrument are compiled into class file with this resource index file;
3rd subelement 3023, for calling dx instrument according to this resource index file and this class file generated dex file;
4th subelement 3024, the non-java code section comprised according to the code of application program for calling aapt instrument is packaged into resource file;
5th subelement 3025, for calling apkbuilder instrument according to this resource file and this dex file generated APK;
6th subelement 3026, signs to APK for calling jarsigner.
In the embodiment of the present invention, in the code verification system described by Fig. 3, Fig. 4, communication unit 303 transmits screenshotss acquisition order and is specially to the mode of the Android terminal of various different model:
Communication unit 303 obtains order adbscreencap to the Android terminal of various different model for transmitting screenshotss.
In the embodiment of the present invention, in the code verification system described by Fig. 3, Fig. 4, communication unit 303 transmits this APK to the Android terminal of the various different models connected by program installation order, and the mode of installing this APK with the Android terminal triggering various different model is specially:
Communication unit 303, for being transmitted this APK by program installation order adbpminstall to the Android terminal of the various different models connected, installs this APK with the Android terminal triggering various different model.
In the embodiment of the present invention, in the code verification system described by Fig. 3, Fig. 4, communication unit 303 transmission procedure startup command gives the Android terminal of various different model, and the mode running this APK mounted with the Android terminal triggering various different model is specially:
Communication unit 303 gives the Android terminal of various different model for transmission procedure startup command adbamstart, runs this APK mounted with the Android terminal triggering various different model.
In the embodiment of the present invention, in the code verification system described by Fig. 3, Fig. 4, communication unit 303 transmits log acquisition order and is specially to the mode of the Android terminal of various different model:
Communication unit 303 is for transmitting log acquisition order adblogcat to the Android terminal of various different model.
Wherein, the Android terminal that the application program developed automatically can be installed to various different model by the system described by Fig. 3, Fig. 4 is verified, effectively can improve the code verification efficiency of application program, reduce a large amount of manual repeated works.
Refer to Fig. 5, Fig. 5 is the structural representation of the code verification system of another kind of application program disclosed in the embodiment of the present invention.As shown in Figure 5, the code verification system 500 of this application program can comprise input media 501, processor 502, storer 503 and output unit 504, communication device 505 and communication bus 506.Wherein, communication bus 506 is for realizing the connection communication between these assemblies.Wherein, input media 501 can comprise keyboard, USB port, touch-screen, microphone etc., and output unit 504 can comprise display screen.As shown in Figure 5, as the code verification program that can comprise operating system, network communication module, Subscriber Interface Module SIM and application program in a kind of storer 503 of computer-readable storage medium.
In the system shown in Fig. 5, processor 502 may be used for calling the code verification program of the application program stored in storer 503, and performs following operation:
By the code snippet obtaining application program through input media 501;
The compiling of the code snippet of application program is packaged into APK;
Transmit APK to the Android terminal of the various different models connected by through communication device 505 with program installation order, with the Android terminal triggering various different model, APK is installed;
By the Android terminal of giving various different model through communication device 505 transmission procedure startup command, run mounted APK with the Android terminal triggering various different model;
By transmitting log acquisition order through communication device 505 to the Android terminal of various different model, and the log information of the mounted APK acquisition of operation that command transfer is come is obtained by the Android terminal response log receiving various different model through communication device 505, this log information comprises the operation result running mounted APK and obtain.
In the embodiment of the present invention, processor 502, by the Android terminal of giving various different model through communication device 505 transmission procedure startup command, after running mounted APK, also performs following steps with the Android terminal triggering various different model:
Obtain order to the Android terminal of various different model by transmitting screenshotss through communication device 505, and respond by the Android terminal receiving various different model through communication device 505 screenshot capture that screenshotss obtain the application interface of the mounted APK acquisition of operation that command transfer is come.
In the system shown in Fig. 5, the code verification program that processor 502 calls the application program stored in storer 503 can also perform following operation:
Operation result and screenshot capture is exported by through output unit 504.
In the embodiment of the present invention, the compiling of the code snippet of application program is packaged into Android installation kit APK and can comprises by processor 502:
Call the java code section generation resource index file relevant to resource that aapt instrument comprises according to the code of application program;
And, call all java code sections that javac instrument comprises according to the code of application program and this resource index file is compiled into class file;
And, call dx instrument according to this resource index file and this class file generated dex file;
And, call the non-java code section that aapt instrument comprises according to the code of application program and be packaged into resource file;
And, call apkbuilder instrument according to this resource file and this dex file generated APK;
And, call jarsigner and APK is signed.
In the embodiment of the present invention, processor 5025 comprises to the Android terminal of various different model by transmitting screenshotss acquisition order through communication device 505:
Processor 5025 obtains order adbscreencap to the Android terminal of various different model by transmitting screenshotss through communication device 505.
In the embodiment of the present invention, processor 5025 transmits APK to the Android terminal of the various different models connected by through communication device 505 with program installation order, installs APK comprise with the Android terminal triggering various different model:
Processor 5025 transmits APK to the Android terminal of the various different models connected by through communication device 505 with program installation order adbpminstall, installs APK with the Android terminal triggering various different model.
In the embodiment of the present invention, processor 5025, by the Android terminal of giving various different model through communication device 505 transmission procedure startup command, runs mounted APK with the Android terminal triggering various different model and comprises:
Processor 5025, by the Android terminal of giving various different model through communication device 505 transmission procedure startup command adbamstart, runs mounted APK with the Android terminal triggering various different model.
In the embodiment of the present invention, processor 5025 comprises to the Android terminal of various different model by transmitting log acquisition order through communication device 505:
Processor 5025 is by transmitting log acquisition order adblogcat through communication device 505 to the Android terminal of various different model.
Wherein, the Android terminal that the application program developed automatically can be installed to various different model by the system described by Fig. 5 is verified, effectively can improve the code verification efficiency of application program, reduce a large amount of manual repeated works.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, ROM (read-only memory) (Read-OnlyMemory, ROM), random access device (RandomAccessMemory, RAM), disk or CD etc.
Above the code verification method and system that the embodiment of the invention discloses a kind of application program are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (16)
1. a code verification method for application program, is characterized in that, comprising:
Obtain the code snippet of application program;
The compiling of the code snippet of described application program is packaged into Android installation kit APK;
Transmit described APK to the android terminal of the various different models connected by program installation order, with the android terminal triggering described various different model, described APK is installed;
Transmission procedure startup command gives the android terminal of described various different model, runs mounted described APK with the android terminal triggering described various different model;
The android terminal of described various different model is given in the order of transmission log acquisition, and the android terminal receiving described various different model responds the log information of the mounted described APK acquisition of operation that described log acquisition command transfer is come, described log information comprises the operation result running mounted described APK and obtain.
2. method according to claim 1, is characterized in that, described transmission procedure startup command gives the android terminal of described various different model, and after running mounted described APK with the android terminal triggering described various different model, described method also comprises:
Transmission screenshotss obtain order to the android terminal of described various different model, and the android terminal receiving described various different model responds the screenshot capture that described screenshotss obtain the application interface of the mounted described APK acquisition of operation that command transfer is come.
3. method according to claim 2, is characterized in that, described method also comprises:
Export described operation result and described screenshot capture.
4. method according to claim 3, is characterized in that, described the compiling of the code snippet of described application program is packaged into Android installation kit APK and comprises:
Call the java code section generation resource index file relevant to resource that aapt instrument comprises according to the code of described application program;
And, call all java code sections that javac instrument comprises according to the code of described application program and described resource index file is compiled into class file;
And, call dx instrument according to described resource index file and described class file generated dex file;
And, call the non-java code section that aapt instrument comprises according to the code of described application program and be packaged into resource file;
And, call apkbuilder instrument according to described resource file and described dex file generated Android installation kit APK;
And, call jarsigner and described APK is signed.
5. the method according to any one of claim 2 ~ 4, is characterized in that, described transmission screenshotss obtain order and comprise to the android terminal of described various different model:
Transmission screenshotss obtain order adbscreencap to the android terminal of described various different model.
6. the method according to any one of Claims 1 to 4, is characterized in that, describedly transmits described APK to the android terminal of various different models connected by program installation order, installs described APK comprise with the android terminal triggering described various different model:
Describedly transmit described APK to the android terminal of various different models connected by program installation order adbpminstall, with the android terminal triggering described various different model, described APK is installed.
7. the method according to any one of Claims 1 to 4, is characterized in that, described transmission procedure startup command gives the android terminal of described various different model, runs mounted described APK comprise with the android terminal triggering described various different model:
Transmission procedure startup command adbamstart gives the android terminal of described various different model, runs mounted described APK with the android terminal triggering described various different model.
8. the method according to any one of Claims 1 to 4, is characterized in that, the order of described transmission log acquisition comprises to the android terminal of described various different model:
Transmission log acquisition order adblogcat gives the android terminal of described various different model.
9. a code verification system for application program, is characterized in that, comprising:
Acquiring unit, for obtaining the code snippet of application program;
Compiling packaged unit, for being packaged into Android installation kit APK by the compiling of the code snippet of described application program;
Communication unit, for being transmitted described APK by program installation order to the android terminal of the various different models connected, installs described APK with the android terminal triggering described various different model;
Described communication unit, also gives the android terminal of described various different model for transmission procedure startup command, run mounted described APK with the android terminal triggering described various different model;
Described communication unit, also for transmitting log acquisition order to the android terminal of described various different model, and the android terminal receiving described various different model responds the log information of the mounted described APK acquisition of operation that described log acquisition command transfer is come, described log information comprises the operation result running mounted described APK and obtain.
10. system according to claim 9, it is characterized in that, described communication unit is also for giving the android terminal of described various different model in transmission procedure startup command, after running mounted described APK with the android terminal triggering described various different model, transmission screenshotss obtain order to the android terminal of described various different model, and the android terminal receiving described various different model responds the screenshot capture that described screenshotss obtain the application interface of the mounted described APK acquisition of operation that command transfer is come.
11. systems according to claim 10, is characterized in that, described system also comprises:
Output unit, for exporting described operation result and described screenshot capture.
12. systems according to claim 11, is characterized in that, described compiling packaged unit comprises:
First subelement, the java code section relevant to resource comprised according to the code of described application program for calling aapt instrument generates resource index file;
Second subelement, for calling all java code sections that javac instrument comprises according to the code of described application program and described resource index file is compiled into class file;
3rd subelement, for calling dx instrument according to described resource index file and described class file generated dex file;
4th subelement, the non-java code section comprised according to the code of described application program for calling aapt instrument is packaged into resource file;
5th subelement, for calling apkbuilder instrument according to described resource file and described dex file generated Android installation kit APK;
6th subelement, signs to described APK for calling jarsigner.
13. systems according to any one of claim 10 ~ 12, is characterized in that, described communication unit transmission screenshotss obtain order and are specially to the mode of the android terminal of described various different model:
Described communication unit obtains order adbscreencap to the android terminal of described various different model for transmitting screenshotss.
14. systems according to any one of claim 9 ~ 12, it is characterized in that, described communication unit transmits described APK to the android terminal of the various different models connected by program installation order, and the mode of installing described APK with the android terminal triggering described various different model is specially:
Described communication unit is used for transmitting described APK to the android terminal of the various different models connected by program installation order adbpminstall, installs described APK with the android terminal triggering described various different model.
15. systems according to any one of claim 9 ~ 12, it is characterized in that, described communication unit transmission procedure startup command gives the android terminal of described various different model, and the mode running mounted described APK with the android terminal triggering described various different model is specially:
Described communication unit is used for transmission procedure startup command adbamstart to the android terminal of described various different model, runs mounted described APK with the android terminal triggering described various different model.
16. systems according to any one of claim 9 ~ 12, is characterized in that, the order of described communication unit transmission log acquisition is specially to the mode of the android terminal of described various different model:
Described communication unit is for transmitting log acquisition order adblogcat to the android terminal of described various different model.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410267539.3A CN105278969A (en) | 2014-06-16 | 2014-06-16 | Application program code verifying method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410267539.3A CN105278969A (en) | 2014-06-16 | 2014-06-16 | Application program code verifying method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105278969A true CN105278969A (en) | 2016-01-27 |
Family
ID=55148026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410267539.3A Pending CN105278969A (en) | 2014-06-16 | 2014-06-16 | Application program code verifying method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105278969A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648783A (en) * | 2016-12-27 | 2017-05-10 | 北京奇虎科技有限公司 | Method and device for installing application program and mobile terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090220072A1 (en) * | 2008-02-28 | 2009-09-03 | James Paul Schneider | Secure serial number generation |
CN103020531A (en) * | 2012-12-06 | 2013-04-03 | 中国科学院信息工程研究所 | Method and system for trusted control of operating environment of Android intelligent terminal |
CN103516559A (en) * | 2012-12-13 | 2014-01-15 | Tcl集团股份有限公司 | Method and system for testing application compatibility of intelligent terminal |
CN103827881A (en) * | 2011-03-09 | 2014-05-28 | 耶德托公司 | Method and system for dynamic platform security in a device operating system |
CN103839000A (en) * | 2014-02-21 | 2014-06-04 | 北京奇虎科技有限公司 | Application program installation method and device based on intelligent terminal equipment |
-
2014
- 2014-06-16 CN CN201410267539.3A patent/CN105278969A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090220072A1 (en) * | 2008-02-28 | 2009-09-03 | James Paul Schneider | Secure serial number generation |
CN103827881A (en) * | 2011-03-09 | 2014-05-28 | 耶德托公司 | Method and system for dynamic platform security in a device operating system |
CN103020531A (en) * | 2012-12-06 | 2013-04-03 | 中国科学院信息工程研究所 | Method and system for trusted control of operating environment of Android intelligent terminal |
CN103516559A (en) * | 2012-12-13 | 2014-01-15 | Tcl集团股份有限公司 | Method and system for testing application compatibility of intelligent terminal |
CN103839000A (en) * | 2014-02-21 | 2014-06-04 | 北京奇虎科技有限公司 | Application program installation method and device based on intelligent terminal equipment |
Non-Patent Citations (1)
Title |
---|
鉴客: "深入理解Android工程的编译过程", 《HTTPS://WWW.OSCHINA.NET/QUESTION/54100_33877》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648783A (en) * | 2016-12-27 | 2017-05-10 | 北京奇虎科技有限公司 | Method and device for installing application program and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8898662B2 (en) | Method and device for generating software installation packet | |
CN104281518A (en) | Terminal application test method, device, system and platform and mobile terminal | |
CN106598835A (en) | Application testing method, device and system | |
CN103970559A (en) | Device loading method and device on basis of Android | |
CN110471663B (en) | Code compiling method and device and electronic equipment | |
CN104268074A (en) | Application software online debugging method based on DCS | |
CN104239114A (en) | Application compiling method and device | |
CN104035778A (en) | Android application program development method | |
CN106020882A (en) | Application upgrading method, intelligent terminal and upgrading system | |
CN102662648A (en) | Embedded software development simulation platform of communication terminal and application thereof | |
CN101800910B (en) | Simulation system, PC side simulator and mobile phone side agent client | |
CN103686821A (en) | Control method for application program traffic statistics according to unique identification of mobile terminal | |
CN102004654B (en) | Software installation method and device | |
CN105573913A (en) | Program debugging method and program debugging system in optical network unit (ONU) system | |
CN102999371B (en) | Interface Development method and system based on Lua script | |
CN101251823B (en) | DSP assembly language program verification method and device | |
CN109753281B (en) | Micro-grid energy management strategy visualization development tool based on graphical programming | |
CN103927257A (en) | Method and device for triggering android behavior event | |
CN105278969A (en) | Application program code verifying method and system | |
CN103514069A (en) | Method and system for testing APIs of HAL of Android system | |
CN103631585A (en) | Method and system for developing application program | |
CN105095063A (en) | Application program testing method, apparatus and system | |
CN106951288B (en) | Development and application method and device of hot upgrade resource | |
CN113254158B (en) | Deployment method and device of deep learning system | |
CN102402440A (en) | Method and device for pushing and prompting of application program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160127 |
|
RJ01 | Rejection of invention patent application after publication |