CN105320540A - Batch installation method and system for Android applications - Google Patents

Batch installation method and system for Android applications Download PDF

Info

Publication number
CN105320540A
CN105320540A CN201510712747.4A CN201510712747A CN105320540A CN 105320540 A CN105320540 A CN 105320540A CN 201510712747 A CN201510712747 A CN 201510712747A CN 105320540 A CN105320540 A CN 105320540A
Authority
CN
China
Prior art keywords
android
script file
intelligent terminal
installation
batch
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
Application number
CN201510712747.4A
Other languages
Chinese (zh)
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.)
Shenzhen Chuangwei Electronic Appliance Tech Co Ltd
Original Assignee
Shenzhen Chuangwei Electronic Appliance Tech 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 Shenzhen Chuangwei Electronic Appliance Tech Co Ltd filed Critical Shenzhen Chuangwei Electronic Appliance Tech Co Ltd
Priority to CN201510712747.4A priority Critical patent/CN105320540A/en
Publication of CN105320540A publication Critical patent/CN105320540A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a batch installation method and system for Android applications. The batch installation method comprises: adding a script file for determining whether an intelligent terminal is switched on for the first time and a script service for calling the script file into an Android system; burning the Android system into the intelligent terminal and switching on the intelligent terminal; and starting the script service to executing the script file, determining whether the intelligent terminal is switched on for the first time via the script file, and if yes, installing all Android application installation packages under a designated path to complete the batch installation of the Android applications. According to the batch installation method and system for the Android applications, which are provided by the invention, time required for application installation on a production line is greatly reduced; human installation errors are reduced; production efficiency and quality are improved; production cost is reduced; and great convenience is brought.

Description

