CN103235728B - The installation method of preset third-party application and device in Android terminal - Google Patents

The installation method of preset third-party application and device in Android terminal Download PDF

Info

Publication number
CN103235728B
CN103235728B CN201310090959.4A CN201310090959A CN103235728B CN 103235728 B CN103235728 B CN 103235728B CN 201310090959 A CN201310090959 A CN 201310090959A CN 103235728 B CN103235728 B CN 103235728B
Authority
CN
China
Prior art keywords
party application
application
installation
install failure
engineering machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310090959.4A
Other languages
Chinese (zh)
Other versions
CN103235728A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201310090959.4A priority Critical patent/CN103235728B/en
Publication of CN103235728A publication Critical patent/CN103235728A/en
Application granted granted Critical
Publication of CN103235728B publication Critical patent/CN103235728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses installation method and the device of preset third-party application in Android terminal, including: step 101, obtain or link the third-party application that designated storage area is stored;Step 102, third-party application successful to each installation count to get and install successfully number;Step 103, the storage number of acquisition third-party application;Step 104, install successfully number and storage number the most equal, if it is not, perform step 105, otherwise, perform step 107;Step 105, install failure number of times add 1, it is judged that whether it is less than the installation frequency threshold value preset;If being carried out step 101, perform step 106 if not;Step 106, write application install failure mark;Success Flag is installed in step 107, write application.The embodiment of the present invention detects the storage number of third-party application and installs successfully number, it is judged that third-party application is installed the most completely, when non-fully installing, re-starts installation.

Description

