CN108664252A - A kind of desktop starter restoration methods based on android system and system - Google Patents

A kind of desktop starter restoration methods based on android system and system Download PDF

Info

Publication number
CN108664252A
CN108664252A CN201710187750.8A CN201710187750A CN108664252A CN 108664252 A CN108664252 A CN 108664252A CN 201710187750 A CN201710187750 A CN 201710187750A CN 108664252 A CN108664252 A CN 108664252A
Authority
CN
China
Prior art keywords
desktop starter
android system
starter
desktop
installation package
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
CN201710187750.8A
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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201710187750.8A priority Critical patent/CN108664252A/en
Publication of CN108664252A publication Critical patent/CN108664252A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

It includes step that the present invention, which discloses a kind of desktop starter restoration methods based on android system and system, method,:A, when starting Android system, judge whether desktop starter carried out upgrading, if the upgrade installation package for then detecting desktop starter whether there is;If B, detecting, the upgrade installation package is not present, and deletes the CACHE DIRECTORY of upgrade installation package, and the desktop starter installation kit of solar obligation system prepackage.By detecting, whether desktop starter carried out upgrading to the present invention and upgrade installation package whether there is, and upgrade and in the absence of upgrade installation package detecting, the installation kit of solar obligation system prepackage, method through the invention solves the problems, such as can not normal activation system when desktop starter malfunctions.

Description