A kind of batch installation method of Android application and system
Technical field
The present invention relates to intelligent terminal technical field, the batch installation method of in particular a kind of Android application and system.
Background technology
Existing intelligent terminal application is more and more general, and intelligent terminal comprises mobile phone, flat board, televisor and game machine etc., and intelligent terminal generally uses Android system.For intelligent terminal manufacturer, generally can pre-install the application of a lot of Android, or the Android application of specifying when producing tailor-make product, can be pre-installed.Along with popularizing of Android platform, in the process of customization flat board, mobile phone or televisor, various different application can be installed, if when installing large batch of application in production run, can be consuming time very long.Existing solution is the abbreviation arranging workman to remove manually to install each APK(AndroidPackage in process of production, i.e. Android installation kit), like this, install slowly and waste a large amount of time, easily occurring the situation of installing mistakes and omissions.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, the batch installation method providing a kind of Android to apply and system, and the Android application batch being intended to solve existing a large amount of intelligent terminal installs length consuming time, and easily occurs the problem of installing mistakes and omissions.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A batch installation method for Android application, wherein, comprising:
Add for judging whether intelligent terminal is the script file of first time start and the subscription services for calling described script file in Android system;
Described Android system to be burnt in intelligent terminal and to start shooting;
Start described subscription services and perform described script file, judge whether intelligent terminal is first time start, if yes, then installs all Android application installation kits under specified path, installs with the batch completing Android application by script file.
The batch installation method of described Android application, wherein, describedly to add in Android system for judging that whether intelligent terminal is the script file of first time start and the subscription services for calling described script file, also comprising: under the specified path of intelligent terminal, store all Android application installation kits to be installed.
The batch installation method of described Android application, wherein, describedly adds for judging whether intelligent terminal is the script file of first time start and the subscription services for calling described script file, comprising in Android system:
Add for judging whether intelligent terminal is the script file of first time start and calls starting up's subscription services of described script file for execution after Android system start in Android system;
Add paths in the calculator application source code of Android system and select interface, installation interface, installation interface and start instruction is installed.
The batch installation method of described Android application, wherein, to be describedly burnt to described Android system in intelligent terminal and to start shooting, comprising:
Described Android system to be burnt in intelligent terminal and to start shooting;
Started by calculator application input after start and instruction startup selecting paths interface is installed, after selecting specified path, start to install.
The batch installation method of described Android application, wherein, the described subscription services of described startup performs described script file, judge whether intelligent terminal is first time start by script file, if yes, all Android application installation kits under specified path are then installed, install with the batch completing Android application, comprising:
Booting script service execution script file, judged whether to there is the identification document having started described subscription services for identifying intelligent terminal by script file, if do not exist, Android application installation kits all under then searching selected specified path is also installed, and installs rear newly-built described identification document; If exist, then do not perform any operation.
A batch installation system for Android application, wherein, comprising:
Module is added in script and service, for adding for judging whether intelligent terminal is the script file of first time start and the subscription services for calling described script file in Android system;
Burning module, for be burnt to described Android system in intelligent terminal and to start shooting;
Batch installation module, performing described script file for starting described subscription services, judging whether intelligent terminal is first time start by script file, if yes, all Android application installation kits under specified path are then installed, install with the batch completing Android application.
The batch installation system of described Android application, wherein, described script and service are added module and are also comprised:
Memory module, for storing all Android application installation kits to be installed under the specified path of intelligent terminal.
The batch installation system of described Android application, wherein, described script and service are added module and are comprised:
Script and service adding device, for add in Android system for judge intelligent terminal be whether first time start script file and for performing the starting up's subscription services calling described script file after Android system start;
Interface and instruction adding device, select interface, installation interface, installation interface and start to install instruction for adding paths in the calculator application source code of Android system.
The batch installation system of described Android application, wherein, described burning module comprises:
Burning unit, for be burnt to described Android system in intelligent terminal and to start shooting;
Batch installs setting unit, starting selecting paths interface, after selecting specified path, starting to install for starting installation instruction by calculator application input after start.
The batch installation system of described Android application, wherein, described batch installation module comprises:
Batch installation unit, for booting script service execution script file, judged whether to there is the identification document having started described subscription services for identifying intelligent terminal by script file, if do not exist, Android application installation kits all under then searching selected specified path is also installed, and installs rear newly-built described identification document; If exist, then do not perform any operation.
The batch installation method of a kind of Android application provided by the present invention and system, the Android application batch efficiently solving existing a large amount of intelligent terminal installs length consuming time, and easily there is the problem of installing mistakes and omissions, by adding for judging whether intelligent terminal is the script file of first time start and the subscription services for calling described script file in Android system; Described Android system to be burnt in intelligent terminal and to start shooting; Start described subscription services and perform described script file, judge whether intelligent terminal is first time start, if yes, then installs all Android application installation kits under specified path, installs with the batch completing Android application by script file; Greatly reduce production line and application required time is installed, decrease and artificially error is installed, improve production efficiency and quality, reduce production cost, bring and facilitate greatly.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the batch installation method preferred embodiment of Android provided by the invention application.
Fig. 2 is the structured flowchart of the batch installation system preferred embodiment of Android provided by the invention application.
Embodiment
The invention provides batch installation method and the system of the application of a kind of Android, for making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the process flow diagram of the batch installation method preferred embodiment of Android provided by the invention application, as shown in the figure, said method comprising the steps of:
Step S100, add for judging that whether intelligent terminal is the script file of first time start and the subscription services for calling described script file in Android system;
Step S200, described Android system be burnt in intelligent terminal and start shooting;
Step S300, start described subscription services and perform described script file, judge whether intelligent terminal is first time start, if yes, then installs all Android application installation kits under specified path by script file, to complete the batch installation of Android application.
Below in conjunction with specific embodiment, above-mentioned steps is described in detail.
In the step s 100, add in Android system for judging whether intelligent terminal is the script file of first time start and the subscription services for calling described script file.Specifically, the present invention mainly adopts Linux script and the service of Android process to realize.The present invention is after production of machinery is complete before packing, carries out batch install the APK of client.Can will add a service(service in the init.rc of system) before, served by this service() call Linux script file, the effect of script determines whether first time start, if it is booting script removes the APK installing specified path, with this reach one automatically mourn in silence install effect, automatic quick complete installation process.
Preferably, described step S100 comprises:
Add for judging whether intelligent terminal is the script file of first time start and calls starting up's subscription services of described script file for execution after Android system start in Android system;
Add paths in the calculator application source code of Android system and select interface, installation interface, installation interface and start instruction is installed.
Specifically, write preinstall script in systems in which, in init.rc, add subscription services.Then script file and service are compiled into the assigned catalogue under out by Makefile.The source code of booting script source code and installation interface is added in system-computed device APP.
In step s 200, described Android system to be burnt in intelligent terminal and to start shooting.Specifically, exactly described Android system is burnt in intelligent terminal, then starts shooting.Have system burning in prior art, this is prior art, does not do too much description herein.
Preferably, described step S200 also comprises:
Described Android system to be burnt in intelligent terminal and to start shooting;
Started by calculator application input after start and instruction startup selecting paths interface is installed, after selecting specified path, start to install.
When practical application, after programming system to intelligent terminal (such as dull and stereotyped), start-up simulation device APP, input starts installs instruction, starts installation interface, selects installation path to install.
In step S300, start described subscription services and perform described script file, judge whether intelligent terminal is first time start, if yes, then installs all Android application installation kits under specified path, installs with the batch completing Android application by script file.
Specifically, booting script service execution script file, judged whether to there is the identification document having started described subscription services for identifying intelligent terminal by script file, if do not exist, Android application installation kits all under then searching selected specified path is also installed, and installs rear newly-built described identification document; If exist, then do not perform any operation.
When practical application, after intelligent terminal start, by script file, booting script service execution script file, judges whether identification document data.notfirstrun exists, and determines whether to start this service with this; If exist, then do not perform any operation; If do not exist, then all under accessed path APK file, perform install instruction and start to install APK on backstage, generate data.notfirstrun file after mounting and eject installation interface and point out and install number.
Preferably, described step S100 also comprises: under the specified path of intelligent terminal, store all Android application installation kits to be installed.Specifically, intelligent terminal has multiple memory device, such as by the memory device of its internal storage unit, SD card or circumscribed USB.That is, can be stored in these memory devices by all Android application installation kits to be installed, then user selects corresponding path at routing interface, thus carries out batch installation.
As follows to the detailed description of the invention with an Application Example below.
For rockchip scheme, first under device/rockchip/common, preinstall.sh script is created, then in compiling configuration file device.mk, copy code PRODUCT_COPY_FILES is added, preisntall.sh to be copied under out catalogue/system/bin/ in, in init.rc file, add a starting up service, be used for performing preinstall.sh after system boot.Selecting paths interface is added, installation interface in counter APP source code, and the instruction of installation interface and startup installation.
After amended source code compiling is made into firmware, be burnt in machine and start shooting, input instruction by counter APP after start and start selecting paths interface, click after choosing and start to install, now serve startup and perform/system/bin/preinstall.sh script file, first judgement/data/data.notfirstrun file is gone whether to exist in script, do not exist, all * .apk files under path selected by use for circulation searching also perform install instruction, install rear newly-built/data/data.notfirstrun is as mark, start next time no longer performs and installs operation, if exist, do not perform any operation.It should be noted that, this service operation, on backstage, must keep the open state of machine in the process of installing, otherwise it is imperfect that application can be caused to install.
The batch installation method of Android application provided by the invention, in the prior art, factory uses computer to install always, when there being large batch of customization APP, now can be for a long time consuming time, reduce production efficiency, the batch installation method adopting Android provided by the invention to apply is installed, the time of 3/4ths can be saved, improve speed and the accuracy of installation greatly; Great minimizing is produced line and is installed application required time, decreases and artificially installs error, enhance productivity and quality, reduce production cost, bring and facilitate greatly.
Based on the batch installation method that above-mentioned Android is applied, the embodiment of the present invention additionally provides the batch installation system of a kind of Android application, as shown in Figure 2, comprising:
Module 10 is added in script and service, for adding for judging whether intelligent terminal is the script file of first time start and the subscription services for calling described script file in Android system; Specifically as described in step S100;
Burning module 20, for be burnt to described Android system in intelligent terminal and to start shooting; Specifically as described in step S200;
Batch installation module 30, performing described script file for starting described subscription services, judging whether intelligent terminal is first time start by script file, if yes, all Android application installation kits under specified path are then installed, install with the batch completing Android application; Specifically as described in step S300.
Further, described script and service interpolation module 10 also comprise:
Memory module, for storing all Android application installation kits to be installed under the specified path of intelligent terminal.
Further, described script and service interpolation module 10 comprise:
Script and service adding device, for add in Android system for judge intelligent terminal be whether first time start script file and for performing the starting up's subscription services calling described script file after Android system start;
Interface and instruction adding device, select interface, installation interface, installation interface and start to install instruction for adding paths in the calculator application source code of Android system.
Further, described burning module 20 comprises:
Burning unit, for be burnt to described Android system in intelligent terminal and to start shooting;
Batch installs setting unit, starting selecting paths interface, after selecting specified path, starting to install for starting installation instruction by calculator application input after start.
Further, described batch installation module 30 comprises:
Batch installation unit, for booting script service execution script file, judged whether to there is the identification document having started described subscription services for identifying intelligent terminal by script file, if do not exist, Android application installation kits all under then searching selected specified path is also installed, and installs rear newly-built described identification document; If exist, then do not perform any operation.
Described intelligent terminal is the intelligent terminals such as mobile phone, panel computer, televisor and game machine.
In sum, the batch installation method of a kind of Android application provided by the invention and system, by adding for judging whether intelligent terminal is the script file of first time start and the subscription services for calling described script file in Android system; Described Android system to be burnt in intelligent terminal and to start shooting; Start described subscription services and perform described script file, judge whether intelligent terminal is first time start, if yes, then installs all Android application installation kits under specified path, installs with the batch completing Android application by script file; Greatly reduce production line and application required time is installed, decrease and artificially error is installed, improve production efficiency and quality, reduce production cost, bring and facilitate greatly.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.

