WO2015078166A1 - 系统应用安装包加载处理方法、装置及终端 - Google Patents

系统应用安装包加载处理方法、装置及终端 Download PDF

Info

Publication number
WO2015078166A1
WO2015078166A1 PCT/CN2014/079294 CN2014079294W WO2015078166A1 WO 2015078166 A1 WO2015078166 A1 WO 2015078166A1 CN 2014079294 W CN2014079294 W CN 2014079294W WO 2015078166 A1 WO2015078166 A1 WO 2015078166A1
Authority
WO
WIPO (PCT)
Prior art keywords
package
system application
application installation
loading
module
Prior art date
Application number
PCT/CN2014/079294
Other languages
English (en)
French (fr)
Inventor
潘浩杰
田琪星
刘小锐
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to US15/100,116 priority Critical patent/US20160378458A1/en
Publication of WO2015078166A1 publication Critical patent/WO2015078166A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading
    • 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
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/84Using snapshots, i.e. a logical point-in-time copy of the data

Definitions

  • the present invention relates to the field of communications, and in particular to a system application installation package loading processing method, apparatus, and terminal.
  • BACKGROUND With the popularization of Android Android smart phones, the development of the upper application (application, referred to as APP) is also developing rapidly, and a large number of free Android installation packages (Android Package, referred to as APK) are available for download at any time on the network. And use for installation.
  • APP application
  • APK Free Android installation packages
  • users installing and uninstalling APKs on Android smartphone terminals have become an important scene in the use of smartphones.
  • the application package management service module in the Android system is a function module specifically for the scenario.
  • the package management service (PACKAGER MANAGER SERVICE) is a JAVA layer service that is started by the system service (SYSTEM SERVER) during the system startup phase, ffljfe 'S/system/framework system /app, /data/app, /data/app-private directory APK files, the main work steps are as follows:
  • Angle analysis /system/etc/permission xml file (framework/base/data/etc/), including platform.xml and features of various hardware modules supported by the system.
  • This file is created by writeLP( ) when parsing apk. It records the permissions of the system and the name (name) of each installation package (apk). Path (codePath), flag (flags, ts, version (version), user identifier (uesrid) and other information, this information is mainly obtained through the apk AndroidManifest.xml parsing, after parsing the apk, the update information is written to this file and Save to flash, add the relevant information from the inside to the memory related list. This file is updated when there is an apk upgrade, install or delete. 5. Check whether the jars under BootClassPath, mSharedLibraries and /system/framework require dexopt, and the required ones are optimized by dexopt.
  • the packages.list records the following data: Android installation package name (pkgName), user ID (userld), debug flag (debugFlag), The data path of the package (dataPath). From the workflow of the entire Android application package management service, it can be seen that each time the application is installed or uninstalled, the name, codePath, flags, ts, version, uesrid and other information of the changed apk are updated. This information is mainly obtained through the AndroidManifest.xml parsing of the apk. After parsing the apk, the update information is written into the Package.xml and saved to the flash.
  • the related information is directly read from the memory and added to the memory related list.
  • the package.xml will be copied, Generate a backup file.
  • the data in Package.xml will be abnormal and will fail at the next boot load, which will cause the phone to fail to boot. From the feedback information on the Internet, many users have experienced the problem that the mobile phone can not be turned on after using the Android smart phone for a period of time. When the actual analysis of the faulty machine is encountered, the Package.xml data is abnormal and cannot be started normally.
  • the present invention provides a system application installation package loading processing method and apparatus, to at least solve the data abnormality in the system application installation package caused by the system application installation package copying and generating a backup file error in the related art. The problem that caused the terminal to fail to boot.
  • a system application installation package loading processing method including: renaming the system application installation package to a system application installation backup package before applying the installation package update process to the system; Whether the application installation update package is successfully loaded, wherein the system application installation update package is a system application installation package obtained after the copy version of the system application installation backup package is updated; if the judgment result is no The system application installation backup package is used for loading processing.
  • the method further includes: determining whether the loading of the system application installation backup package is successful; and if the determination result is negative, acquiring the system device for the first time loading
  • the system application installation initial package when the system device is first loaded is: the system application installation initial package generated when the system device is first loaded by the factory is renamed to the system application installation initial package.
  • the method further includes: determining whether the loading of the merge package according to the system application is successful; and if the determination result is negative, the application generating system installed by the scanning system The application installs the scan package; installs the scan package according to the system application to perform the loading process.
  • the method further includes: determining whether the loading of the scan package is successful according to the system application installation; and if the determination result is negative, generating the system device when the first load is performed The system application installs the initial package for loading processing.
  • a system application installation package loading processing apparatus including: a renaming module configured to rename the system application installation package to a system application before applying a package update process to the system
  • the first judging module is configured to determine whether the installation of the update package by the system application is successfully loaded, wherein the system application installation update package is obtained by updating the copy version of the system application installation backup package after copying.
  • the system application installation package; the first loading module is configured to perform the loading process by using the system application installation backup package if the determination result of the first determining module is negative.
  • the system application installation package loading processing device further includes: a second determining module, configured to determine whether the loading of the backup application package by the system application is successful; and an obtaining module, configured to be a judgment result of the second determining module If not, obtain the system application installation initial package when the system device is first loaded from the factory and the difference between the system application installation package and the system application installation initial package each time the system application installation package is updated; the merge module is set to The system application installation initial package and the difference portion are merged into a system application installation merge package; and the second load module is configured to perform load processing according to the system application installation merge package.
  • a second determining module configured to determine whether the loading of the backup application package by the system application is successful
  • an obtaining module configured to be a judgment result of the second determining module If not, obtain the system application installation initial package when the system device is first loaded from the factory and the difference between the system application installation package and the system application installation initial package each time the system application installation package is updated
  • the merge module is set to The system application installation initial package and the
  • the obtaining module comprises: a renaming unit, configured to rename the system application installation initial package generated when the system device is first loaded by the factory to the system application installation initial package.
  • the system application installation package loading processing device further includes: a third determining module, configured to determine whether the loading of the merge package according to the system application is successful; and the generating module is set to a judgment result of the third determining module If not, the application installation scan package is generated by the application installed by the scanning system; and the third loading module is set to perform loading processing according to the system application installation scan package.
  • the system application installation package loading processing device further includes: a fourth determining module, configured to determine whether the loading of the scan packet is successful according to the system application installation; and the fourth loading module is configured to adopt the method of determining whether the result is negative,
  • the system application installation initial package generated when the system device is first loaded is loaded for processing.
  • a terminal comprising the system application installation package loading processing apparatus of any of the above.
  • the system application installation package is renamed to the system application installation backup package before the installation package update process is applied to the system; determining whether the system application installation update package is successfully loaded, wherein the system application installation update package The system application installation package obtained after the copy of the copy of the system application installation backup package is updated; if the judgment result is no, the system application installation backup package is used for loading processing, and the related technology is solved.
  • the system application installation package is copied to generate a backup file, the data in the system application installation package is abnormal, which causes the terminal to fail to boot, thereby improving the system stability and user experience.
  • FIG. 1 is a flowchart of a system application installation package loading processing method according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a system application installation package loading processing apparatus according to an embodiment of the present invention
  • FIG. 4 is a block diagram showing a structural block diagram of a system application installation package loading processing apparatus according to an embodiment of the present invention
  • FIG. 4 is a block diagram showing a structure of an acquisition module 34 in a preferred configuration of a system application installation package loading processing apparatus according to an embodiment of the present invention
  • FIG. 6 is a block diagram of a preferred structure of a system application installation package loading processing apparatus according to an embodiment of the present invention
  • FIG. 7 is a block diagram of a preferred embodiment of a system application installation package loading processing apparatus according to an embodiment of the present invention
  • FIG. 8 is a flowchart of data generation of a fault tolerance method for Android application package management according to an embodiment of the present invention
  • FIG. 9 is a flow chart of data usage of a fault tolerance method for Android application package management according to an embodiment of the present invention
  • FIG. 1 is a flowchart of a system application installation package loading processing method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps: S102. Before applying the installation package update process to the system, rename the system application installation package to a system application installation backup package.
  • Step S104 determining whether the system application installation update package is successfully loaded by using the system application installation update package, wherein the system application installation update package is a system application installation package obtained by updating the copy version after the system application installation backup package is copied; Step S106, determining the result If not, use the system application installation backup package for loading processing.
  • Step S106 determining the result If not, use the system application installation backup package for loading processing.
  • the system application installation package when the system application installation package is copied to generate a backup file, the data in the system application installation package is abnormal, which causes the terminal to fail to boot, thereby improving system stability and user experience.
  • the system application installation initial package when the system device is first loaded and the difference between the system application installation package and the system application installation initial package are updated; the system application installation initial package and the difference part are merged into The system application installs the merge package; according to the system application installation merge package for loading processing.
  • the system application installation and consolidation package is used as a backup for the system application installation backup package, which can ensure the normal use of the terminal.
  • the system application installation initial package when the system device is first loaded can be used in various manners. For example, the direct copy method or the more secure method can be adopted. For example, the following processing manner can be adopted: Rename the system application installation initial package generated when the system device is shipped for the first time to the system application installation initial package, that is, the system application installation initial package is generated when the terminal is first turned on or resets the factory settings for the first time. The most original system application installation package.
  • the method further includes: determining to install the scan according to the system application Whether the packet loading is successful; if the judgment result is no, the system application installation initial package generated when the system device is first loaded by the factory is loaded and processed. Using this method will restore the terminal to the factory setting stage. Although all user added application data will be lost, the mobile phone can be guaranteed to be available, and it is not necessary to upgrade the version after the after-sales network to improve the efficiency of the terminal to resume normal work.
  • a system application installation package loading processing device is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again.
  • the term "module" may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and conceivable.
  • 2 is a structural block diagram of a system application installation package loading processing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes a rename module 22, a first determining module 24, and a first loading module 26. The structural block diagram of the system application installation package loading processing device will be described below.
  • the renaming module 22 is configured to rename the system application installation package to the system application installation backup package before applying the installation package update process to the system;
  • the first determining module 24 is connected to the renaming module 22, and is configured to determine Whether the system application installation update package is successfully loaded, wherein the system application installation update package is a system application installation package obtained by updating the copied copy version of the system application installation backup package;
  • the first loading module 26 is connected to the first The determining module 24 is configured to perform the loading process by using the system application installation backup package if the determination result of the first determining module 24 is negative.
  • 3 is a block diagram of a preferred structure of a system application installation package loading processing apparatus according to an embodiment of the present invention. As shown in FIG.
  • a preferred structural block diagram of the system application installation package loading processing apparatus includes all the modules shown in FIG.
  • the second judging module 32, the obtaining module 34, the merging module 36, and the second loading module 38 are further described below, which is a block diagram of a preferred structure of the system application installation package loading processing device.
  • the second judging module 32 is connected to the first loading module 26, and is configured to determine whether the installation of the backup package is successful by using the system application;
  • the obtaining module 34 is connected to the second judging module 32, and is configured to be in the second judging module.
  • the package is loaded.
  • 4 is a block diagram of a structure of an acquisition module 34 in a preferred structure of a system application installation package loading processing apparatus according to an embodiment of the present invention. As shown in FIG. 4, the obtaining module 34 includes a renaming unit 42. Module 34 is described.
  • the renaming unit 42 is configured to rename the system application installation initial package generated when the system device is first loaded by the factory to the system application installation initial package.
  • 5 is a block diagram of a preferred structure of a system application installation package loading processing apparatus according to an embodiment of the present invention. As shown in FIG. 5, a preferred structural block diagram of the system application installation package loading processing apparatus includes all the modules shown in FIG. In addition, the third determining module 52, the generating module 54 and the third loading module 56 are further included. The preferred block diagram 2 of the system application installation package loading processing device will be described below.
  • the third determining module 52 is connected to the second loading module 38, and is configured to determine whether the loading of the merged package is successful according to the system application; the generating module 54 is connected to the third determining module 52, and is configured to be in the third determining module. If the determination result of 52 is no, the application generation system installation scan package is installed by the scan system; the third loading module 56 is connected to the generation module 54 and is configured to perform the loading process according to the system application installation scan package.
  • 6 is a block diagram 3 of a preferred structure of a system application installation package loading processing apparatus according to an embodiment of the present invention. As shown in FIG. 6, a preferred structural block diagram of the system application installation package loading processing apparatus includes all the modules shown in FIG.
  • FIG. 7 is a structural block diagram of a terminal 72 according to an embodiment of the present invention. As shown in FIG. 7, the terminal 72 includes any of the above system application installation package loading processing devices 74.
  • a system application installation is proposed.
  • the packet loading processing method and apparatus solve the above problems existing in the related art.
  • the following is an example of a mobile phone of the Android system.
  • a fault tolerance method and system for the Android application package management are proposed, for the Package.xml.
  • the entire operation process has added a set of cross-multi-dimensional fault-tolerant protection mechanism, so that the Package.xml saved on the mobile phone Flash can guarantee the normal startup of the mobile phone regardless of the state.
  • the next time you boot use the package.xml that comes with the system to start the memory load. If the system determines that the package.xml parsing is abnormal and the system fails to boot properly, use Package_BackUP.xml to start it, and ensure that the phone can boot normally.
  • the fault-tolerant mechanism is a fault-tolerant method for Android application package management and the first-dimensional fault-tolerant protection measure of the system. The addition of this measure can greatly reduce the probability that the system cannot be booted normally due to frequent reading of Package.xml errors.
  • a fault-tolerant method for optimal Android application package management is also proposed. When the mobile phone is first booted or restored to the factory settings for the first time, the generated Package.xml is backed up and renamed to Packagejnit.
  • a fault tolerance scheme for Android application package management is also provided in this embodiment, that is, when the above fault tolerance mechanism still does not work, the fault tolerance mechanism enters a higher latitude.
  • directly delete Package_BackUP.xml and Package.xml let the system re-scan all installed applications, and re-generate a new package according to each apk name, code Path, flags, ts, version, user ID and other information.
  • Xml (with the above system application installation scan package), the probability of triggering such a scenario is very small. Because of the need to rescan all installed application information, the boot time of the mobile phone will increase in this scenario.
  • FIG. 8 is a flowchart of data generation of a fault tolerance method for Android application package management according to an embodiment of the present invention. As shown in FIG. 8, the process includes the following steps: Step S802: The terminal burns the version for the first time or is restored. The factory setting is turned on. In this scenario, the Data area is empty.
  • Step S804 scanning the APK file in the /system/framework, /system/app, /data/app, /data/app-private directory, and obtaining the system attribute by parsing the Android Manifest.xml of the APK, the package name of each APK , code path, tag, version number, etc.
  • Step S806 generating the first package.xml file of the system by using the parsed information.
  • step S808 the first Package.xml file is backed up, copied to the data area, and renamed to Package_init.xml for use in the case of an error.
  • step S810 during the running of the mobile phone, it is determined whether an APK has been upgraded, installed, uninstalled, etc., if not, the process ends. If so, go to S812.
  • step S812 when the APK is upgraded, installed, uninstalled, etc., the package.xml needs to be updated. Before the update, the Package.xml in the original Data partition is copied and renamed to P ackage b ackUP.xml.
  • step S814 the newly added content is written into the Package_ADD.xml to record the newly added APK information.
  • step S816 the data generation process ends.
  • Step S902 The terminal is powered on.
  • Step S904 the system reads the Package.xml and loads the application installation information.
  • the system determines whether an abnormality occurs. If it is normal, the Package.xml is directly used to boot, and the fault tolerance mechanism is not needed.
  • step S906 when the Package.xml is not working properly, the system uses the Package_BackUP.xml to boot.
  • step S908 the system determines whether the power can be normally turned on.
  • step S910 the system reads Packagejnit.xml and Package_ADD.xml, merges the two, merges them into a new package.xml, and uses the configuration to boot.
  • step S912 it is determined whether the power can be normally turned on.
  • step S914 the package.xml is deleted, and the system re-traverses all the APK programs, extracts related information, and regenerates the Package.xml to boot. Since all the APKs need to be traversed again, the system will have a process for a while.
  • step S916 it is determined whether the power can be normally turned on.
  • step S918 if the booting cannot be started normally, the packagejnit.xml is directly used to boot, and all the user added application data is lost, but under the extreme conditions, the mobile phone is in a usable state, and there is no need to upgrade the version after the after-sales network.
  • step S920 the boot process ends.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • a system application installation package loading processing method, apparatus, and terminal provided by an embodiment of the present invention have the following beneficial effects: Resolving an error in the related art when a system application installation package is copied to generate a backup file The data in the system application installation package is abnormal, which causes the terminal to fail to boot, thereby improving the system stability and user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

本发明提供了一种系统应用安装包加载处理方法、装置及终端,该方法包括:采用的在对系统应用安装包更新处理之前,将该系统应用安装包重命名为系统应用安装备份包;判断采用系统应用安装更新包是否加载成功,其中,系统应用安装更新包为对系统应用安装备份包进行拷贝后的拷贝版本进行更新后获取的系统应用安装包;在判断结果为否的情况下,采用上述系统应用安装备份包进行加载处理,通过本发明,解决了相关技术中存在的当系统应用安装包进行拷贝生成备份文件出错时,造成的系统应用安装包中的数据异常,导致终端无法开机的问题,进而达到了提高系统稳定性和用户体验的效果。

Description

系统应用安装包加载处理方法、 装置及终端 技术领域 本发明涉及通信领域, 具体而言, 涉及一种系统应用安装包加载处理方法、 装置 及终端。 背景技术 随着安卓 Android智能机的普及,与之配套的上层应用(application,简称为 APP) 开发也发展迅猛, 网络上随时会提供海量的免费安卓安装包 (Android Package, 简称 为 APK) 进行下载和安装使用。 在此背景下, 用户在 Android智能手机终端上安装和 卸载 APK已经成为智能手机使用中的一个重要场景。 Android系统中的应用程序包管 理服务模块, 就是专门针对该场景的功能模块, 包管理服务(PACKAGER MANAGER SERVICE) 是在系统启动阶段由系统服务 (SYSTEM SERVER) 启动的一个 JAVA层 月艮务, ffljfe' S/system/framework system /app ,/data/app,/data/app-private目录下的 APK 文件, 主要工作步骤如下:
1.建立 java层的 installer与 c层的 installd的套接字 socket联接, 使得在上层的安 装 (install), 移除 (remove), 优化 (dexopt) 等功能最终由 installd在底层实现。
2.建立包控制 (PackageHandler) 消息环, 用于处理外部的 apk安装请求消息, 如 adb install, packageinstaller安装 apk时会发送消息。
3.角牟析 /system/etc/permission 下 xml 文件 ( framework/base/data/etc/ ) , 包括 platform.xml和系统支持的各种硬件模块的 feature。 ( 1 ) 建立底层用户标识符 (user ids) 和群组标识符 (group ids) 同上层许可
(permissions) 之间的映射; 可以指定一个权限与几个组 ID对应。 当一个 APK被授 予这个权限时, 它也同时属于这几个组;
(2)给一些底层用户分配权限, 如给壳 (shell)授予各种 permission权限; 把一 个权限赋予一个用户身份证明(User Identification,简称为 UID),当进程使用这个 UID 运行时, 就具备了这个权限;
(3 ) 库 (library), 系统增加的一些应用需要链接 (link) 的扩展 jar库; (4) 特征 (feature), 系统每增加一个硬件, 都要添加相应的 feature.将解析结果 方文入 mSystemPermissions,mSharedLibraries, mSettings.mPermissions,mAvailableFeatures 等几个集合中供系统查询和权限配置使用。
4.检查 /data/system/packages.xml是否存在,这个文件是在解析 apk时由 writeLP ( ) 创建的, 里面记录了系统的 permissions, 以及每个安装包 (apk) 的名称 (name), 代 码路径(codePath), 标识(flags), ts, 版本(version), 用户标识符 (uesrid)等信息, 这些信息主要通过 apk的 AndroidManifest.xml解析获取, 解析完 apk后将更新信息写 入这个文件并保存到 flash,下次开机直接从里面读取相关信息添加到内存相关列表中。 当有 apk升级, 安装或删除时会更新这个文件。 5.检查 BootClassPath, mSharedLibraries 及 /system/framework下的 jar是否需要 dexopt, 需要的则通过 dexopt进行优化。
6. 启 动 AppDirOb server 线 禾呈 监 测 / system/framework, /system /app, /data/app,/data/app-private 目录的事件,主要监听增添 (add) 和移除 (remove) 事件。 对于目录监听底层通过通报(inotify)机制实现, inotify是一种文件系统的变化通知机 制, 如文件增加、 删除 等事件可以立刻让用户态得知,它为用户态监视文件系统的变 化提供了强大的支持。 当有增添事件(add event)时调用 scanPackageLI (File , int ,int) 处理; 当有移除事件 (remove event) 时调用 removePackageLI ( ) 处理。
7.对于以上几个目录下的 apk 逐个解析, 主要是解析每个 apk 的 AndroidMa-nifest.xml文件, 处理 asset/res等资源文件, 建立起每个 apk的配置结构信 息, 并将每个 apk的配置信息添加到全局列表进行管理。 调用 installer.install ( ) 进行 安装工作,检查 apk里的 dex文件是否需要再优化,如果需要优化则通过辅助工具 dexopt 进行优化处理; 将解析出的组件 (componet) 添加到 pkg的对应列表里; 对 apk进行 签名和证书校验,进行完整性验证。
8.将解析的每个 apk 的信息保存到 packages.xml 和 packages.list 文件里, packages.list记录了如下数据: 安卓安装包名称 (pkgName), 用户 ID (userld), 调试 标记 (debugFlag), 包的数据路径 (dataPath)。 从整个 Android应用程序包管理服务的工作流程可以看出, 在每次进行应用安装 或者卸载时, 均会对每个发生变化 apk的 name, codePath, flags, ts,version,uesrid等信息 进行更新, 这些信息主要通过 apk的 AndroidManifest.xml解析获取, 解析完 apk后将 更新信息写入 Package.xml并保存到 flash, 下次开机直接从里面读取相关信息添加到 内存相关列表中。 在应用程序安装或卸载过程中, 会对 Package.xml进行拷贝, 重新 生成备份文件。 在此过程中, 如果任何一个环节出错, 尤其是在拷贝过程中产生数据 丢失, 将会导致 Package.xml 中的数据异常, 在下次开机加载时失败, 从而会引起手 机无法开机。 从网上反馈的信息看, 有不少用户在使用 Android智能手机一段时间后, 出现了手机无法开机的问题, 实际分析故障机时也多次遇到, Package.xml数据异常导 致无法正常开机, 在此种情况下, 只能到售后网点重新烧录手机软件版本才能恢复, 但是带来的用户数据丢失时非常严重的问题。 发明内容 本发明提供了一种系统应用安装包加载处理方法及装置, 以至少解决相关技术中 存在的当系统应用安装包进行拷贝生成备份文件出错时, 造成的系统应用安装包中的 数据异常, 导致终端无法开机的问题。 根据本发明的一个方面, 提供了一种系统应用安装包加载处理方法, 包括: 在对 系统应用安装包更新处理之前,将所述系统应用安装包重命名为系统应用安装备份包; 判断采用系统应用安装更新包是否加载成功, 其中, 所述系统应用安装更新包为对所 述系统应用安装备份包进行拷贝后的拷贝版本进行更新后获取的系统应用安装包; 在 判断结果为否的情况下, 采用所述系统应用安装备份包进行加载处理。 优选地, 在采用所述系统应用安装备份包进行加载处理之后, 还包括: 判断采用 所述系统应用安装备份包加载是否成功; 在判断结果为否的情况下, 获取系统设备出 厂第一次加载时的系统应用安装初始包和对系统应用安装包每次更新时与所述系统应 用安装初始包所存在的差异部分; 将所述系统应用安装初始包和所述差异部分合并为 系统应用安装合并包; 依据所述系统应用安装合并包进行加载处理。 优选地, 获取系统设备出厂第一次加载时的所述系统应用安装初始包包括: 将系 统设备出厂第一次加载时生成的系统应用安装初始包重命名为所述系统应用安装初始 包。 优选地, 在依据所述系统应用安装合并包进行加载处理之后, 还包括: 判断依据 所述系统应用安装合并包加载是否成功; 在判断结果为否的情况下, 通过扫描系统安 装的应用生成系统应用安装扫描包; 依据所述系统应用安装扫描包进行加载处理。 优选地, 在依据所述系统应用安装扫描包进行加载处理之后, 还包括: 判断依据 系统应用安装扫描包加载是否成功; 在判断结果为否的情况下, 采用系统设备出厂第 一次加载时生成的系统应用安装初始包进行加载处理。 根据本发明的另一方面, 提供了一种系统应用安装包加载处理装置, 包括: 重命 名模块, 设置为在对系统应用安装包更新处理之前, 将所述系统应用安装包重命名为 系统应用安装备份包; 第一判断模块, 设置为判断采用系统应用安装更新包是否加载 成功, 其中, 所述系统应用安装更新包为对所述系统应用安装备份包进行拷贝后的拷 贝版本进行更新后获取的系统应用安装包; 第一加载模块, 设置为在所述第一判断模 块的判断结果为否的情况下, 采用所述系统应用安装备份包进行加载处理。 优选地, 所述系统应用安装包加载处理装置还包括: 第二判断模块, 设置为判断 采用所述系统应用安装备份包加载是否成功; 获取模块, 设置为在所述第二判断模块 的判断结果为否的情况下, 获取系统设备出厂第一次加载时的系统应用安装初始包和 对系统应用安装包每次更新时与所述系统应用安装初始包所存在的差异部分; 合并模 块, 设置为将所述系统应用安装初始包和所述差异部分合并为系统应用安装合并包; 第二加载模块, 设置为依据所述系统应用安装合并包进行加载处理。 优选地, 所述获取模块包括: 重命名单元, 设置为将系统设备出厂第一次加载时 生成的系统应用安装初始包重命名为所述系统应用安装初始包。 优选地, 所述系统应用安装包加载处理装置还包括: 第三判断模块, 设置为判断 依据所述系统应用安装合并包加载是否成功; 生成模块, 设置为在所述第三判断模块 的判断结果为否的情况下, 通过扫描系统安装的应用生成系统应用安装扫描包; 第三 加载模块, 设置为依据所述系统应用安装扫描包进行加载处理。 优选地, 所述系统应用安装包加载处理装置还包括: 第四判断模块, 设置为判断 依据系统应用安装扫描包加载是否成功; 第四加载模块, 设置为在判断结果为否的情 况下, 采用系统设备出厂第一次加载时生成的系统应用安装初始包进行加载处理。 根据本发明的再一方面, 提供了一种终端, 包括上述任一项所述系统应用安装包 加载处理装置。 通过本发明, 在对系统应用安装包更新处理之前, 将所述系统应用安装包重命名 为系统应用安装备份包; 判断采用系统应用安装更新包是否加载成功, 其中, 所述系 统应用安装更新包为对所述系统应用安装备份包进行拷贝后的拷贝版本进行更新后获 取的系统应用安装包; 在判断结果为否的情况下, 采用所述系统应用安装备份包进行 加载处理,解决了相关技术中存在的当系统应用安装包进行拷贝生成备份文件出错时, 造成的系统应用安装包中的数据异常, 导致终端无法开机的问题, 进而达到了提高了 系统稳定性和用户体验的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例的系统应用安装包加载处理方法的流程图; 图 2是根据本发明实施例的系统应用安装包加载处理装置的结构框图; 图 3是根据本发明实施例的系统应用安装包加载处理装置的优选结构框图一; 图 4是根据本发明实施例的系统应用安装包加载处理装置的优选结构框图一中获 取模块 34的结构框图; 图 5是根据本发明实施例的系统应用安装包加载处理装置的优选结构框图二; 图 6是根据本发明实施例的系统应用安装包加载处理装置的优选结构框图三; 图 7是根据本发明实施例的终端 72的结构框图; 图 8是根据本发明实施例的 Android应用程序包管理的容错方法的数据生成流程 图; 图 9是根据本发明实施例的 Android应用程序包管理的容错方法的数据使用的流 程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 在本实施例中提供了一种系统应用安装包加载处理方法, 图 1是根据本发明实施 例的系统应用安装包加载处理方法的流程图, 如图 1所示, 该流程包括如下步骤: 步骤 S102, 在对系统应用安装包更新处理之前, 将该系统应用安装包重命名为系 统应用安装备份包; 步骤 S104, 判断采用系统应用安装更新包是否加载成功, 其中, 系统应用安装更 新包为对系统应用安装备份包进行拷贝后的拷贝版本进行更新后获取的系统应用安装 包; 步骤 S106,在判断结果为否的情况下,采用该系统应用安装备份包进行加载处理。 通过上述步骤, 在对系统应用安装包更新处理之前, 将该系统应用安装包重命名 为系统应用安装备份包, 然后对该系统应用安装备份包进行拷贝, 再对拷贝的系统应 用安装备份包进行更新, 当系统应用更新的系统应用安装包加载失败时, 采用系统应 用安装备份包进行加载处理, 由于系统应用安装备份包不是经过拷贝后生成的, 因而 有效地避免了备份拷贝出错的问题, 解决了相关技术中存在的当系统应用安装包进行 拷贝生成备份文件出错时, 造成的系统应用安装包中的数据异常, 导致终端无法开机 的问题, 提高了系统稳定性和用户体验。 为了较好地实现上述处理方式的容错机制, 可以在采用上述系统应用安装备份包 进行加载处理之后, 还可以判断采用上述系统应用安装备份包加载是否成功; 在判断 结果为否的情况下, 获取系统设备出厂第一次加载时的系统应用安装初始包和对系统 应用安装包每次更新时与该系统应用安装初始包所存在的差异部分; 将该系统应用安 装初始包和上述差异部分合并为系统应用安装合并包; 依据该系统应用安装合并包进 行加载处理。 这样可以保证, 在系统应用安装备份包加载失败时维持终端的正常开机 和正常工作, 系统应用安装合并包作为系统应用安装备份包的替补, 可以很好的保证 终端的正常使用。 其中,获取系统设备出厂第一次加载时的系统应用安装初始包可以采用多种方式, 例如, 可以采用直接拷贝的方式, 也可以采用较为安全的方式, 例如, 可以采用以下 处理方式来实现: 将系统设备出厂第一次加载时生成的系统应用安装初始包重命名为 系统应用安装初始包, 即该系统应用安装初始包是终端出厂第一次开机或者恢复出厂 设置第一次开机时生成的最原始的系统应用安装包。 为了实现更多维度地容错, 在依据上述系统应用安装合并包进行加载处理之后, 还可以: 判断依据该系统应用安装合并包加载是否成功; 在判断结果为否的情况下, 通过扫描系统安装的应用生成系统应用安装扫描包; 依据该系统应用安装扫描包进行 加载处理。 这种场景触发的概率很小, 但是对于解决终端无法正常开机, 无法正常工 作的问题具有很好的效果, 依据重新生成的系统应用安装扫描包能够实现一个更高纬 度的容错机制。 在上述机制均无法实现终端的开机时, 为了保证用户的正常使用, 较佳地, 还可 以采用以下处理: 在依据上述系统应用安装扫描包进行加载处理之后, 还包括: 判断 依据系统应用安装扫描包加载是否成功; 在判断结果为否的情况下, 采用系统设备出 厂第一次加载时生成的系统应用安装初始包进行加载处理。 使用该方法会使终端恢复 到出厂设置的阶段, 虽然会丢失所有的用户新增应用数据, 但是可以保证手机处于可 用状态, 无需到售后网点升级版本, 提高终端恢复正常工作的效率。 在本实施例中还提供了一种系统应用安装包加载处理装置, 该装置用于实现上述 实施例及优选实施方式, 已经进行过说明的不再赘述。 如以下所使用的, 术语"模块" 可以实现预定功能的软件和 /或硬件的组合。尽管以下实施例所描述的装置较佳地以软 件来实现, 但是硬件, 或者软件和硬件的组合的实现也是可能并被构想的。 图 2是根据本发明实施例的系统应用安装包加载处理装置的结构框图, 如图 2所 示, 该装置包括重命名模块 22、 第一判断模块 24和第一加载模块 26。 下面对该系统 应用安装包加载处理装置的结构框图进行说明。 重命名模块 22, 设置为在对系统应用安装包更新处理之前, 将该系统应用安装包 重命名为系统应用安装备份包; 第一判断模块 24, 连接至上述重命名模块 22, 设置为 判断采用系统应用安装更新包是否加载成功, 其中, 系统应用安装更新包为对系统应 用安装备份包进行拷贝后的拷贝版本进行更新后获取的系统应用安装包; 第一加载模 块 26, 连接至上述第一判断模块 24, 设置为在上述第一判断模块 24的判断结果为否 的情况下, 采用上述系统应用安装备份包进行加载处理。 图 3是根据本发明实施例的系统应用安装包加载处理装置的优选结构框图一, 如 图 3所示, 该系统应用安装包加载处理装置的优选结构框图一除包括图 3所示的所有 模块外, 还包括: 第二判断模块 32、 获取模块 34、 合并模块 36和第二加载模块 38, 下面对该系统应用安装包加载处理装置的优选结构框图一进行说明。 第二判断模块 32,连接至上述第一加载模块 26,设置为判断采用上述系统应用安 装备份包加载是否成功; 获取模块 34, 连接至上述第二判断模块 32, 设置为在上述第 二判断模块的判断结果为否的情况下, 获取系统设备出厂第一次加载时的系统应用安 装初始包和对系统应用安装包每次更新时与该系统应用安装初始包所存在的差异部 分; 合并模块 36, 连接至上述获取模块 34, 设置为将上述系统应用安装初始包和上述 差异部分合并为系统应用安装合并包; 第二加载模块 38, 连接至上述合并模块 36, 设 置为依据上述系统应用安装合并包进行加载处理。 图 4是根据本发明实施例的系统应用安装包加载处理装置的优选结构框图一中获 取模块 34的结构框图, 如图 4所示, 该获取模块 34包括重命名单元 42, 下面对该获 取模块 34进行说明。 重命名单元 42, 设置为将系统设备出厂第一次加载时生成的系统应用安装初始包 重命名为系统应用安装初始包。 图 5是根据本发明实施例的系统应用安装包加载处理装置的优选结构框图二, 如 图 5所示, 该系统应用安装包加载处理装置的优选结构框图二除包括图 4所示的所有 模块外, 还包括: 第三判断模块 52, 生成模块 54和第三加载模块 56。 下面对该系统 应用安装包加载处理装置的优选结构框图二进行说明。 第三判断模块 52,连接至上述第二加载模块 38,设置为判断依据上述系统应用安 装合并包加载是否成功; 生成模块 54, 连接至上述第三判断模块 52, 设置为在该第三 判断模块 52的判断结果为否的情况下,通过扫描系统安装的应用生成系统应用安装扫 描包; 第三加载模块 56, 连接至上述生成模块 54, 设置为依据上述系统应用安装扫描 包进行加载处理。 图 6是根据本发明实施例的系统应用安装包加载处理装置的优选结构框图三, 如 图 6所示, 该系统应用安装包加载处理装置的优选结构框图三除包括图 5所示的所有 模块外, 还包括第四判断模块 62和第四加载模块 64, 下面对该系统应用安装包加载 处理装置的优选结构框图三进行说明。 第四判断模块 62,连接至上述第三加载模块 56,设置为判断依据系统应用安装扫 描包加载是否成功; 第四加载模块 64, 连接至上述第四判断模块 62, 设置为在判断结 果为否的情况下, 采用系统设备出厂第一次加载时生成的系统应用安装初始包进行加 载处理。 图 7是根据本发明实施例的终端 72的结构框图, 如图 7所示, 该终端 72包括上 述任一项系统应用安装包加载处理装置 74。 针对相关技术中存在的当系统应用安装包进行拷贝生成备份文件出错时, 会造成 系统应用安装包中的数据异常, 导致终端无法开机的问题, 在本实施例中, 提出了一 种系统应用安装包加载处理方法和装置以解决相关技术中存在的上述问题。 下面以 Android系统的手机为例进行说明。 为了解决由于在多次读写 Package.xml 中导致的数据异常, 从而引起手机无法开 机的问题, 在本实施例中, 提出了一种 Android应用程序包管理的容错方法及系统, 针对 Package.xml 的整个操作流程新增了一套交叉多维度的容错保护机制, 使手机 Flash上保存的 Package.xml不论处于什么状态, 均能保证手机能正常开机使用。 在每 次 APK升级、 安装或删除, 需要对 Package.xml进行更新时, 将原有的 Package.xml (即上述系统应用安装包) 进行重命名为 Package_BackUP.xml (即上述系统应用安装 备份包), 下次开机时, 先使用系统自带的 Package.xml进行内存加载启动, 如果系统 判断 Package.xml解析异常, 导致系统无法正常开机, 则使用 Package_BackUP.xml进 行启动, 确保手机能正常开机。 如果自带的 Package.xml 能正常使用, 那么在开机成 功后就删除 Package—BackUP.xml, 等到下次有 APK升级、 安装或删除时再次进行备 份。该容错机制是 Android应用程序包管理的容错方法及系统的第一维容错保护措施, 该措施的加入, 可以大大降低由于频繁读取 Package.xml 出错, 导致系统无法正常开 机的概率。 在本实施例还提出了一种优选的 Android应用程序包管理的容错方法, 在手机出 厂第一次开机或者恢复出厂设置第一次开机时, 将生成的 Package.xml进行备份, 重 命名为 Packagejnit.xml (同上述系统应用安装初始包), 作为原始文件保存, 该文件 一直存在于 data/system/下, 开机成功后也不进行删除。 每次 APK升级、 安装或删除, 对 Package.xml进行更新时, 将更新内容单独存放一个文件 Package_Add.xml (同上述 差异部分), 此文件也一直存在于 /data/system/下, 每次随系统的 Package.xml更新而更 新, 记录下所有与出厂时自带应用程序的差异。 当 Package—BackUP.xml失效时, 启动 此场景下的容错机制, 将 Package_Add.xml和 Package_Init.xml进行混合, 生成新的 Package.xml (同上述系统应用安装合并包) 供系统使用。 为了实现系统应用安装包的更高纬度的容错,在本实施例中还提供了一种 Android 应用程序包管理的容错方案, 即当上述容错机制仍然不起作用时, 进入更高纬度的容 错机制中, 直接将 Package_BackUP.xml与 Package.xml删除, 让系统重新全部扫描已 经安装的应用,重新根据每个 apk的 name, code Path , flags, ts, version, user ID等信息, 生成新的 Package.xml (同上述系统应用安装扫描包), 此种场景触发的概率已经非常 小, 由于需要重新扫描已安装的所有应用信息,在此种场景下手机的开机时间会增加。 当上述容错机制仍然不起作用时, 在本实施例中还提出了一种 Android应用程序 包管理的容错方案,直接使用 Packagejnit.xml作为默认配置文件启用,此时手机恢复 到出厂设置的阶段。 下面结合附图对本发明优选实施方式的 Android应用程序包管理的容错方案进行 说明。 图 8是根据本发明实施例的 Android应用程序包管理的容错方法的数据生成流程 图, 如图 8所示, 该流程包括以下步骤: 步骤 S802, 终端烧录完版本第一次开机或者是恢复出厂设置开机, 在此场景下, 数据 (Data) 区为空。 步骤 S804, 扫描 /system/framework,/system/app, /data/app, /data/app-private目录下 的 APK文件, 通过对 APK的 Android Manifest.xml 解析获取系统属性, 每个 APK的 包名, 代码路径, 标记, 版本号等信息。 步骤 S806, 通过解析出的信息, 生成系统第一份 Package.xml文件。 步骤 S808, 将第一份 Package.xml文件进行备份, 拷贝到 data区下, 重命名为 Package_init.xml, 用于系统在出错情况下使用。 步骤 S810, 在手机运行过程中, 判断是否有 APK进行了升级, 安装, 卸载等操 作, 如果没有, 该流程结束。 如果有, 进入 S812。 步骤 S812, 在 APK进行了升级, 安装, 卸载等操作时, 需要对 Package.xml进行 更新, 在更新前, 将原来 Data 分区中的 Package.xml 进行拷贝, 重命名为 P ackage b ackUP. xml。 步骤 S814,将新增的内容写入 Package—ADD.xml中,用以记录新增的 APK信息。 步骤 S816, 数据生成过程结束。 图 9是根据本发明实施例的 Android应用程序包管理的容错方法的数据使用的流 程图。 如图 9所示, 该流程包括以下步骤: 步骤 S902, 终端开机。 步骤 S904, 系统读取 Package.xml, 加载应用安装信息, 在此过程中, 系统判定 是否出现异常, 如果正常, 直接使用 Package.xml开机, 无需使用容错机制。 步骤 S906,当 Package.xml不能正常使用时,系统使用 Package_BackUP.xml开机。 步骤 S908, 系统判断是否能正常开机, 如果正常, 直接使用 Package—BackUP.xml 开机, 如果非正常, 进入 S910。 步骤 S910, 系统读取 Packagejnit.xml和 Package_ADD.xml, 将两者进行 merge, 合并为新的 package.xml, 使用该配置进行开机。 步骤 S912, 判断是否能正常开机。 步骤 S914, 将 package.xml删除, 让系统重新遍历所有的 APK程序, 提取相关信 息, 重新生成 Package.xml开机, 由于需要重新遍历所有的 APK, 此时系统会有一段 时间的处理过程。 步骤 S916, 判断是否可以正常开机。 步骤 S918, 如果还是不能正常开机, 直接使用 Packagejnit.xml开机, 此时会丢 失所有的用户新增应用数据, 但是在该极限条件下, 可以保证手机处于可用状态, 而 无需到售后网点升级版本。 步骤 S920, 开机流程结束。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 工业实用性 如上所述, 本发明实施例提供的一种系统应用安装包加载处理方法、 装置及终端 具有以下有益效果: 解决了相关技术中存在的当系统应用安装包进行拷贝生成备份文 件出错时, 造成的系统应用安装包中的数据异常, 导致终端无法开机的问题, 进而达 到了提高了系统稳定性和用户体验的效果。

Claims

权 利 要 求 书
1. 一种系统应用安装包加载处理方法, 包括: 在对系统应用安装包更新处理之前, 将所述系统应用安装包重命名为系统 应用安装备份包;
判断采用系统应用安装更新包是否加载成功, 其中, 所述系统应用安装更 新包为对所述系统应用安装备份包进行拷贝后的拷贝版本进行更新后获取的系 统应用安装包;
在判断结果为否的情况下, 采用所述系统应用安装备份包进行加载处理。
2. 根据权利要求 1所述的方法, 其中, 在采用所述系统应用安装备份包进行加载 处理之后, 还包括: 判断采用所述系统应用安装备份包加载是否成功;
在判断结果为否的情况下, 获取系统设备出厂第一次加载时的系统应用安 装初始包和对系统应用安装包每次更新时与所述系统应用安装初始包所存在的 差异部分;
将所述系统应用安装初始包和所述差异部分合并为系统应用安装合并包; 依据所述系统应用安装合并包进行加载处理。
3. 根据权利要求 2所述的方法, 其中, 获取系统设备出厂第一次加载时的所述系 统应用安装初始包包括:
将系统设备出厂第一次加载时生成的系统应用安装初始包重命名为所述系 统应用安装初始包。
4. 根据权利要求 2所述的方法, 其中, 在依据所述系统应用安装合并包进行加载 处理之后, 还包括: 判断依据所述系统应用安装合并包加载是否成功;
在判断结果为否的情况下, 通过扫描系统安装的应用生成系统应用安装扫 描包;
依据所述系统应用安装扫描包进行加载处理。
5. 根据权利要求 4所述的方法, 其中, 在依据所述系统应用安装扫描包进行加载 处理之后, 还包括: 判断依据系统应用安装扫描包加载是否成功;
在判断结果为否的情况下, 采用系统设备出厂第一次加载时生成的系统应 用安装初始包进行加载处理。
6. 一种系统应用安装包加载处理装置, 包括:
重命名模块, 设置为在对系统应用安装包更新处理之前, 将所述系统应用 安装包重命名为系统应用安装备份包; 第一判断模块,设置为判断采用系统应用安装更新包是否加载成功,其中, 所述系统应用安装更新包为对所述系统应用安装备份包进行拷贝后的拷贝版本 进行更新后获取的系统应用安装包;
第一加载模块, 设置为在所述第一判断模块的判断结果为否的情况下, 采 用所述系统应用安装备份包进行加载处理。
7. 根据权利要求 6所述的装置, 其中, 还包括: 第二判断模块, 设置为判断采用所述系统应用安装备份包加载是否成功; 获取模块, 设置为在所述第二判断模块的判断结果为否的情况下, 获取系 统设备出厂第一次加载时的系统应用安装初始包和对系统应用安装包每次更新 时与所述系统应用安装初始包所存在的差异部分;
合并模块, 设置为将所述系统应用安装初始包和所述差异部分合并为系统 应用安装合并包;
第二加载模块, 设置为依据所述系统应用安装合并包进行加载处理。
8. 根据权利要求 7所述的方法, 其中, 所述获取模块包括: 重命名单元, 设置为将系统设备出厂第一次加载时生成的系统应用安装初 始包重命名为所述系统应用安装初始包。
9. 根据权利要求 7所述的装置, 其中, 还包括: 第三判断模块, 设置为判断依据所述系统应用安装合并包加载是否成功; 生成模块, 设置为在所述第三判断模块的判断结果为否的情况下, 通过扫 描系统安装的应用生成系统应用安装扫描包; 第三加载模块, 设置为依据所述系统应用安装扫描包进行加载处理。
10. 根据权利要求 9所述的装置, 其中, 还包括: 第四判断模块, 设置为判断依据系统应用安装扫描包加载是否成功; 第四加载模块, 设置为在判断结果为否的情况下, 采用系统设备出厂第 次加载时生成的系统应用安装初始包进行加载处理。
11. 一种终端, 包括权利要求 6至 10中任一项所述的装置。
PCT/CN2014/079294 2013-11-28 2014-06-05 系统应用安装包加载处理方法、装置及终端 WO2015078166A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/100,116 US20160378458A1 (en) 2013-11-28 2014-06-05 Method and device for system application installation package, and terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310624799.7 2013-11-28
CN201310624799.7A CN104679534B (zh) 2013-11-28 2013-11-28 系统应用安装包加载处理方法、装置及终端

Publications (1)

Publication Number Publication Date
WO2015078166A1 true WO2015078166A1 (zh) 2015-06-04

Family

ID=53198292

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079294 WO2015078166A1 (zh) 2013-11-28 2014-06-05 系统应用安装包加载处理方法、装置及终端

Country Status (3)

Country Link
US (1) US20160378458A1 (zh)
CN (1) CN104679534B (zh)
WO (1) WO2015078166A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105825431A (zh) * 2016-03-14 2016-08-03 广州趣丸网络科技有限公司 一种通过特殊序列号智能匹配用户所属群体的方法及装置
CN106713319A (zh) * 2016-12-23 2017-05-24 北京奇虎科技有限公司 终端间的远程控制方法、装置、系统及移动终端
CN108008958A (zh) * 2017-11-29 2018-05-08 广东欧珀移动通信有限公司 一种应用的后台dex优化方法、装置和计算机可读存储介质
CN113342390A (zh) * 2021-07-01 2021-09-03 统信软件技术有限公司 一种应用程序的权限管理方法及系统
CN113342390B (zh) * 2021-07-01 2024-06-04 统信软件技术有限公司 一种应用程序的权限管理方法及系统

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159803A (zh) * 2015-09-17 2015-12-16 成都中科创达软件有限公司 一种应用程序的恢复方法及系统
CN105872778A (zh) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 升级控制方法及装置
CN106055363B (zh) * 2016-05-31 2017-11-14 广东欧珀移动通信有限公司 一种识别文件的方法及移动终端
US10216510B2 (en) * 2016-06-04 2019-02-26 Airwatch Llc Silent upgrade of software with dependencies
CN106406952B (zh) * 2016-09-21 2018-07-06 广州爱九游信息技术有限公司 电子终端及应用程序管理装置与方法
CN106445594B (zh) * 2016-09-23 2020-08-28 海信集团有限公司 系统应用的安装方法、装置和终端设备
CN106776087B (zh) * 2016-11-22 2020-05-26 青岛海信移动通信技术股份有限公司 终端设备及其开机方法
CN108090362B (zh) * 2017-02-08 2022-01-07 安天科技集团股份有限公司 一种atm程序更新的安全防护方法及系统
CN107341013B (zh) * 2017-06-26 2021-01-15 努比亚技术有限公司 一种开机故障处理方法、设备及计算机可读存储介质
KR102485935B1 (ko) 2018-02-23 2023-01-10 삼성전자주식회사 전자 장치 및 그의 동작 방법
CN109344003A (zh) * 2018-08-31 2019-02-15 上海闻泰电子科技有限公司 电子设备系统自修复方法、装置、设备及介质
CN109358871B (zh) * 2018-09-18 2022-11-15 深圳Tcl数字技术有限公司 嵌入式系统设备的应用系统更换方法、装置及存储介质
CN109582372B (zh) * 2018-11-12 2022-01-28 海信视像科技股份有限公司 一种系统的启动方法及装置
CN112286574A (zh) * 2020-11-27 2021-01-29 远光软件股份有限公司 统计应用程序版本的方法、装置、终端设备和存储介质
CN112379897B (zh) * 2020-12-01 2024-03-15 北京致远互联软件股份有限公司 一种灰度发布、限制性安装客户端安装程序的方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100318986A1 (en) * 2009-06-11 2010-12-16 International Business Machines, Corporation Using software state tracking information to enact granular update rollback
CN102004657A (zh) * 2010-12-15 2011-04-06 周佳 一种电子设备及其升级方法
CN102662703A (zh) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 一种应用程序插件加载方法及装置
CN103389907A (zh) * 2013-07-24 2013-11-13 北京京东尚科信息技术有限公司 一种个人数字助理及其程序版本回滚的方法和装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040003266A1 (en) * 2000-09-22 2004-01-01 Patchlink Corporation Non-invasive automatic offsite patch fingerprinting and updating system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100318986A1 (en) * 2009-06-11 2010-12-16 International Business Machines, Corporation Using software state tracking information to enact granular update rollback
CN102004657A (zh) * 2010-12-15 2011-04-06 周佳 一种电子设备及其升级方法
CN102662703A (zh) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 一种应用程序插件加载方法及装置
CN103389907A (zh) * 2013-07-24 2013-11-13 北京京东尚科信息技术有限公司 一种个人数字助理及其程序版本回滚的方法和装置

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105825431A (zh) * 2016-03-14 2016-08-03 广州趣丸网络科技有限公司 一种通过特殊序列号智能匹配用户所属群体的方法及装置
CN105825431B (zh) * 2016-03-14 2020-05-01 广州趣丸网络科技有限公司 一种通过特殊序列号智能匹配用户所属群体的方法及装置
CN106713319A (zh) * 2016-12-23 2017-05-24 北京奇虎科技有限公司 终端间的远程控制方法、装置、系统及移动终端
CN106713319B (zh) * 2016-12-23 2020-01-14 北京安云世纪科技有限公司 终端间的远程控制方法、装置、系统及移动终端
CN108008958A (zh) * 2017-11-29 2018-05-08 广东欧珀移动通信有限公司 一种应用的后台dex优化方法、装置和计算机可读存储介质
CN113342390A (zh) * 2021-07-01 2021-09-03 统信软件技术有限公司 一种应用程序的权限管理方法及系统
CN113342390B (zh) * 2021-07-01 2024-06-04 统信软件技术有限公司 一种应用程序的权限管理方法及系统

Also Published As

Publication number Publication date
US20160378458A1 (en) 2016-12-29
CN104679534B (zh) 2019-11-19
CN104679534A (zh) 2015-06-03

Similar Documents

Publication Publication Date Title
WO2015078166A1 (zh) 系统应用安装包加载处理方法、装置及终端
CN107729041B (zh) 应用程序热更新方法、装置、终端和存储介质
US7664834B2 (en) Distributed operating system management
US8904518B2 (en) Information processing device, information processing method, and program distribution system
JP5781736B2 (ja) 仮想化サブレイヤを統合する方法、システムおよびコンピュータ可読記憶媒体
US20050262501A1 (en) Software distribution method and system supporting configuration management
US20140304697A1 (en) Method and system for upgrading software
CN109614167B (zh) 一种管理插件的方法和系统
KR20190041033A (ko) 서비스의 2차 위치에서의 작업의 재생 기법
JP2004158012A (ja) ソフトウェアアプリケーション管理のためのシステムおよび方法
US9747091B1 (en) Isolated software installation
CN112463191A (zh) 一种文件更新方法及装置、设备、存储介质
CN107465709B (zh) 分布式镜像构建任务方法及装置、系统
TWI514279B (zh) 伺服器系統與韌體更新方法
CN112416612A (zh) 服务调用方法、装置、计算机设备和可读存储介质
US20160224650A1 (en) Method for performing file synchronization control, and associated apparatus
US9940334B2 (en) Image forming apparatus and control method thereof
CN115344273A (zh) 一种基于货架系统来运行应用软件的方法及系统
Cisco Troubleshooting the Installation
JP4063573B2 (ja) デバイスドライバの組み込み・実行方式、組み込み・実行方法、及びプログラム
CN110795113A (zh) 一种Redis集群服务的安装方法、服务器和介质
CN110673869B (zh) 库文件的加载方法、装置及系统
US11797499B2 (en) Information processing system and method
CN113791814B (zh) 一种Android平台上生产预置更新方法、装置、设备和介质
Zhang et al. Lifecycle Management

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14865934

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 15100116

Country of ref document: US

122 Ep: pct application non-entry in european phase

Ref document number: 14865934

Country of ref document: EP

Kind code of ref document: A1