A kind of desktop starter restoration methods based on android system and system
Technical field
The present invention relates to Android system field more particularly to a kind of desktop starter restoration methods based on android system and System.
Background technology
Launcher is the desktop starter in Android system, and the desktop UI of Android system is referred to as Launcher. Launcher is one of the main program component in Android system, and only Launcher starts, and shows one main interface of user, It could complete the startup of whole system.In Android system, if Launcher malfunctions when starting, Android system just can not be opened normally It is dynamic, seriously affect the use of user.And the prior art can not solve the problems, such as that Launcher can not normally start.
Therefore, the existing technology needs to be improved and developed.
Invention content
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of desktops based on android system to start Device restoration methods and system.
Technical scheme is as follows:
A kind of desktop starter restoration methods based on android system, wherein including step:
A, when Android system starts, judge whether desktop starter carried out upgrading, if then detecting the liter of desktop starter Grade installation kit whether there is;
If B, detecting, the upgrade installation package is not present, and deletes the CACHE DIRECTORY of upgrade installation package, and solar obligation system The desktop starter installation kit of prepackage.
The desktop starter restoration methods based on android system, wherein the step A is specifically included:
A1, when starting Android system, judge whether desktop starter carried out upgrading, if then locking the liter of desktop starter Grade installation kit, to be detected to the upgrade installation package when starting Android system every time;
A2, the upgrade installation package for detecting desktop starter whether there is.
The desktop starter restoration methods based on android system, wherein the step B is specifically included:
If B1, detecting that the upgrade installation package is not present, the CACHE DIRECTORY of upgrade installation package is deleted;
The desktop starter installation kit that B2, solar obligation system are pre-installed, and restart desktop starter.
The desktop starter restoration methods based on android system, wherein in the step A1, if not carrying out liter Grade, then start the desktop starter of prepackage.
The desktop starter restoration methods based on android system, wherein in the step B1, if detecting described Upgrade installation package exists, then starts the desktop starter after upgrading.
A kind of desktop starter recovery system based on android system, wherein including:
Detection module, for when Android system starts, judging whether desktop starter carried out upgrading, if then detecting desktop The upgrade installation package of starter whether there is;
Recovery module deletes the CACHE DIRECTORY of installation kit after upgrading for if the installation kit after upgrading to be not detected, and forces The desktop starter installation kit of installation system prepackage.
The desktop starter recovery system based on android system, wherein the detection module specifically includes:
Lock cell, for when starting Android system, judging whether desktop starter carried out upgrading, if then locking desktop The upgrade installation package of starter, to be detected to the upgrade installation package when starting Android system every time;
Detection unit, the upgrade installation package for detecting desktop starter whether there is.
The desktop starter recovery system based on android system, wherein the recovery module specifically includes:
If deleting unit deletes the CACHE DIRECTORY of upgrade installation package for detecting that the upgrade installation package is not present;
Installation unit for the desktop starter installation kit of solar obligation system prepackage, and restarts desktop starter.
The desktop starter recovery system based on android system, wherein in the detection module, if not carrying out Upgrading, then start the desktop starter of prepackage.
The desktop starter recovery system based on android system, wherein in the recovery module, if detecting institute Upgrade installation package presence is stated, then starts the desktop starter after upgrading.
Advantageous effect:By detecting, whether desktop starter carried out upgrading to the present invention and whether upgrade installation package deposits , and upgraded and in the absence of upgrade installation package detecting, the installation kit of solar obligation system prepackage, through the invention Method solve the problems, such as desktop starter error when can not normal activation system.
Description of the drawings
Fig. 1 is a kind of flow chart of desktop starter restoration methods preferred embodiment based on android system of the present invention.
Fig. 2 is the particular flow sheet of step S1 in method shown in Fig. 1.
Fig. 3 is the particular flow sheet of step S2 in method shown in Fig. 1.
Fig. 4 is a kind of structure diagram of desktop starter recovery system preferred embodiment based on android system of the present invention.
Fig. 5 is the concrete structure block diagram of detection module in Fig. 4.
Fig. 6 is the concrete structure block diagram of recovery module in Fig. 4.
Specific implementation mode
A kind of desktop starter restoration methods based on android system of present invention offer and system, to make the mesh of the present invention , technical solution and effect it is clearer, clear, the present invention is described in more detail below.It should be appreciated that described herein Specific embodiment be only used to explain the present invention, be not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is a kind of desktop starter restoration methods preferred embodiment based on android system of the present invention Flow chart, as shown in the figure comprising step:
S1, when Android system starts, judge whether desktop starter carried out upgrading, if then detecting the liter of desktop starter Grade installation kit whether there is;
If S2, detecting that the upgrade installation package is not present, the CACHE DIRECTORY of upgrade installation package, and solar obligation system are deleted The desktop starter installation kit of prepackage.
Because the desktop starter of Android system prepackage can normally start, occur when desktop starter starts wrong Accidentally, the desktop starter usually after customer upgrade fails, or the desktop starter after upgrading is deleted by third-party application malice Caused by later, therefore, so the present invention needs to detect whether desktop starter carried out upgrading, and confirms and carried out liter After grade, detection upgrade installation package whether there is, if if being not present, deleting the CACHE DIRECTORY of upgrade installation package, forcing simultaneously The desktop starter installation kit of installation system prepackage, namely use the desktop starter after factory reset.
Specifically, as shown in Fig. 2, the step S1 can be refined as following steps:
S11, when starting Android system, judge whether desktop starter carried out upgrading, if then locking desktop starter Upgrade installation package, to be detected to the upgrade installation package when starting Android system every time;
S12, the upgrade installation package for detecting desktop starter whether there is.
Wherein, in step s 11, when starting Android system, whether detection desktop starter carried out upgrading, in user After upgrading and installing successfully, the packet name of upgrade installation package, such as " com.tcl.launcher " are detected.User is in upgrading desktop After starter, system has the mark of upgrading, such as update, so can detect whether to carry out desktop according to upgrading mark The upgrading of starter.
After the completion of upgrading, the upgrade installation package can be installed under the catalogue of/data/app.And the installation of system prepackage Packet be present in/system/app/ under catalogue under.
If it is determined that desktop starter had carried out upgrading, the upgrade installation package for locking desktop starter, lock herein are needed The catalogue of detection/data/app when referring to each starting up's Android system surely.
If it is determined that desktop starter did not carried out upgrading, then being just not necessarily to subsequent flow, system prepackage is directly initiated Desktop starter.
In the step S12, the update under the catalogue is may determine that by the catalogue of lasting detection/data/app Packet whether there is, that is, judge that the apk of upgrading whether there is in system, that is, has locked upgrade installation package, opened per subsystem When machine starts, just detects upgrade installation package and whether there is.
Further, as shown in figure 3, the step S2 can be refined as following steps:
If S21, detecting that the upgrade installation package is not present, the CACHE DIRECTORY of upgrade installation package is deleted;
The desktop starter installation kit that S22, solar obligation system are pre-installed, and restart desktop starter.
Wherein, in the step s 21, if detecting that the upgrade installation package of desktop starter is not present, such as basis Package.xml inquires the codepath of current system direction(Code path)It is upgrade installation package, but upgrade installation package It is maliciously deleted, therefore just triggers Restoration Mechanism.
<package name="com.tcl.launcher" codePath="/data/app/com.tcl.cyberui- 2.apk" nativ
<sigs count="1">
That is, detect that desktop starter had carried out upgrading, but upgrade installation package and it is not present, so needing to start extensive The system of answering a pager's call, so that user can at least use the desktop starter of prepackage.After Restoration Mechanism starts, upgrading peace is deleted first Fill the CACHE DIRECTORY of packet, such as data/data/com.tcl.launcher.
Further, in the step s 21, if detecting, the upgrade installation package is present in system, then after illustrating upgrading Desktop starter can be used normally, it is possible to the normal desktop starter started after upgrading is completed system and is started.
In step S22, the installation method of Android system is called, by force under Android system installation/system/app/ The desktop starter installation kit of system prepackage after installing successfully, restarts desktop starter, and Android system recovery is made normally to open It is dynamic, and use the desktop starter after factory reset.
The present invention also provides a kind of desktop starter recovery system preferred embodiments based on android system, as shown in figure 4, It includes:
Detection module 100, for when Android system starts, judging whether desktop starter carried out upgrading, if then detecting The upgrade installation package of desktop starter whether there is;
Recovery module 200 deletes the CACHE DIRECTORY of installation kit after upgrading for if the installation kit after upgrading to be not detected, and The desktop starter installation kit of solar obligation system prepackage.
Further, as shown in figure 5, the detection module 100 specifically includes:
Lock cell 110, for when starting Android system, judging whether desktop starter carried out upgrading, if then locking The upgrade installation package of desktop starter, to be detected to the upgrade installation package when starting Android system every time;
Detection unit 120, the upgrade installation package for detecting desktop starter whether there is.
Further, as shown in fig. 6, the recovery module 200 specifically includes:
If deleting unit 210 deletes the CACHE DIRECTORY of upgrade installation package for detecting that the upgrade installation package is not present;
Installation unit 220 for the desktop starter installation kit of solar obligation system prepackage, and restarts desktop starter.
Further, in the detection module 100, if not carrying out upgrading, start the desktop starter of prepackage.
Further, in the recovery module 200, if detecting, the upgrade installation package exists, and starts the table after upgrading Face starter.
It has been described in detail in the method for technical detail in front about above-mentioned modular unit, so it will not be repeated.
In conclusion the present invention is by detecting, whether desktop starter carried out upgrading and whether upgrade installation package deposits , and when upgrade installation package is not detected, the installation kit of solar obligation system prepackage, method through the invention solves table When the error of face starter can not normal activation system the problem of.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can With improvement or transformation based on the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention Protect range.