Claims (10)

1. a batch installation method for Android application, is characterized in that, comprising:
Add for judging whether intelligent terminal is the script file of first time start and the subscription services for calling described script file in Android system;
Described Android system to be burnt in intelligent terminal and to start shooting;
Start described subscription services and perform described script file, judge whether intelligent terminal is first time start, if yes, then installs all Android application installation kits under specified path, installs with the batch completing Android application by script file.
2. the batch installation method of Android application according to claim 1, it is characterized in that, describedly to add in Android system for judging that whether intelligent terminal is the script file of first time start and the subscription services for calling described script file, also comprising: under the specified path of intelligent terminal, store all Android application installation kits to be installed.
3. the batch installation method of Android according to claim 1 application, is characterized in that, describedly adds for judging whether intelligent terminal is the script file of first time start and the subscription services for calling described script file, comprising in Android system:
Add for judging whether intelligent terminal is the script file of first time start and calls starting up's subscription services of described script file for execution after Android system start in Android system;
Add paths in the calculator application source code of Android system and select interface, installation interface, installation interface and start instruction is installed.
4. the batch installation method of Android according to claim 3 application, is characterized in that, to be describedly burnt to by described Android system in intelligent terminal and to start shooting, and comprising:
Described Android system to be burnt in intelligent terminal and to start shooting;
Started by calculator application input after start and instruction startup selecting paths interface is installed, after selecting specified path, start to install.
5. the batch installation method of Android application according to claim 1, it is characterized in that, the described subscription services of described startup performs described script file, judge whether intelligent terminal is first time start by script file, if yes, all Android application installation kits under specified path are then installed, install with the batch completing Android application, comprising:
Booting script service execution script file, judged whether to there is the identification document having started described subscription services for identifying intelligent terminal by script file, if do not exist, Android application installation kits all under then searching selected specified path is also installed, and installs rear newly-built described identification document; If exist, then do not perform any operation.
6. a batch installation system for Android application, is characterized in that, comprising:
Module is added in script and service, for adding for judging whether intelligent terminal is the script file of first time start and the subscription services for calling described script file in Android system;
Burning module, for be burnt to described Android system in intelligent terminal and to start shooting;
Batch installation module, performing described script file for starting described subscription services, judging whether intelligent terminal is first time start by script file, if yes, all Android application installation kits under specified path are then installed, install with the batch completing Android application.
7. the batch installation system of Android application according to claim 6, is characterized in that, described script and service are added module and also comprised:
Memory module, for storing all Android application installation kits to be installed under the specified path of intelligent terminal.
8. the batch installation system of Android application according to claim 6, is characterized in that, described script and service are added module and comprised:
Script and service adding device, for add in Android system for judge intelligent terminal be whether first time start script file and for performing the starting up's subscription services calling described script file after Android system start;
Interface and instruction adding device, select interface, installation interface, installation interface and start to install instruction for adding paths in the calculator application source code of Android system.
9. the batch installation system of Android application according to claim 8, it is characterized in that, described burning module comprises:
Burning unit, for be burnt to described Android system in intelligent terminal and to start shooting;
Batch installs setting unit, starting selecting paths interface, after selecting specified path, starting to install for starting installation instruction by calculator application input after start.
10. the batch installation system of Android application according to claim 6, it is characterized in that, described batch installation module comprises:
Batch installation unit, for booting script service execution script file, judged whether to there is the identification document having started described subscription services for identifying intelligent terminal by script file, if do not exist, Android application installation kits all under then searching selected specified path is also installed, and installs rear newly-built described identification document; If exist, then do not perform any operation.
CN201510712747.4A 2015-10-28 2015-10-28 Batch installation method and system for Android applications Pending CN105320540A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510712747.4A CN105320540A (en) 2015-10-28 2015-10-28 Batch installation method and system for Android applications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510712747.4A CN105320540A (en) 2015-10-28 2015-10-28 Batch installation method and system for Android applications

