CN103235728A - Mounting method and device for presetting third party appliances in Android terminal - Google Patents
Mounting method and device for presetting third party appliances in Android terminal Download PDFInfo
- Publication number
- CN103235728A CN103235728A CN2013100909594A CN201310090959A CN103235728A CN 103235728 A CN103235728 A CN 103235728A CN 2013100909594 A CN2013100909594 A CN 2013100909594A CN 201310090959 A CN201310090959 A CN 201310090959A CN 103235728 A CN103235728 A CN 103235728A
- Authority
- CN
- China
- Prior art keywords
- party
- installation
- failure
- frequency
- 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.)
- Granted
Links
Images
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses a mounting method and device for presetting third party appliances in an Android terminal. The mounting method comprises the steps as follows: step 101, obtaining or chaining the third party appliances stored in an appointed storage region; step 102, counting the successfully mounted third party appliances to obtain the successively mounting number; step 103, obtaining the storage number of the third party appliances; step 104, judging whether the successfully mounting number is equal to the storage number, if no, step 105 is executed, and if yes, step 107 is executed; step 105, adding the unsuccessfully mounted number and 1 to obtain a sum, and judging whether the sum is smaller than the preset mounting frequency threshold, if yes, step 101 is executed, and if no, step 106 is executed; step 106, writing in the unsuccessful application mounting sign; and step 107, writing in successful application mounting sign. The embodiment of the invention detects the storage number and the successfully mounted number of the third party appliances, and judges whether the third party appliances are successfully mounted or not, and when not being fully mounted, the third party appliances are re-mounted.
Description
Technical field
The present invention relates to the intelligent mobile terminal field, relate in particular to and preset installation method and the device that the third party uses in the Android terminal.
Background technology
In recent years, the portable terminal that loads the Android system relies on excellent performance and favorable user experience, by users are accepted.For the portable terminal that loads the Android system, numerous hardware vendors and relevant network provide net also to give great input, simultaneously, for the portable terminal of some network provider customization, network provider can require the desired third party of hardware vendor's loading station network provider in portable terminal to use; The portable terminal of China Mobile, China Telecom or CHINAUNICOM customization for example can require the hardware vendor by separately requirement, loads the third party and uses.
Usually, require the portable terminal based on the Android system start first or the user when carrying out factory reset the device third party use, and require the third party to use can be unloaded by the user.But a kind of situation is: use in the process of loading the third party when user's factory reset (for example), if mobile phone power down then can cause when starting shooting some application to lose next time; Another situation is: the third party that the hardware vendor presets use generally be portable terminal start first the third party that automatically installs use, the hardware vendor in process of production, the third party who presets uses and exists probability to lose problem.
Summary of the invention
The purpose of this invention is to provide a kind of method, solving in the prior art, after starting first or the user carries out factory reset, the third party uses the problem of losing based on the terminal of Android system.
The objective of the invention is to be achieved through the following technical solutions:
The embodiment of the invention provides and presets the installation method that the third party uses in a kind of Android terminal, and step is as follows:
Preferably, if described terminal comprised the steps: before step 101 for start first
Receive the start-up command that engineering machine sends, start Android operating system;
Detect described designated storage area and whether store third party's application, if exist described third party to use, then execution in step 101; If do not exist described third party to use, then use to the described third party of described engineering machine request, and described third party's application memory that described engineering machine is sent is to described designated storage area.
Preferably, also comprise the information that sends the installation failure to described engineering machine after the described step 106.
Preferably, described after described engineering machine sends the information that failure is installed, also comprise and restarting after receiving the instruction of restarting that described engineering machine sends, continue execution in step 101.
Preferably, also comprise the information that sends successful installation to described engineering machine after the described step 107.
Preferably, described after described engineering machine sends the information of successful installation, also comprise and carry out shutdown after receiving the shutdown command that described engineering machine sends.
Preferably, if described terminal is factory reset, before step 101, comprise the steps:
If exist described third party to use, then execution in step 101; If do not exist described third party to use, then stop recovering.
Preferably, after described step 106 or the step 107, also comprise and restarting.
Whether embodiment of the invention beneficial effect is as follows: by storage number and the successful installation number that third party relatively uses, judge that the third party uses to install fully, when installing fully, carry out installation steps again to guarantee the installation fully of third party's application when non-.
The embodiment of the invention provides and presets the erecting device that the third party uses in a kind of Android terminal, comprising:
Third party's application acquisition unit is used for obtaining or linking third party's application that designated storage area is stored;
Counting unit is used for installing one by one that described third party uses and to described third party's application count of each successful installation, obtain the successful installation number; And be used for obtaining the storage number that described third party uses by described specified memory territory;
Comparing unit, be used for more described successful installation number and described storage number, if described successful installation number and described storage number are unequal, the frequency of failure then is installed adds 1, and judge and the frequency of failure is installed whether less than default installation frequency threshold value, if the frequency of failure is installed less than default installation frequency threshold value, then continues to call third party's application acquisition unit; Be equal to or greater than default installation frequency threshold value if the frequency of failure is installed, then call the sign writing unit, write to use in the file of appointment or field failure flags is installed; If described successful installation number and described storage number equate, call the sign writing unit, write in the file of appointment or field and use the successful installation sign;
The sign writing unit is used for writing application installation failure flags or using the successful installation sign in file or the field of appointment.
Preferably, also comprise detecting unit, be used for when starting up of terminal, detect described designated storage area and whether store third party's application, if exist described third party to use, then call third party's application acquisition unit; If do not exist described third party to use, then use to the described third party of engineering machine request, and described third party's application memory that described engineering machine is sent is to described designated storage area.
Embodiment of the invention beneficial effect is as follows: this erecting device makes the Android terminal by comparing storage number and the successful installation number that the third party uses, judge that whether fully the third party uses installation, when installing fully, carry out the fully installation of installation steps to guarantee that the third party uses when non-again.
Description of drawings
Fig. 1 is the process flow diagram of the embodiment of the invention one described method;
Fig. 2 is that the embodiment of the invention two is the process flow diagram of described method under the terminal start situation first;
Fig. 3 is that the embodiment of the invention three is the process flow diagram of described method under user's factory reset situation;
Fig. 4 is the structural representation of the embodiment of the invention four described devices.
Embodiment
Be elaborated below in conjunction with the implementation procedure of Figure of description to the embodiment of the invention.
The embodiment of the invention one provides and presets the installation method that the third party uses in a kind of Android terminal, and as shown in Figure 1, step is as follows:
To be obtained or the third party that connects uses and installs by/preload one by one, and whenever a third party successfully is installed will use, then the successful installation number be added 1, after the third party the under/preload uses whole installations, obtain final successful installation number.
Whether embodiment of the invention beneficial effect is as follows: by storage number and the successful installation number that third party relatively uses, judge that the third party uses to install fully, when installing fully, carry out installation steps again to guarantee the installation fully of third party's application when non-.
It should be noted that when practical application have two kinds of situations to exist usually: a kind of be manufacturer aborning, the third party when terminal is started shooting first uses installation; Third party during a kind of user's of being factory reset uses installation.Respectively both of these case is described below in conjunction with accompanying drawing 2 and accompanying drawing 3.
The embodiment of the invention two provides and presets the installation method that the third party uses in a kind of Android terminal, and the situation that the third party when starting shooting first at terminal uses installation describes, and as shown in Figure 2, step is as follows:
The start-up command that step 201, reception engineering machine send starts the Android system.
Whether step 202, the described designated storage area of detection store third party's application, if exist described third party to use, then execution in step 101; If do not exist described third party to use, then use to the described third party of described engineering machine request, and described third party's application memory that described engineering machine is sent is to described designated storage area execution in step 101.
To be obtained or the third party that connects uses and installs by/preload one by one, and whenever a third party successfully is installed will use, then the successful installation number be added 1, after the third party the under/preload uses whole installations, obtain final successful installation number.
Restart after the instruction of restarting that step 204, the described engineering machine of reception send, continue execution in step 101.
For step 203 and step 204, also can by engineering machine read in the file of appointment or field write use failure flags is installed after, send instruction of restarting; This moment, terminal was restarted after receiving the instruction of restarting that described engineering machine sends, and continued execution in step 101.
Carry out shutdown behind the shutdown command that step 206, the described engineering machine of reception send.
For step 203 and step 204, also can by engineering machine read in the file of appointment or field write use the successful installation sign after, send shutdown command; This moment, terminal was shut down after receiving the shutdown command that described engineering machine sends.
Embodiment of the invention beneficial effect is as follows: by cooperating with engineering machine, realize the automatic installation of third party's application, storage number and the successful installation number that the comparison third party uses, judge that whether fully the third party uses installation, when non-when installing fully, again carry out installation steps or restart after install again, with the installation fully that guarantees that the third party uses; And after successful installation, shut down.
The embodiment of the invention three provides and presets the installation method that the third party uses in a kind of Android terminal, and when recovering the terminal Default Value at the user, the situation that the third party uses installation describes, and as shown in Figure 3, step is as follows:
Whether step 301, judgement exist the third party to use in designated storage area, if exist the third party to use, then execution in step 101; If do not exist the third party to use, then stop recovering.
To be obtained or the third party that connects uses and installs by/preload one by one, and whenever a third party successfully is installed will use, then the successful installation number be added 1, after the third party the under/preload uses whole installations, obtain final successful installation number.
All restart after step 302, step 106 or the step 107.
Embodiment of the invention beneficial effect is as follows: when user's factory reset, when existing the third party to use, designated storage area installs, storage number and successful installation number by relatively third party's application, judge that whether fully the third party uses installation, when installing fully, carry out the fully installation of installation steps to guarantee that the third party uses when non-again; When designated storage area exists the third party to use, install, stop factory reset.
The embodiment of the invention four provides and presets the erecting device that the third party uses in a kind of Android terminal, as shown in Figure 4, comprising:
Third party's application acquisition unit 401 is used for obtaining or linking third party's application that designated storage area is stored;
Counting unit 402 is used for installing one by one that described third party uses and to described third party's application count of each successful installation, obtain the successful installation number; And be used for obtaining the storage number that described third party uses by described specified memory territory;
Comparing unit 403, be used for more described successful installation number and described storage number, if described successful installation number and described storage number are unequal, the frequency of failure then is installed adds 1, and judge and the frequency of failure is installed whether less than default installation frequency threshold value, if the frequency of failure is installed less than default installation frequency threshold value, then continues to call third party's application acquisition unit; Be equal to or greater than default installation frequency threshold value if the frequency of failure is installed, then call the sign writing unit, write to use in the file of appointment or field failure flags is installed; If described successful installation number and described storage number equate, call the sign writing unit, write in the file of appointment or field and use the successful installation sign;
Sign writing unit 404 is used for writing application installation failure flags or using the successful installation sign in file or the field of appointment.
Preferably, also comprise detecting unit 405, be used for when starting up of terminal, detect described designated storage area and whether store third party's application, if exist described third party to use, then call third party's application acquisition unit; If do not exist described third party to use, then use to the described third party of engineering machine request, and described third party's application memory that described engineering machine is sent is to described designated storage area.
Whether embodiment of the invention beneficial effect is as follows: by storage number and the successful installation number that third party relatively uses, judge that the third party uses to install fully, when installing fully, carry out installation steps again to guarantee the installation fully of third party's application when non-.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.
Claims (10)
1. preset the installation method that the third party uses in an Android terminal, it is characterized in that step is as follows:
Step 101, obtain or link the third party that designated storage area stores and use;
Step 102, install that described third party uses one by one and to described third party's application count of each successful installation, obtain the successful installation number;
Step 103, obtain the storage number that described third party uses by described specified memory territory;
Step 104, more described successful installation number and described storage number judge whether the two equates that if the two is unequal, then execution in step 105; If the two equates that then execution in step 107;
Step 105, the installation frequency of failure add 1, judge and the frequency of failure are installed whether less than default installation frequency threshold value; If the frequency of failure is installed less than default installation frequency threshold value, then continues execution in step 101; Be equal to or greater than default installation frequency threshold value if the frequency of failure is installed, then execution in step 106;
Step 106, write to use in the file of appointment or field failure flags is installed;
Step 107, write in the file of appointment or field and to use the successful installation sign.
2. the method for claim 1 is characterized in that, if described terminal comprised the steps: before step 101 for start first
Receive the start-up command that engineering machine sends, start Android operating system;
Detect described designated storage area and whether store third party's application, if exist described third party to use, then execution in step 101; If do not exist described third party to use, then use to the described third party of described engineering machine request, and described third party's application memory that described engineering machine is sent is to described designated storage area.
3. the method for claim 1 is characterized in that, also comprises after the described step 106, sends the information that failure is installed to described engineering machine.
4. method as claimed in claim 3 is characterized in that, and is described after described engineering machine sends the information that failure is installed, and also comprises restarting after receiving the instruction of restarting that described engineering machine sends, and continues execution in step 101.
5. the method for claim 1 is characterized in that, also comprises after the described step 107, sends the information of successful installation to described engineering machine.
6. method as claimed in claim 5 is characterized in that, and is described after described engineering machine sends the information of successful installation, also comprises carrying out shutdown after receiving the shutdown command that described engineering machine sends.
7. the method for claim 1 is characterized in that, if described terminal is factory reset, comprises the steps: before step 101
If exist described third party to use, then execution in step 101; If do not exist described third party to use, then stop recovering.
8. method as claimed in claim 7 is characterized in that, after described step 106 or the step 107, also comprises and restarting.
9. preset the erecting device that the third party uses in an Android terminal, it is characterized in that, comprising:
Third party's application acquisition unit is used for obtaining or linking third party's application that designated storage area is stored;
Counting unit is used for installing one by one that described third party uses and to described third party's application count of each successful installation, obtain the successful installation number; And be used for obtaining the storage number that described third party uses by described specified memory territory;
Comparing unit, be used for more described successful installation number and described storage number, if described successful installation number and described storage number are unequal, the frequency of failure then is installed adds 1, and judge and the frequency of failure is installed whether less than default installation frequency threshold value, if the frequency of failure is installed less than default installation frequency threshold value, then continues to call third party's application acquisition unit; Be equal to or greater than default installation frequency threshold value if the frequency of failure is installed, then call the sign writing unit, write to use in the file of appointment or field failure flags is installed; If described successful installation number and described storage number equate, call the sign writing unit, write in the file of appointment or field and use the successful installation sign;
The sign writing unit is used for writing application installation failure flags or using the successful installation sign in file or the field of appointment.
10. erecting device as claimed in claim 9 is characterized in that, also comprises detecting unit, be used for when starting up of terminal, detect described designated storage area and whether store third party's application, if exist described third party to use, then call third party's application acquisition unit; If do not exist described third party to use, then use to the described third party of engineering machine request, and described third party's application memory that described engineering machine is sent is to described designated storage area.
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 true CN103235728A (en) | 2013-08-07 |
CN103235728B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731626A (en) * | 2015-03-31 | 2015-06-24 | 百度在线网络技术(北京)有限公司 | Application installation method and device |
CN106095504A (en) * | 2016-06-13 | 2016-11-09 | 青岛海信移动通信技术股份有限公司 | preset application loading method and mobile terminal |
CN106649059A (en) * | 2015-10-30 | 2017-05-10 | 北京国双科技有限公司 | Data statistic method and device |
Citations (4)
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 |
CN1467631A (en) * | 2002-07-08 | 2004-01-14 | 华为技术有限公司 | Method for dynamic loading program |
CN102368718A (en) * | 2011-06-27 | 2012-03-07 | 奇智软件(北京)有限公司 | Monitoring program method and system thereof |
CN102591745A (en) * | 2011-12-26 | 2012-07-18 | Tcl集团股份有限公司 | Method and device for system recovery based on android system and intelligent equipment |
-
2013
- 2013-03-20 CN CN201310090959.4A patent/CN103235728B/en active Active
Patent Citations (4)
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 |
CN1467631A (en) * | 2002-07-08 | 2004-01-14 | 华为技术有限公司 | Method for dynamic loading program |
CN102368718A (en) * | 2011-06-27 | 2012-03-07 | 奇智软件(北京)有限公司 | Monitoring program method and system thereof |
CN102591745A (en) * | 2011-12-26 | 2012-07-18 | Tcl集团股份有限公司 | Method and device for system recovery based on android system and intelligent equipment |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731626A (en) * | 2015-03-31 | 2015-06-24 | 百度在线网络技术(北京)有限公司 | Application installation method and device |
CN104731626B (en) * | 2015-03-31 | 2018-11-13 | 百度在线网络技术(北京)有限公司 | The installation method and device of application |
CN106649059A (en) * | 2015-10-30 | 2017-05-10 | 北京国双科技有限公司 | Data statistic method and device |
CN106649059B (en) * | 2015-10-30 | 2019-08-09 | 北京国双科技有限公司 | Data statistical approach and device |
CN106095504A (en) * | 2016-06-13 | 2016-11-09 | 青岛海信移动通信技术股份有限公司 | preset application loading method and mobile terminal |
CN106095504B (en) * | 2016-06-13 | 2019-08-20 | 青岛海信移动通信技术股份有限公司 | Preset application loading method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103235728B (en) | 2016-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2686673C1 (en) | Device and method of terminal control and terminal | |
CN105824659A (en) | Application program updating method and terminal equipment | |
CN105677477A (en) | Method and device for optimizing application program resources and electronic equipment | |
CN103428333B (en) | Mobile terminal, server and errors repair method | |
CN101251813A (en) | Device and method for mobile telephone system recovery | |
CN101990226A (en) | Automatic restart method, system and device for power failure | |
CN103049287A (en) | Mobile terminal and method for installing application programs of mobile terminal | |
CN106681766A (en) | Remote firmware upgrading controlling method and system | |
CN103179551A (en) | Over-the-air upgrading method and over-the-air upgrading system | |
CN103249027B (en) | The method and apparatus that a kind of terminal traffic processes | |
CN103887571A (en) | Charging mode switching method and charging mode switching device | |
CN102045449A (en) | Multi-operating system smart phone | |
CN104978209A (en) | Application updating method and application updating device | |
CN103970554A (en) | Control method for function upgrading of household appliance product | |
CN103309712A (en) | Mobile phone software upgrade method and system | |
CN107656751A (en) | User program upgrade method and device | |
CN103399795A (en) | Address book synchronizing method and device | |
CN103235728A (en) | Mounting method and device for presetting third party appliances in Android terminal | |
CN104253870A (en) | Method and device for controlling data access period | |
CN105430448A (en) | Control processing method for video player and video player client | |
CN104750516A (en) | Upgrading method for terminal equipment operating system | |
CN102622254B (en) | Television outage disposal route and system | |
CN104102498A (en) | Mobile terminal and booting method thereof | |
CN109240101B (en) | Equipment remote control method and control system | |
CN117369844A (en) | OTA upgrading method, device, equipment and storage medium |
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 |