Claims (10)

1. a kind of desktop starter restoration methods based on android system, which is characterized in that including step:
A, when Android system starts, judge whether desktop starter carried out upgrading, if then detecting the liter of desktop starter Grade installation kit whether there is;
If B, detecting, the upgrade installation package is not present, and deletes the CACHE DIRECTORY of upgrade installation package, and solar obligation system The desktop starter installation kit of prepackage.
2. desktop starter restoration methods based on android system according to claim 1, which is characterized in that the step A is specifically included:
A1, when starting Android system, judge whether desktop starter carried out upgrading, if then locking the liter of desktop starter Grade installation kit, to be detected to the upgrade installation package when starting Android system every time;
A2, the upgrade installation package for detecting desktop starter whether there is.
3. desktop starter restoration methods based on android system according to claim 2, which is characterized in that the step B is specifically included:
If B1, detecting that the upgrade installation package is not present, the CACHE DIRECTORY of upgrade installation package is deleted;
The desktop starter installation kit that B2, solar obligation system are pre-installed, and restart desktop starter.
4. desktop starter restoration methods based on android system according to claim 2, which is characterized in that the step In A1, if not carrying out upgrading, start the desktop starter of prepackage.
5. desktop starter restoration methods based on android system according to claim 3, which is characterized in that the step In B1, if detecting, the upgrade installation package exists, and starts the desktop starter after upgrading.
6. a kind of desktop starter recovery system based on android system, which is characterized in that including:
Detection module, for when starting Android system, judging whether desktop starter carried out upgrading, if then detecting desktop The upgrade installation package of starter whether there is;
Recovery module deletes the CACHE DIRECTORY of installation kit after upgrading for if the installation kit after upgrading to be not detected, and forces The desktop starter installation kit of installation system prepackage.
7. desktop starter recovery system based on android system according to claim 6, which is characterized in that the detection Module specifically includes:
Lock cell, for when starting Android system, judging whether desktop starter carried out upgrading, if then locking desktop The upgrade installation package of starter, to be detected to the upgrade installation package when starting Android system every time;
Detection unit, the upgrade installation package for detecting desktop starter whether there is.
8. desktop starter recovery system based on android system according to claim 7, which is characterized in that the recovery Module specifically includes:
If deleting unit deletes the CACHE DIRECTORY of upgrade installation package for detecting that the upgrade installation package is not present;
Installation unit for the desktop starter installation kit of solar obligation system prepackage, and restarts desktop starter.
9. desktop starter recovery system based on android system according to claim 7, which is characterized in that the detection In module, if not carrying out upgrading, start the desktop starter of prepackage.
10. desktop starter recovery system based on android system according to claim 8, which is characterized in that described extensive In multiple module, if detecting, the upgrade installation package exists, and starts the desktop starter after upgrading.
CN201710187750.8A 2017-03-27 2017-03-27 A kind of desktop starter restoration methods based on android system and system Pending CN108664252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710187750.8A CN108664252A (en) 2017-03-27 2017-03-27 A kind of desktop starter restoration methods based on android system and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710187750.8A CN108664252A (en) 2017-03-27 2017-03-27 A kind of desktop starter restoration methods based on android system and system