Publications (1)

Publication Number Publication Date
CN105320540A true CN105320540A (en) 2016-02-10

Family

ID=55247965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510712747.4A Pending CN105320540A (en) 2015-10-28 2015-10-28 Batch installation method and system for Android applications

Country Status (1)

Country Link
CN (1) CN105320540A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951371A (en) * 2017-03-20 2017-07-14 南京大学 A kind of semi-automatic method of testing of Android application based on dependence injection
CN107291484A (en) * 2016-04-11 2017-10-24 龙芯中科技术有限公司 The method and device of programming bare board
CN107391181A (en) * 2017-06-29 2017-11-24 上海与德科技有限公司 A kind of method and device of system partitioning
CN108062226A (en) * 2017-12-29 2018-05-22 福州福大海矽微电子有限公司 A kind of Android system application pre-installation method and terminal
CN110275807A (en) * 2019-06-21 2019-09-24 上海创功通讯技术有限公司 Detection method, system, equipment and the storage medium of smart machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050289537A1 (en) * 2004-06-29 2005-12-29 Lee Sam J System and method for installing software on a computing device
CN102375753A (en) * 2011-10-08 2012-03-14 宇龙计算机通信科技(深圳)有限公司 Mobile terminal application presetting method and mobile terminal
CN103309699A (en) * 2012-03-16 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and application program installation method
CN104317623A (en) * 2011-12-13 2015-01-28 华为终端有限公司 Management method of preset application programs of mobile terminal and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050289537A1 (en) * 2004-06-29 2005-12-29 Lee Sam J System and method for installing software on a computing device
CN102375753A (en) * 2011-10-08 2012-03-14 宇龙计算机通信科技(深圳)有限公司 Mobile terminal application presetting method and mobile terminal
CN104317623A (en) * 2011-12-13 2015-01-28 华为终端有限公司 Management method of preset application programs of mobile terminal and mobile terminal
CN103309699A (en) * 2012-03-16 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and application program installation method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291484A (en) * 2016-04-11 2017-10-24 龙芯中科技术有限公司 The method and device of programming bare board
CN107291484B (en) * 2016-04-11 2021-05-25 龙芯中科技术股份有限公司 Method and device for programming bare board
CN106951371A (en) * 2017-03-20 2017-07-14 南京大学 A kind of semi-automatic method of testing of Android application based on dependence injection
CN106951371B (en) * 2017-03-20 2019-07-09 南京大学 A kind of semi-automatic test method of Android application based on dependence injection
CN107391181A (en) * 2017-06-29 2017-11-24 上海与德科技有限公司 A kind of method and device of system partitioning
CN108062226A (en) * 2017-12-29 2018-05-22 福州福大海矽微电子有限公司 A kind of Android system application pre-installation method and terminal
CN110275807A (en) * 2019-06-21 2019-09-24 上海创功通讯技术有限公司 Detection method, system, equipment and the storage medium of smart machine

