CN113434154A - Android application packaging method and device, storage medium and electronic device - Google Patents

Android application packaging method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113434154A
CN113434154A CN202110657296.4A CN202110657296A CN113434154A CN 113434154 A CN113434154 A CN 113434154A CN 202110657296 A CN202110657296 A CN 202110657296A CN 113434154 A CN113434154 A CN 113434154A
Authority
CN
China
Prior art keywords
code
packaging
android
script
application
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
CN202110657296.4A
Other languages
Chinese (zh)
Other versions
CN113434154B (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110657296.4A priority Critical patent/CN113434154B/en
Publication of CN113434154A publication Critical patent/CN113434154A/en
Application granted granted Critical
Publication of CN113434154B publication Critical patent/CN113434154B/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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • 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 invention provides an android application packaging method, an android application packaging device, a storage medium and an electronic device, wherein the method comprises the following steps: converting the L i nux command into a script program which can be sequentially executed through a she L script program; execute JavaScript i pt code packing, android code packing, file signature through this script program, obtain application APP package to output this APP package, can solve among the correlation technique artifical packing cycle than longer and consume the higher problem of human cost, utilize She l script to pack, simplify the manual operation step, improved packing efficiency.

Description

Android application packaging method and device, storage medium and electronic device
Technical Field
The invention relates to the field of communication, in particular to an android application packaging method, an android application packaging device, a storage medium and an electronic device.
Background
Android is one of the two most mainstream mobile phone operating systems at present, and applications of an android Application program (APP for short) are increasingly widespread, and as a developer, the packaging of APPs is also very frequent. At present, android APP packaging developed based on a ReactNative framework is carried out manually, and the following steps are required: 1. packing the JavaScript code to generate a JsBundle code; 2. compiling and packaging the JsBundle code and the android code together; 3. and signing by using a signing tool. If manual processing is carried out, the three steps are required to be finished in sequence, so that the packaging period is long, and the labor cost is high.
Aiming at the problems of long manual packing period and high labor cost in the related technology, no solution is provided.
Disclosure of Invention
The embodiment of the invention provides an android application program packaging method, an android application program packaging device, a storage medium and an electronic device, and at least solves the problems that in the related art, the manual packaging period is long and the labor cost is high.
According to an embodiment of the present invention, there is provided an android application packaging method, including:
converting the Linux command into a script program which can be sequentially executed through a shell script program;
and carrying out JavaScript code packaging, android code packaging and file signature through the script program to obtain an application program package, and outputting the application program package.
Optionally, the obtaining of the application package by the script executing JavaScript code packaging, android code packaging, and file signature includes:
packaging the JavaScript code through the shell script to generate a JsBundle code;
packaging the JsBundle code and the android native code together through the shell script to obtain an application program file;
and signing the application program file based on a signing tool through the shell script to obtain the application program package.
Optionally, the method further comprises:
compiling the android native code based on a local dependency library.
Optionally, compiling the android native code based on a local dependency library comprises:
obtaining dependent code from the local dependency library;
and merging the dependent code and the code edited in advance to obtain the android native code.
Optionally, the method further comprises:
downloading a dependency library from a network side, and storing the dependency library to the local to obtain the local dependency library;
optimizing the local dependency library.
Optionally, optimizing the local dependency library comprises:
detecting the same content in the dependency library through a retrieval tool;
and deleting the detected same content to obtain the optimized local dependency library.
According to another embodiment of the present invention, there is also provided an android application packaging apparatus, including:
the conversion module is used for converting the Linux command into a script program which can be sequentially executed through the shell script program;
and the execution module is used for executing JavaScript code packaging, android code packaging and file signature through the script program to obtain an application program package and outputting the application program package.
Optionally, the execution module includes:
the generation submodule is used for packaging the JavaScript code through the shell script to generate a JsBundle code;
the packaging submodule is used for packaging the JsBundle code and the android native code together through the shell script to obtain an application program file;
and the signature submodule is used for signing the application program file through the shell script based on a signature tool to obtain the application program package.
Optionally, the apparatus further comprises:
and the compiling module is used for compiling the android native code based on a local dependency library.
Optionally, the compiling module includes:
the obtaining submodule is used for obtaining the dependent codes from the local dependent library;
and the merging submodule is used for merging the dependency code and the code edited in advance to obtain the android native code.
Optionally, the apparatus further comprises:
the storage module is used for downloading the dependency library from a network side and storing the dependency library to the local to obtain the local dependency library;
and the optimization module is used for optimizing the local dependency library.
Optionally, the optimization module comprises:
the detection submodule is used for detecting the same content in the dependency library through a retrieval tool;
and the deleting submodule is used for deleting the detected same content to obtain the optimized local dependency library.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the Linux command is converted into the script program which can be sequentially executed through the shell script program; through script program execution JavaScript code packing, android code packing, file signature obtain application APP package, and output APP package can solve among the correlation technique artifical packing cycle than longer and consume the higher problem of human cost, utilizes the Shell script to pack, simplifies the manual operation step, has improved packing efficiency.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of an android application packaging method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an android application packaging method according to an embodiment of the present invention;
FIG. 3 is a flow chart of android APP automatic packaging based on the ReactNative framework according to an embodiment of the present invention;
FIG. 4 is a block diagram of an android application packaging apparatus according to an embodiment of the present invention;
FIG. 5 is a first block diagram of an android application packaging apparatus in accordance with a preferred embodiment of the present invention;
fig. 6 is a block diagram ii of an android application packaging apparatus according to a preferred embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a hardware structure block diagram of a mobile terminal of the android application packaging method according to the embodiment of the present invention, and as shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 can be used for storing computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the android application packaging method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio FrequeNcy (RF) module, which is used to communicate with the internet in a wireless manner.
Based on the above mobile terminal or network architecture, in this embodiment, an android application packaging method is provided, and fig. 2 is a flowchart of the android application packaging method according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, converting the Linux command into a script program which can be executed in sequence through the shell script program;
and step S204, carrying out JavaScript code packaging, android code packaging and file signature through the script program to obtain an application program package, and outputting the application program package.
In this embodiment of the present invention, step S204 may specifically include: packaging the JavaScript code through the shell script to generate a JsBundle code; packaging the JsBundle code and the android native code together through the shell script to obtain an application program file; and signing the application program file based on a signing tool through the shell script to obtain the application program package.
Through the steps S202 to S204, the Linux command is converted into a script program which can be sequentially executed through the shell script program; through script program execution JavaScript code packing, android code packing, file signature obtain application APP package, and output APP package can solve among the correlation technique artifical packing cycle than longer and consume the higher problem of human cost, utilizes the Shell script to pack, simplifies the manual operation step, has improved packing efficiency.
The application package is specifically an Android installation package (Android package, abbreviated as APK), the APK is an application installation file of an Android operating system, and after the Android project development is completed, the APK needs to be packaged and downloaded to the terminal device for operation.
Android is one of the two most mainstream mobile phone operating systems at present, applications of android APPs are also more and more extensive, and as developers, the APPs are also packaged very frequently. Android APP packaging developed based on the ReactNative framework needs to pass through: packing the JavaScript code to generate JsBundle; compiling and packaging JsBundle and android codes together; and signing by using a signing tool. The Shell is an application program written by C language, which is a bridge for users to use Linux, and the Shell script is a script program written for the Shell, and can combine various commands under Linux to execute in series. According to the embodiment of the invention, the Shell script is used for optimizing the packaging steps, so that the manual operation steps are simplified, and the packaging efficiency is improved.
In an optional embodiment, the android native code is compiled based on a local dependency library, and further, the dependency code is obtained from the local dependency library; and merging the dependent code and the code edited in advance to obtain the android native code.
In another optional embodiment, downloading a dependency library from a network side, and storing the dependency library locally to obtain a local dependency library; optimizing the local dependency library, and further detecting the same content in the dependency library through a retrieval tool; and deleting the detected same content to obtain the optimized local dependency library.
After the step S204, an application package may also be run, first storing a test parameter file configured with a plurality of sets of environment parameters into a resource folder of an application code, issuing the application package to an application test terminal, starting the application after the application package is installed on the application test terminal, calling default initial environment parameters when the application is started, reading and analyzing the plurality of sets of environment parameters in the test parameter file after the application is started, outputting and displaying the plurality of sets of environment parameters in the test parameter file on an application test terminal through a preset parameter configuration display page, and replacing the initial environment parameters currently used by the application with target environment parameters specified by a tester when an environment switching instruction input by the tester is received, thereby achieving the purpose of dynamically switching the environment parameters in the test process, the tester does not need to repeatedly carry out packing operation according to different environmental parameters, so that the time consumed by packing is saved, and the testing efficiency is improved.
Adding threads in an application process in a LINUX system and generating a shell module, introducing a shell process into the LINUX system, wherein the shell process can interact with the shell module in the application process, presetting a shell process command by the shell process, and creating a command sharing file; in the embodiment of the invention, a thread generation shell module is added in an application process in the LINUX system, and a shell process which can be started at any time is introduced into the whole multi-process LINUX system. The user can master the execution condition of the application process at any time through the interaction between the shell process and the shell module in the application process.
A shell process command needs to be initialized, a command executed by the shell process itself is registered, and a command sharing file is created to transfer a command of the LINUX system to an application process. Specifically, the shell process command may include a shell process exit command and a shell process switch command. The shell process switching command can enable the shell process to be switched among a plurality of application processes, and the shell process quitting command can end the shell process.
The shell process acquires a command character string input by a serial port of the LINUX system; in the embodiment of the invention, the introduced shell process is used for acquiring the serial port input of the LINUX system, namely when the serial port of the LINUX system has the input of the command character string, the shell process captures the command character string.
The shell process judges whether the command character string is a shell process command; if so, the shell process analyzes and executes the command character string; if not, the shell process writes the command character string into the command sharing file and sends a signal to a shell module in a specified application process; and the shell module is used for acquiring and executing the command character string from the command sharing file after receiving the signal.
When the shell process acquires the command character string, if the command character string is a shell process command, the shell process analyzes and executes the command character string; and if the command character string is not a shell process command, writing the command character string into a command shared file, sending a signal to a shell module of a specified application process, and after receiving the signal, the shell module acquires the command character string from the command shared file and executes a command corresponding to the command character string.
Fig. 3 is a flowchart of automatic android APP packaging based on the ReactNative framework according to an embodiment of the present invention, as shown in fig. 3, including:
step S301, packaging JavaScript codes;
step S302, compiling the android code, specifically, downloading all the dependency libraries in the project to the local, compiling the android native code based on the local dependency libraries, and acquiring the dependency codes from the local dependency libraries; merging the dependent code and a code edited in advance to obtain the android native code;
step S303, configuring a signature file;
step S304, packaging and outputting an APP packet, and packaging the JavaScript code through the shell script to generate a JsBundle code; packaging the JsBundle code and the android native code together through the shell script to obtain an application program file; and signing the application program file based on the signing tool through the shell script to obtain the APP package.
Android APP packaging developed based on the Reactnative framework comprises: packaging JavaScript codes to generate JsBundle codes, detecting and downloading an android native code dependency library, performing code obfuscation configuration, compiling the android native codes, configuring signature files, signing the codes through the signature files, outputting an APP package and the like. And (3) serially connecting the execution of the steps through a shell script, and optimizing the compiling speed of the android native code.
Aiming at packaging JavaScript codes, JsBundle codes are generated, android native codes are compiled, signature files are configured, APP packages are output, and other steps are all Linux commands, and the Linux commands are converted into script programs which can be sequentially executed through shell script programs, so that the packaging steps are simplified, and the packaging efficiency is improved.
Aiming at the step S302, in the step of compiling the android code, all the dependency libraries in the project are downloaded to the local, and the same content in the dependency libraries is detected through a retrieval tool; the detected same dependency libraries are deleted, the codes of the residual dependency libraries are moved to the project, the step of detecting the dependency libraries is omitted when the project is packed through the processing of the step, and due to the fact that the dependency libraries are reduced, compiling time of android native codes is effectively prolonged.
According to the embodiment of the invention, the three steps of JavaScript code packaging, APP package compiling and APP package signing are connected in series through the shell script, so that the three steps are executed in a seamless connection mode, the volume of the package is reduced through the localized dependency library, the engineering compiling speed is increased, the manual operation step is omitted, and the packaging efficiency is improved. Aiming at the android project of ReactNative, the shell script telling and packaging steps are connected in series, and meanwhile, repeated dependency libraries are processed, so that the compiling speed and the packaging efficiency are improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 3
In this embodiment, an android application packaging device is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and the description already made is omitted here for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of an android application packaging apparatus according to an embodiment of the present invention, as shown in fig. 4, including:
the conversion module 42 is used for converting the Linux commands into script programs which can be sequentially executed through the shell script programs;
and the execution module 44 is configured to execute JavaScript code packaging, android code packaging, and file signature by the script program to obtain an application package, and output the application package.
Optionally, the executing module 44 includes:
the generation submodule is used for packaging the JavaScript code through the shell script to generate a JsBundle code;
the packaging submodule is used for packaging the JsBundle code and the android native code together through the shell script to obtain an application program file;
and the signature submodule is used for signing the application program file through the shell script based on a signature tool to obtain the application program package.
Fig. 5 is a first block diagram of an android application packaging apparatus according to a preferred embodiment of the present invention, as shown in fig. 5, the apparatus further includes:
and the compiling module 52 is used for compiling the android native code based on the local dependency library.
Optionally, the compiling module 52 includes:
the obtaining submodule is used for obtaining the dependent codes from the local dependent library;
and the merging submodule is used for merging the dependency code and the code edited in advance to obtain the android native code.
Fig. 6 is a block diagram ii of an android application packaging apparatus according to a preferred embodiment of the present invention, as shown in fig. 6, the apparatus further includes:
the storage module 62 is configured to download the dependency library from the network side, and store the dependency library locally to obtain the local dependency library;
and an optimization module 64 for optimizing the local dependency library.
Optionally, the optimization module 64 includes:
the detection submodule is used for detecting the same content in the dependency library through a retrieval tool;
and the deleting submodule is used for deleting the detected same content to obtain the optimized local dependency library.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, converting the Linux command into a script program which can be executed in sequence through the shell script program;
and S2, carrying out JavaScript code packaging, android code packaging and file signature through the script program to obtain an application program package, and outputting the application program package.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-ONly Memory (ROM), a RaNdom Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, which can store computer programs.
Example 4
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, converting the Linux command into a script program which can be executed in sequence through the shell script program;
and S2, carrying out JavaScript code packaging, android code packaging and file signature through the script program to obtain an application program package, and outputting the application program package.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An android application packaging method is characterized by comprising the following steps:
converting the Linux command into a script program which can be sequentially executed through a shell script program;
and carrying out JavaScript code packaging, android code packaging and file signature through the script program to obtain an application program package, and outputting the application program package.
2. The method of claim 1, wherein the obtaining of the application package by the script executing JavaScript code packaging, android code packaging, and file signing comprises:
packaging the JavaScript code through the shell script to generate a JsBundle code;
packaging the JsBundle code and the android native code together through the shell script to obtain an application program file;
and signing the application program file based on a signing tool through the shell script to obtain the application program package.
3. The method of claim 2, further comprising:
compiling the android native code based on a local dependency library.
4. The method of claim 3, wherein compiling the android native code based on a local dependency library comprises:
obtaining dependent code from the local dependency library;
and merging the dependent code and the code edited in advance to obtain the android native code.
5. The method of claim 3, further comprising:
downloading a dependency library from a network side, and storing the dependency library to the local to obtain the local dependency library;
optimizing the local dependency library.
6. The method of claim 5, wherein optimizing the local dependency library comprises:
detecting the same content in the dependency library through a retrieval tool;
and deleting the detected same content to obtain the optimized local dependency library.
7. An android application packaging apparatus, comprising:
the conversion module is used for converting the Linux command into a script program which can be sequentially executed through the shell script program;
and the execution module is used for executing JavaScript code packaging, android code packaging and file signature through the script program to obtain an application program package and outputting the application program package.
8. The apparatus of claim 7, wherein the execution module comprises:
the generation submodule is used for packaging the JavaScript code through the shell script to generate a JsBundle code;
the packaging submodule is used for packaging the JsBundle code and the android native code together through the shell script to obtain an application program file;
and the signature submodule is used for signing the application program file through the shell script based on a signature tool to obtain the application program package.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 6 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
CN202110657296.4A 2021-06-11 2021-06-11 Android application program packaging method and device, storage medium and electronic device Active CN113434154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110657296.4A CN113434154B (en) 2021-06-11 2021-06-11 Android application program packaging method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110657296.4A CN113434154B (en) 2021-06-11 2021-06-11 Android application program packaging method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113434154A true CN113434154A (en) 2021-09-24
CN113434154B CN113434154B (en) 2023-07-21

Family

ID=77755931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110657296.4A Active CN113434154B (en) 2021-06-11 2021-06-11 Android application program packaging method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113434154B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741960A (en) * 2021-11-05 2021-12-03 广州易方信息科技股份有限公司 Android terminal-based App automatic customization packaging method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609795A (en) * 2003-10-24 2005-04-27 微软公司 Programming interface for a computer platform
WO2012155129A1 (en) * 2011-05-12 2012-11-15 Qualcomm Incorporated Concurrent parsing and processing of html and javascript
US20130046855A1 (en) * 2011-08-16 2013-02-21 Changhao Jiang Aggregating Plug-In Requests for Improved Client Performance
CN106462699A (en) * 2014-03-31 2017-02-22 爱迪德技术有限公司 Software protection
CN108469957A (en) * 2018-03-08 2018-08-31 平安科技(深圳)有限公司 Using packing method for uploading, device, computer equipment and storage medium
CN109032638A (en) * 2018-07-18 2018-12-18 广州宸瑞软件科技有限公司 Hot update method, server and the mobile terminal of mobile application software
CN110888639A (en) * 2018-09-10 2020-03-17 北京京东尚科信息技术有限公司 Business code compiling and packaging method and device
CN111061501A (en) * 2018-10-16 2020-04-24 福建天泉教育科技有限公司 Hot updating method of android application and computer readable storage medium
CN112286504A (en) * 2020-11-12 2021-01-29 普元信息技术股份有限公司 Method for realizing development and loading of small program based on Reactnative in mobile APP

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609795A (en) * 2003-10-24 2005-04-27 微软公司 Programming interface for a computer platform
WO2012155129A1 (en) * 2011-05-12 2012-11-15 Qualcomm Incorporated Concurrent parsing and processing of html and javascript
US20130046855A1 (en) * 2011-08-16 2013-02-21 Changhao Jiang Aggregating Plug-In Requests for Improved Client Performance
CN106462699A (en) * 2014-03-31 2017-02-22 爱迪德技术有限公司 Software protection
CN108469957A (en) * 2018-03-08 2018-08-31 平安科技(深圳)有限公司 Using packing method for uploading, device, computer equipment and storage medium
CN109032638A (en) * 2018-07-18 2018-12-18 广州宸瑞软件科技有限公司 Hot update method, server and the mobile terminal of mobile application software
CN110888639A (en) * 2018-09-10 2020-03-17 北京京东尚科信息技术有限公司 Business code compiling and packaging method and device
CN111061501A (en) * 2018-10-16 2020-04-24 福建天泉教育科技有限公司 Hot updating method of android application and computer readable storage medium
CN112286504A (en) * 2020-11-12 2021-01-29 普元信息技术股份有限公司 Method for realizing development and loading of small program based on Reactnative in mobile APP

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
G. QIONG 等: "An Optimization Method of Javascript Redundant Code Elimination based On Hybrid Analysis Technique", 《 2020 17TH INTERNATIONAL COMPUTER CONFERENCE ON WAVELET ACTIVE MEDIA TECHNOLOGY AND INFORMATION PROCESSING (ICCWAMTIP)》 *
何亚: "应用JavaScript脚本语言实现电子政务网站", 《电脑迷》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741960A (en) * 2021-11-05 2021-12-03 广州易方信息科技股份有限公司 Android terminal-based App automatic customization packaging method and device
CN113741960B (en) * 2021-11-05 2022-04-01 广州易方信息科技股份有限公司 Android terminal-based App automatic customization packaging method and device

Also Published As

Publication number Publication date
CN113434154B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
CN110046101B (en) Page automatic testing method and device and computer storage medium
CN106325847B (en) Method and device for acquiring application program function based on iOS platform
CN108228444B (en) Test method and device
CN111049870B (en) Application downloading and sending method, device and system
CN103595770A (en) Method and device for achieving file downloading through SDK
CN110442399B (en) Method and device for executing read Native service of application, storage medium and terminal equipment
CN113434154B (en) Android application program packaging method and device, storage medium and electronic device
EP3797356B1 (en) Code base sharing between standalone and web-based versions of an application due to the implementing of an emulated network communication channel
CN113448690B (en) Monitoring method and device
CN103595769B (en) Method and device for achieving file uploading through SDK
CN106775916B (en) Method and device for reducing application installation packages and electronic equipment
CN111930455A (en) Page updating method, device, terminal and storage medium
CN116627850A (en) Function debugging method and device, storage medium and electronic equipment
CN110806891A (en) Method and device for generating software version of embedded equipment
CN115291933A (en) Method, device and equipment for constructing small program data packet and storage medium
CN114003257A (en) Upgrading method and device
CN114189745A (en) Set top box software switching management method and system and computer device
CN112131505A (en) Data storage processing method and device, storage medium and electronic device
CN113656152A (en) Local simulation method, system, medium and electronic device based on container cloud environment
CN108415844B (en) Plug-in debugging method and device
CN112925698A (en) Test script generation method and integrated development environment
CN112612531A (en) Application program starting method and device, electronic equipment and storage medium
CN112306843A (en) Test method, test device and storage medium
CN110764997B (en) Database interface conformance testing method and device
CN113849398A (en) Software tool kit testing method, system, storage medium and electronic device

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