Publications (1)

Publication Number Publication Date
CN108664252A true CN108664252A (en) 2018-10-16

Family

ID=63785341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710187750.8A Pending CN108664252A (en) 2017-03-27 2017-03-27 A kind of desktop starter restoration methods based on android system and system

Country Status (1)

Country Link
CN (1) CN108664252A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076122A (en) * 2021-04-16 2021-07-06 上海米哈游璃月科技有限公司 Resource file management method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2496560A (en) * 2010-08-27 2013-05-15 Ibm A method computer program and system for automatic upgrade of virtual appliances
CN104166577A (en) * 2014-08-26 2014-11-26 深圳市中兴移动通信有限公司 Method and device for upgrading system of mobile terminal
CN106095621A (en) * 2016-06-12 2016-11-09 Tcl集团股份有限公司 The restoration methods of Launcher operation exception and system in a kind of Android system
CN106155736A (en) * 2016-06-22 2016-11-23 广州优视网络科技有限公司 Software is installed and is started type detection method, device and user terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2496560A (en) * 2010-08-27 2013-05-15 Ibm A method computer program and system for automatic upgrade of virtual appliances
CN104166577A (en) * 2014-08-26 2014-11-26 深圳市中兴移动通信有限公司 Method and device for upgrading system of mobile terminal
CN106095621A (en) * 2016-06-12 2016-11-09 Tcl集团股份有限公司 The restoration methods of Launcher operation exception and system in a kind of Android system
CN106155736A (en) * 2016-06-22 2016-11-23 广州优视网络科技有限公司 Software is installed and is started type detection method, device and user terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
I_A_JUN: "判断某个APK是否已经安装", 《CSDN》 *
MENG0911: "Android获取SD卡上的APK文件,并且判断是否安装过、是否可以更新到新版本的工具类", 《CSDN》 *
棒怡情: "根据包名如何判断这个应用是否已经安装", 《CSDN》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076122A (en) * 2021-04-16 2021-07-06 上海米哈游璃月科技有限公司 Resource file management method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2017193640A1 (en) Application updating method and device
US8356209B2 (en) Self-managed processing device
WO2016124013A1 (en) Method and apparatus for dynamically implementing application function
CN103064715A (en) Remote upgrade method and system for automatic drive test systems
CN104881314A (en) Method for installing driver and driver installation device
CN103218242B (en) A kind of method of automatic renewal
CN105786538A (en) Software upgrading method and device based on Android system
WO2014146256A1 (en) Upgrade method, intelligent terminal, and upgrade system
US20220129256A1 (en) Android penetration method and device for implementing silent installation based on accessibility services
CN106095621B (en) The restoration methods and system that Launcher is operating abnormally in a kind of Android system
CN112698846B (en) Method and system for automatically installing patches in Linux system
CN107066287A (en) The method and system of ESXI virtual machine automatic deployment installation systems
CN108549550A (en) A kind of hard disk hanging method and device
TW201621647A (en) Operating system updating method
CN103019764A (en) Method and system for detecting installability of Andriod resource packages
CN108664252A (en) A kind of desktop starter restoration methods based on android system and system
EP4175207A1 (en) Method, apparatus and device for supporting tcp dynamic migration, and storage medium
WO2009079866A1 (en) Firmware upgrading process method and system of mobile terminal
CN113573344A (en) SMF session detection method based on 5G and terminal
CN104346239A (en) Method and device for recovering anomaly of application program in embedded system
CN109408133A (en) A kind of method and apparatus starting component
CN107766068A (en) Application system patch installation, device, computer equipment and storage medium
CN111061537A (en) Method, system and device for updating Tools of virtual machine and readable storage medium
CN103235728B (en) The installation method of preset third-party application and device in Android terminal
CN102752365B (en) The method and apparatus of information processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181016

RJ01 Rejection of invention patent application after publication