Similar Documents

Publication Publication Date Title
CN107391104B (en) Client and reactive native code update dependence management method, device and system
CN105320540A (en) Batch installation method and system for Android applications
CN104991793A (en) Method, device and system used for application program subpackage
CN107368343B (en) Terminal starting method based on android system, terminal and storage medium
CN101344854A (en) Method for upgrading embedded type Linux equipment through SD card
CN104978271A (en) Automatic upgrade pressure measurement method and system for Android system
US9513889B2 (en) System and method of automating installation of applications
CN103559065A (en) Method and system for OTA (Over-the-Air Technology) upgrade
CN111414189A (en) Method and device for determining version compatibility
CN109992501B (en) Availability check of small program, available small program list generating method and device
CN107168750B (en) Firmware upgrade protection method and system
CN102999349A (en) Software upgrading method
CN110209983B (en) Method and device for deploying web project of webpage
CN103645888A (en) System and method for automatically building operation system
CN110750280A (en) Application upgrading method and system based on Android platform and storage medium
CN106293790B (en) application program upgrading method and device based on Firefox operating system
EP2835737A1 (en) Data terminal running mode switching method, device, and data terminal
CN116880877A (en) Virtual machine enhancement tool upgrading method and device, computer equipment and storage medium
CN103677933A (en) Patching method and system for smart card
CN106528114A (en) Android firmware application, android firmware and firmware upgrading method
CN116028084A (en) Cross-version hot upgrading method, system and terminal based on OpenStack cloud platform
CN106873913B (en) Method for partitioning embedded system by self-adapting to different flash
CN104166554A (en) Software developing method and installation method supporting multiple operation systems
US20120084772A1 (en) Method and system for deploying application components in a partial deployment
KR101556831B1 (en) Input method of permission for application development and recording medium storing program for executing method of developing android application

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: 20160210

RJ01 Rejection of invention patent application after publication