The installation method of preset third-party application and device in Android terminal
Technical field
The present invention relates to intelligent mobile terminal field, particularly relate to preset third-party application in Android terminal Installation method and device.
Background technology
In recent years, the mobile terminal loading android system relies on excellent performance and good Consumer's Experience, Accepted by users.For loading the mobile terminal of android system, numerous hardware vendors and relevant Network provide net to also give greatly input, the mobile end customized simultaneously for some network provider End, network provider may require that required by hardware vendor's loading station network provider in the terminal the Tripartite applies;The mobile terminal of such as China Mobile, China Telecom or CHINAUNICOM customization, may require that hardware Manufacturer, by respective requirement, loads third-party application.
Generally, it is desirable to start first or user carries out recovery and dispatches from the factory at mobile terminal based on android system Device third-party application when arranging, and require that third-party application can be unloaded by user.But, a kind of feelings Condition is: during third-party application loads (such as during user's factory reset), if mobile phone falls When electricity then can cause start next time, some application is lost;Another situation is: hardware vendor preset the 3rd Fang Yingyong is usually mobile terminal and starts the third-party application automatically installed first, and hardware vendor was producing Cheng Zhong, there is probability loss problem in preset third-party application.
Summary of the invention
It is an object of the invention to provide a kind of method, to solve in prior art, based on android system Terminal after starting first or user carry out factory reset, the problem that third-party application is lost.
It is an object of the invention to be achieved through the following technical solutions:
The embodiment of the present invention provides the installation method of preset third-party application, step in a kind of Android terminal As follows:
Step 101, obtain or link the third-party application that designated storage area is stored;
Step 102, one by one described third-party application described third-party application successful to each installation it is installed Counting, obtains installing successful number;
Step 103, by the described memory area specified obtain described third-party application storage number;
Step 104, relatively more described successfully number and described storage number are installed, it is judged that the two is the most equal, If the two is unequal, then perform step 105;If the two is equal, then perform step 107;
Step 105, install failure number of times add 1, it is judged that whether install failure number of times is less than the installation time preset Number threshold value;If install failure number of times is less than the installation frequency threshold value preset, then continue executing with step 101;If Install failure number of times equal to or more than the installation frequency threshold value preset, then performs step 106;
Step 106, write application install failure mark in the file specified or field;
Step 107, write application in the file specified or field Success Flag is installed.
Preferably, if described terminal is for first powering on, comprise the steps: before step 101
Receive the start-up command that engineering machine sends, start Android operation system;
Detect whether described designated storage area has stored third-party application, if there is described third-party application, Then perform step 101;If there is not described third-party application, then to described engineering machine request described the Tripartite applies, and the described third-party application described engineering machine sent stores to described designated storage area Territory.
Preferably, the information sending install failure to described engineering machine is also included after described step 106.
Preferably, described after described engineering machine sends the information of install failure, also include receiving institute Restart after stating the instruction of restarting that engineering machine sends, continue executing with step 101.
Preferably, also include after described step 107 sending to described engineering machine successful information is installed.
Preferably, described after described engineering machine sends the successful information of installation, also include receiving institute Shutdown is performed after stating the shutdown command that engineering machine sends.
Preferably, if described terminal is factory reset, comprise the steps: before step 101
If there is described third-party application, then perform step 101;If there is not described third-party application, then Terminate recovering.
Preferably, after described step 106 or step 107, also include restarting.
The embodiment of the present invention has the beneficial effect that: by comparing the storage number of third-party application and installing successfully Number, it is judged that third-party application is installed the most completely, when non-fully installing, re-start installation steps with Ensure the installation completely of third-party application.
The embodiment of the present invention provides the erecting device of preset third-party application in a kind of Android terminal, including:
Third-party application acquiring unit, the third party stored for obtaining or link designated storage area should With;
Counting unit, for installing described third-party application described third party successful to each installation one by one Application count, obtains installing successful number;And for being obtained the described 3rd by the described memory area specified The storage number of Fang Yingyong;
Comparing unit, installs successfully number and described storage number for the most described, installs successfully if described Number and described storage number are unequal, then install failure number of times adds 1, and whether judges install failure number of times Less than the installation frequency threshold value preset, if install failure number of times is less than the installation frequency threshold value preset, then continue Call third-party application acquiring unit;If install failure number of times is equal to or more than the installation frequency threshold value preset, Then call mark writing unit, write application install failure mark at the file specified or field;If described peace Dress up merit number and described storage number is equal, call mark writing unit, write at the file specified or field Enter application and Success Flag is installed;
Mark writing unit, for writing application install failure mark or application peace at the file specified or field Dress Success Flag.
Preferably, also including detector unit, for when starting up of terminal, detecting described designated storage area is No storage has third-party application, if there is described third-party application, then calls third-party application acquiring unit; If there is not described third-party application, then ask described third-party application to engineering machine, and by described work The described third-party application that journey computer sends stores to described designated storage area.
The embodiment of the present invention has the beneficial effect that: this erecting device makes Android terminal by comparing the 3rd The storage number of Fang Yingyong and install successfully number, it is judged that third-party application is installed the most completely, when non-fully During installation, re-start installation steps to ensure the installation completely of third-party application.
Accompanying drawing explanation
Fig. 1 is the flow chart of method described in the embodiment of the present invention one;
Fig. 2 is the flow chart of described method in the case of the embodiment of the present invention two first powers on for terminal;
Fig. 3 be the embodiment of the present invention three be the flow chart of described method in the case of user's factory reset;
Fig. 4 is the structural representation of device described in the embodiment of the present invention four.
Detailed description of the invention
Below in conjunction with Figure of description, the embodiment of the present invention is realized process to be described in detail.
The embodiment of the present invention one, it is provided that the installation method of preset third-party application in a kind of Android terminal, As it is shown in figure 1, step is as follows:
Step 101, obtain or link the third-party application that designated storage area is stored, here, we write from memory Think and stored at least one third-party application at the memory area specified, it is intended that memory area permissible Being set to "/preload ", the suffix of third-party application is " .apk ", and this is that android system can be detected by and holds The file that row is installed.
Step 102, one by one described third-party application described third-party application successful to each installation it is installed Counting, obtains installing successful number;
One by one the third-party application obtained by/preload or connect is installed, the most successfully install one the Tripartite applies, then add 1 to installing successfully number, after the whole installation of third-party application under/preload, Obtain final installation success number.
Step 103, the memory area/preload specified by described obtain the storage of described third-party application Number, this step 103 can also synchronize to carry out in step 101 certainly.
Step 104, relatively more described successfully number and described storage number are installed, it is judged that the two is the most equal, If the two is unequal, then explanation has part third-party application install failure, now needs to re-start erector Make, then perform step 105;If the two is equal, whole third-party application is installed successfully, then perform step Rapid 107.
Step 105, install failure number of times add 1, it is judged that whether install failure number of times is less than the installation time preset Number threshold value;If install failure number of times is less than the installation frequency threshold value preset, then continue executing with step 101;If Install failure number of times equal to or more than the installation frequency threshold value preset, then performs step 106.
Step 106, write application install failure mark in the file specified or field.
Step 107, write application in the file specified or field Success Flag is installed.
The embodiment of the present invention has the beneficial effect that: by comparing the storage number of third-party application and installing successfully Number, it is judged that third-party application is installed the most completely, when non-fully installing, re-start installation steps with Ensure the installation completely of third-party application.
It should be noted that when reality is applied, generally with the presence of two kinds of situations: one is that manufacturer is producing In, third-party application when terminal first powers on is installed;A kind of is third party during user's factory reset Application is installed.Below in conjunction with the accompanying drawings 2 and accompanying drawing 3 respectively both of these case is illustrated.
The embodiment of the present invention two provides the installation method of preset third-party application, pin in a kind of Android terminal The situation that third-party application when first powering on terminal is installed illustrates, as in figure 2 it is shown, step is as follows:
The start-up command that step 201, reception engineering machine send, starts android system.
Step 202, detect whether described designated storage area has stored third-party application, if having described Tripartite applies, then perform step 101;If there is not described third-party application, then to described engineering machine Ask described third-party application, and the described third-party application described engineering machine sent stores to described After designated storage area, perform step 101.
Step 101, obtain or link the third-party application that designated storage area is stored, here, we write from memory Think and stored at least one third-party application at the memory area specified, it is intended that memory area permissible Being set to "/preload ", the suffix of third-party application is " .apk ", and this is that android system can be detected by and holds The file that row is installed.
Step 102, one by one described third-party application described third-party application successful to each installation it is installed Counting, obtains installing successful number;
One by one the third-party application obtained by/preload or connect is installed, the most successfully install one the Tripartite applies, then add 1 to installing successfully number, after the whole installation of third-party application under/preload, Obtain final installation success number.
Step 103, the memory area/preload specified by described obtain the storage of described third-party application Number, this step 103 can also synchronize to carry out in step 101 certainly.
Step 104, relatively more described successfully number and described storage number are installed, it is judged that the two is the most equal, If the two is unequal, then explanation has part third-party application install failure, now needs to re-start erector Make, then perform step 105;If the two is equal, whole third-party application is installed successfully, then perform step Rapid 107.
Step 105, install failure number of times add 1, it is judged that whether install failure number of times is less than the installation time preset Number threshold value;If install failure number of times is less than the installation frequency threshold value preset, then continue executing with step 101;If Install failure number of times equal to or more than the installation frequency threshold value preset, then performs step 106.
Step 106, write application install failure mark in the file specified or field.
Step 203, to described engineering machine send install failure information.
Step 204, receive described engineering machine send instruction of restarting after restart, continue executing with step Rapid 101.
For step 203 and step 204, it is also possible to read in the file specified or field by engineering machine After write application install failure mark, send instruction of restarting;The described engineering machine of now terminal reception is sent out Restart after the instruction of restarting sent, continue executing with step 101.
Step 107, write application in the file specified or field Success Flag is installed.
Step 205, to described engineering machine send install successful information.
Step 206, receive described engineering machine send shutdown command after perform shutdown.
For step 203 and step 204, it is also possible to read in the file specified or field by engineering machine After Success Flag is installed in write application, send shutdown command;The described engineering machine of now terminal reception is sent out Shut down after the shutdown command sent.
The embodiment of the present invention has the beneficial effect that: by coordinating with engineering machine, it is achieved third-party application Automatically install, compare the storage number of third-party application and successfully number is installed, it is judged that whether third-party application Install completely, when non-fully installing, after re-starting installation steps or restarting, re-start installation, to protect The installation completely of card third-party application;And shut down after installing successfully.
The embodiment of the present invention three provides the installation method of preset third-party application, pin in a kind of Android terminal When user recovers terminal Default Value, the situation that third-party application is installed illustrates, as it is shown on figure 3, Step is as follows:
Step 301, judge whether designated storage area exists third-party application, if there is third-party application, Then perform step 101;If there is not third-party application, then terminate recovering.
Step 101, obtain or link the third-party application that designated storage area is stored, here, we write from memory Think and stored at least one third-party application at the memory area specified, it is intended that memory area permissible Being set to "/preload ", the suffix of third-party application is " .apk ", and this is that android system can be detected by and holds The file that row is installed.
Step 102, one by one described third-party application described third-party application successful to each installation it is installed Counting, obtains installing successful number;
One by one the third-party application obtained by/preload or connect is installed, the most successfully install one the Tripartite applies, then add 1 to installing successfully number, after the whole installation of third-party application under/preload, Obtain final installation success number.
Step 103, the memory area/preload specified by described obtain the storage of described third-party application Number, this step 103 can also synchronize to carry out in step 101 certainly.
Step 104, relatively more described successfully number and described storage number are installed, it is judged that the two is the most equal, If the two is unequal, then explanation has part third-party application install failure, now needs to re-start erector Make, then perform step 105;If the two is equal, whole third-party application is installed successfully, then perform step Rapid 107.
Step 105, install failure number of times add 1, it is judged that whether install failure number of times is less than the installation time preset Number threshold value;If install failure number of times is less than the installation frequency threshold value preset, then continue executing with step 101;If Install failure number of times equal to or more than the installation frequency threshold value preset, then performs step 106.
Step 106, write application install failure mark in the file specified or field.
Step 107, write application in the file specified or field Success Flag is installed.
All restart after step 302, step 106 or step 107.
The embodiment of the present invention has the beneficial effect that: when user's factory reset, when designated storage area is deposited Install when third-party application, by comparing the storage number of third-party application and installing successfully number, Judge that third-party application is installed the most completely, when non-fully installing, re-start installation steps to ensure The installation completely of tripartite's application;Install when designated storage area exists third-party application, terminate recovering Default Value.
The embodiment of the present invention four provides the erecting device of preset third-party application in a kind of Android terminal, as Shown in Fig. 4, including:
Third-party application acquiring unit 401, for obtaining or link the third party that designated storage area is stored Application;
Counting unit 402, for installing described third-party application the most described to each installation the one by one Tripartite's application count, obtains installing successful number;And it is described for being obtained by the described memory area specified The storage number of third-party application;
Comparing unit 403, installs successfully number and described storage number for the most described, if described installation Success number and described storage number are unequal, then install failure number of times adds 1, and judges install failure number of times Whether less than the installation frequency threshold value preset, if install failure number of times is less than the installation frequency threshold value preset, then Continue to call third-party application acquiring unit;If install failure number of times is equal to or more than the installation number of times threshold preset Value, then call mark writing unit, writes application install failure mark at the file specified or field;If institute State that to install successfully number and described storage number equal, call mark writing unit, at the file specified or word Success Flag is installed in section write application;
Mark writing unit 404, for writing application install failure mark at the file specified or field or answering With installing Success Flag.
Preferably, also include detector unit 405, for when starting up of terminal, detect described designated storage area Whether territory has stored third-party application, if there is described third-party application, then calls third-party application and obtains single Unit;If there is not described third-party application, then ask described third-party application to engineering machine, and by institute The described third-party application stating engineering machine transmission stores to described designated storage area.
The embodiment of the present invention has the beneficial effect that: by comparing the storage number of third-party application and installing successfully Number, it is judged that third-party application is installed the most completely, when non-fully installing, re-start installation steps with Ensure the installation completely of third-party application.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. the installation method of preset third-party application in an Android terminal, it is characterised in that step As follows:
Step 101, obtain or link the third-party application that designated storage area is stored;
Step 102, one by one described third-party application described third-party application successful to each installation it is installed Counting, obtains installing successful number;
Step 103, by the described memory area specified obtain described third-party application storage number;
Step 104, relatively more described successfully number and described storage number are installed, it is judged that the two is the most equal, If the two is unequal, then perform step 105;If the two is equal, then perform step 107;
Step 105, install failure number of times add 1, it is judged that whether install failure number of times is less than the installation time preset Number threshold value;If install failure number of times is less than the installation frequency threshold value preset, then continue executing with step 101;If Install failure number of times equal to or more than the installation frequency threshold value preset, then performs step 106;
Step 106, write application install failure mark in the file specified or field;
Step 107, write application in the file specified or field Success Flag is installed.
2. the method for claim 1, it is characterised in that if described terminal is for first powering on, Comprise the steps: before step 101
Receive the start-up command that engineering machine sends, start Android operation system;
Detect whether described designated storage area has stored third-party application, should if there is described third party With, then perform step 101;If there is not described third-party application, then ask institute to described engineering machine State third-party application, and the described third-party application described engineering machine sent stores to described appointment Memory area.
3. method as claimed in claim 2, it is characterised in that also include after described step 106, The information of install failure is sent to described engineering machine.
4. method as claimed in claim 3, it is characterised in that described send to described engineering machine After the information of install failure, after also including receiving the instruction of restarting that described engineering machine sends, carry out weight Open, continue executing with step 101.
5. method as claimed in claim 2, it is characterised in that also include after described step 107, Send to described engineering machine and successful information is installed.
6. method as claimed in claim 5, it is characterised in that described send to described engineering machine After successful information is installed, after also including receiving the shutdown command that described engineering machine sends, perform pass Machine.
7. the method for claim 1, it is characterised in that dispatch from the factory set if described terminal is recovery Put, comprise the steps: before step 101
If there is described third-party application, then perform step 101;If there is not described third-party application, then Terminate recovering.
8. method as claimed in claim 7, it is characterised in that described step 106 or step 107 it After, also include restarting android system.
9. the erecting device of preset third-party application in an Android terminal, it is characterised in that bag Include:
Third-party application acquiring unit, the third party stored for obtaining or link designated storage area should With;
Counting unit, for installing described third-party application the most described to each installation the 3rd one by one Side's application count, obtains installing successful number;And it is described for being obtained by the described memory area specified The storage number of third-party application;
Comparing unit, installs successfully number and described storage number for relatively more described, if described in be mounted to Merit number and described storage number are unequal, then install failure number of times adds 1, and judge that install failure number of times is It is no less than the installation frequency threshold value preset, if install failure number of times is less than the installation frequency threshold value preset, then Continue to call third-party application acquiring unit;If install failure number of times is equal to or more than the installation number of times preset Threshold value, then call mark writing unit, writes application install failure mark at the file specified or field; If described successfully number and the described storage number of installing is equal, call mark writing unit, at the literary composition specified Success Flag is installed in part or field write application;
Mark writing unit, for writing application install failure mark or application at the file specified or field Success Flag is installed.
10. erecting device as claimed in claim 9, it is characterised in that also include detector unit, be used for When starting up of terminal, detect whether described designated storage area has stored third-party application, if existing described Third-party application, then call third-party application acquiring unit;If there is not described third-party application, then to Described third-party application is asked in engineering machine, and the described third party described engineering machine sent should With storing to described designated storage area.
CN201310090959.4A 2013-03-20 2013-03-20 The installation method of preset third-party application and device in Android terminal Active CN103235728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310090959.4A CN103235728B (en) 2013-03-20 2013-03-20 The installation method of preset third-party application and device in Android terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310090959.4A CN103235728B (en) 2013-03-20 2013-03-20 The installation method of preset third-party application and device in Android terminal

Publications (2)

Publication Number Publication Date
CN103235728A CN103235728A (en) 2013-08-07
CN103235728B true CN103235728B (en) 2016-08-10

Family

ID=48883773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310090959.4A Active CN103235728B (en) 2013-03-20 2013-03-20 The installation method of preset third-party application and device in Android terminal

Country Status (1)

Country Link
CN (1) CN103235728B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731626B (en) * 2015-03-31 2018-11-13 百度在线网络技术(北京)有限公司 The installation method and device of application
CN106649059B (en) * 2015-10-30 2019-08-09 北京国双科技有限公司 Data statistical approach and device
CN106095504B (en) * 2016-06-13 2019-08-20 青岛海信移动通信技术股份有限公司 Preset application loading method and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6604238B1 (en) * 1999-07-26 2003-08-05 Hewlett-Packard Development Company, L.P. Method and system for installing software
CN1225691C (en) * 2002-07-08 2005-11-02 华为技术有限公司 Method for dynamic loading program
CN102368718B (en) * 2011-06-27 2013-11-06 奇智软件(北京)有限公司 Monitoring program method and system thereof
CN102591745B (en) * 2011-12-26 2014-03-12 Tcl集团股份有限公司 Method and device for system recovery based on android system and intelligent equipment

Also Published As

Publication number Publication date
CN103235728A (en) 2013-08-07

Similar Documents

Publication Publication Date Title
CN108241500B (en) Method, device and system for repairing hardware component and storage medium
CN102830984B (en) Method, chip and the communication terminal that firmware updates
CN103428333B (en) Mobile terminal, server and errors repair method
CN102724356A (en) Information synchronization method and device of access device
CN103249027B (en) The method and apparatus that a kind of terminal traffic processes
CN102646043A (en) Method and device for upgrading mobile terminal software and mobile terminal
CN103179551A (en) Over-the-air upgrading method and over-the-air upgrading system
CN103235728B (en) The installation method of preset third-party application and device in Android terminal
CN108322540A (en) Customized data lead-in method, terminal and computer readable storage medium
CN103870319B (en) Information processing method, device and electronic equipment
WO2024078218A1 (en) System booting method and electronic device
CN102883017B (en) terminal and terminal management method
CN109688427A (en) A kind of smart television and its system repair
CN103235703B (en) Preset resource storage method and apparatus
CN104750537B (en) Method and device for executing test case
CN102664990A (en) Installation and display method of dynamic wallpaper of Android mobile phone
CN112486733B (en) System restoration method, device, terminal and storage medium
CN104572311A (en) Application program synchronization device and method based on Bluetooth
CN102333153B (en) Wireless communication device and application program reminding method thereof
CN117056115B (en) Application program repairing method and device, storage medium and electronic equipment
EP3129883B1 (en) Method and apparatus for repairing dynamic link library file
CN104102498A (en) Mobile terminal and booting method thereof
CN103516872A (en) Terminal equipment and terminal equipment startup control method
CN111338660A (en) Method, system, equipment and storage medium for checking batch installation results of operating systems
CN105872775A (en) Silent uninstalling method and device for smart cloud TV 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
C14 Grant of patent or utility model
GR01 Patent grant