[go: up one dir, main page]

CN106406919A - Terminal device pre-loaded application management method and terminal device - Google Patents

Terminal device pre-loaded application management method and terminal device Download PDF

Info

Publication number
CN106406919A
CN106406919A CN201510445187.0A CN201510445187A CN106406919A CN 106406919 A CN106406919 A CN 106406919A CN 201510445187 A CN201510445187 A CN 201510445187A CN 106406919 A CN106406919 A CN 106406919A
Authority
CN
China
Prior art keywords
terminal device
installed applications
time
installation kit
default value
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.)
Withdrawn
Application number
CN201510445187.0A
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201510445187.0A priority Critical patent/CN106406919A/en
Publication of CN106406919A publication Critical patent/CN106406919A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a terminal device pre-loaded application management method. When a terminal device is powered on for the first time, a link file is established in a user data partition, the link file is used for linking to a pre-loaded application installation package of a pre-loaded application list and preset in a system partition, and the pre-loaded application list is set in a way that the pre-loaded application list is not scanned when the terminal device is powered on. The identification is set to be a preset value, and therefore when the terminal device is powered on not for the first time, the link file established when the terminal device is powered on for the first time can be directly obtained. When the terminal device is upgraded, a newly increased pre-loaded application installation package exists in the upgrade version relative to the original version, the identification is reverted to be a default value, and therefore when the terminal device is powered on for the first time after being upgraded, a new link file used for linking to the newly increased pre-loaded application installation package is established in the user data partition. According to the invention, the case that the link needs to be established repeatedly when the terminal device is powered on each time can be avoided, at the same time, the fact that when a newly increased pre-loaded application exists in the upgrade version, the newly increased pre-loaded application can be used normally can be guaranteed.

Description

一种终端设备预装应用的管理方法和终端设备 A management method for pre-installed applications on terminal equipment and terminal equipment

技术领域 technical field

本发明涉及应用管理领域,特别是涉及一种终端设备预装应用的管理方法和终端设备。 The present invention relates to the field of application management, in particular to a management method for pre-installed applications in terminal equipment and terminal equipment.

背景技术 Background technique

终端设备的应用分为系统应用和用户应用,这两者的显著差别是前者是不可卸载的而后者是可卸载的,原因在于系统应用安装于只读属性的系统分区,用户没有权限卸载。而用户应用是安装于具有读写权限的用户数据分区,用户可自行卸载。实际上,还存在一种介于系统应用和用户应用之间的预装应用,所谓预装应用就是预置在系统版本中的应用或者系统升级时升级到终端中的应用(比如QQ、WPS),这些应用是由第三方直接把安装包提供给手机厂商,手机厂商集成到系统版本或升级版本中。严格意义上讲预装应用属于系统应用,但是其又不同于系统应用,因为用户希望预装应用是可卸载的,而第三方希望用户将预装应用卸载后,恢复出厂设置后还能够还原回来。这样问题就出现了,如果预装应用放在系统分区下,则预装应用无法被卸载;如果放在用户数据分区下,用户恢复出厂设置之后,预装应用就彻底丢失了。 The applications of terminal equipment are divided into system applications and user applications. The significant difference between the two is that the former cannot be uninstalled while the latter can be uninstalled. The reason is that system applications are installed in the read-only system partition, and users do not have permission to uninstall them. The user application is installed in the user data partition with read and write permissions, and the user can uninstall it by himself. In fact, there is also a pre-installed application between the system application and the user application. The so-called pre-installed application is the application that is preset in the system version or the application that is upgraded to the terminal when the system is upgraded (such as QQ, WPS) , these applications are directly provided by the third party with the installation package to the mobile phone manufacturer, and the mobile phone manufacturer integrates it into the system version or the upgraded version. Strictly speaking, pre-installed apps belong to system apps, but they are different from system apps because users expect pre-installed apps to be uninstallable, while third parties want users to uninstall pre-installed apps and restore them to factory settings. . This problem arises. If the pre-installed application is placed under the system partition, the pre-installed application cannot be uninstalled; if it is placed under the user data partition, the pre-installed application will be completely lost after the user restores the factory settings.

针对此类问题,行业通常的做法是在第一次开机过程中将预设在系统分区下的预装应用安装包拷贝到用户数据分区下,在用户数据分区下安装,这样在扫描到用户数据分区的预装应用时就会带有用户应用属性,因此可以被用户卸载。而且,由于安装包同时位于系统分区,恢复出厂设置后,预装应用仍可重新安装。但这种做法的问题是,预装应用安装包的拷贝过程占用开机时间,造成开机时间较长。另外,同一预装应用安装包既占用系统分区的资源又占用用户数据分区的资源,造成空间资源的浪费。针对这一问题,目前做出了以下改进:在系统分区预置预装应用安装包并且在开机扫描时设置成不被扫描,将预装应用安装包链接到用户数据分区,这样开机扫描到用户数据分区时,实际扫描的是预装应用安装包,但由于在用户数据分区进行的扫描,使得预装应用带有用户应用属性,因此可被卸载。由于安装包位于系统分区,恢复出厂设置后,预装应用仍可重新安装。这种方式建立链接过程短,链接速度快,相比于拷贝安装包大大节省开机时间。并且,同一预装应用安装包只占用系统分区资源,不会造成空间资源浪费。 In response to such problems, the usual practice in the industry is to copy the pre-installed application installation package preset under the system partition to the user data partition during the first boot process, and install it under the user data partition, so that when the user data is scanned The pre-installed application of the partition will have the user application attribute, so it can be uninstalled by the user. Moreover, since the installation package is also located in the system partition, after restoring the factory settings, the pre-installed applications can still be reinstalled. However, the problem with this method is that the copying process of the pre-installed application installation package takes up the boot time, resulting in a longer boot time. In addition, the same pre-installed application installation package occupies not only the resources of the system partition but also the resources of the user data partition, resulting in a waste of space resources. In response to this problem, the following improvements have been made: Preinstall the pre-installed application installation package in the system partition and set it to not be scanned during the startup scan, link the pre-installed application installation package to the user data partition, so that the startup scan can reach the user When the data partition is used, the pre-installed application installation package is actually scanned. However, due to the scanning in the user data partition, the pre-installed application has user application attributes, so it can be uninstalled. Since the installation package is located in the system partition, pre-installed applications can still be reinstalled after factory reset. This method has a short link establishment process and a fast link speed, which greatly saves boot time compared to copying the installation package. Moreover, the same pre-installed application installation package only occupies system partition resources, which will not cause waste of space resources.

然而,上述方案仍然存在很多问题,例如,终端设备在每一次开机时都要重复建立链接,还是会延长开机时间。 However, there are still many problems in the above solution, for example, the terminal device has to repeatedly establish a link every time it is turned on, or it will prolong the startup time.

发明内容 Contents of the invention

本发明提供了一种终端设备预装应用的管理方法和终端设备,以解决每一次开机都需重复建立链接的问题。 The present invention provides a management method for pre-installed applications on terminal equipment and the terminal equipment, so as to solve the problem of repeatedly establishing links every time the system is turned on.

为了解决上述问题,本发明公开了一种终端设备预装应用的管理方法,包括以下步骤。 In order to solve the above problems, the present invention discloses a management method for pre-installed applications in terminal equipment, which includes the following steps.

终端设备第一次开机时,在用户数据分区建立用于链接到预装应用安装包的链接文件,所述预装应用安装包预设于系统分区的预装应用目录,所述预装应用目录设置为开机时不被扫描。 When the terminal device is turned on for the first time, a link file for linking to the pre-installed application installation package is established in the user data partition, the pre-installed application installation package is preset in the pre-installed application directory of the system partition, and the pre-installed application directory Set to not be scanned at startup.

设置标识为预设值,所述标识为预设值用于使终端设备在非第一次开机时,直接获取终端设备第一次开机时建立的链接文件。 The flag is set as a preset value, and the flag is a preset value used to enable the terminal device to directly obtain the link file created when the terminal device is powered on for the first time when it is not powered on for the first time.

当终端设备升级时,若升级版本相对原始版本存在新增预装应用安装包,则将所述标识恢复为默认值,所述标识为默认值用于使终端设备在升级后第一次开机时,在用户数据分区建立用于链接到新增预装应用安装包的新的链接文件。 When the terminal device is upgraded, if there is a newly added pre-installed application installation package in the upgraded version relative to the original version, the identification will be restored to the default value, and the identification is the default value used to enable the terminal device to be turned on for the first time after the upgrade. , creating a new link file in the user data partition for linking to the newly added pre-installed application installation package.

优选地,所述当终端设备升级时,若升级版本相对原始版本存在新增预装应用安装包,则将所述标识恢复为默认值包括:当终端设备升级时,执行升级包中的预设命令,所述预设命令是在升级版本相对原始版本存在新增预装应用安装包时设置的将所述标识恢复为默认值的命令。 Preferably, when the terminal device is upgraded, if there is a new pre-installed application installation package in the upgraded version relative to the original version, restoring the identification to the default value includes: when the terminal device is upgraded, executing the preset in the upgrade package command, the preset command is a command set when there is a new pre-installed application installation package in the upgraded version compared with the original version, and restores the identifier to a default value.

优选地,所述当终端设备升级时,若升级版本相对原始版本存在新增预装应用安装包,则将所述标识恢复为默认值,所述标识为默认值用于使终端设备在升级后第一次开机时,在用户数据分区建立用于链接到新增预装应用安装包的新的链接文件之后还包括:当终端设备升级后第一次开机时,判断所述标识是否为默认值;若所述标识为默认值,则在用户数据分区建立用于链接到新增预装应用安装包的新的链接文件,所述新增预装应用安装包预设于所述预装应用目录。 Preferably, when the terminal device is upgraded, if there is a new pre-installed application installation package in the upgraded version relative to the original version, then restore the identification to the default value, and the default value is used to make the terminal device after the upgrade When starting up for the first time, after the user data partition establishes a new link file for linking to the newly added pre-installed application installation package, it also includes: when the terminal device is powered on for the first time after upgrading, judging whether the identification is the default value ; If the identification is the default value, then create a new link file for linking to the newly added preinstalled application installation package in the user data partition, and the newly added preinstalled application installation package is preset in the preinstalled application directory .

优选地,若所述标识为预设值,则直接获取终端设备第一次开机时建立的链接文件。 Preferably, if the identifier is a preset value, the link file created when the terminal device is turned on for the first time is directly acquired.

优选地,所述预装应用安装包至少为两个,所述链接文件分别与所述预装应用安装包一一对应。 Preferably, there are at least two preinstalled application installation packages, and the link files correspond to the preinstalled application installation packages respectively.

本发明还公开了一种终端设备,包括链接建立单元,用于终端设备第一次开机时,在用户数据分区建立用于链接到预装应用安装包的链接文件,所述预装应用安装包预设于系统分区的预装应用目录,所述预装应用目录设置为开机时不被扫描。 The present invention also discloses a terminal device, which includes a link establishment unit, which is used to establish a link file in the user data partition for linking to a pre-installed application installation package when the terminal device is turned on for the first time, and the pre-installed application installation package The pre-installed application directory is preset in the system partition, and the pre-installed application directory is set not to be scanned when starting up.

标识设置单元,用于设置标识为预设值,所述标识为预设值用于使终端设备在非第一次开机时,直接获取终端设备第一次开机时建立的链接文件。 The identification setting unit is configured to set the identification as a preset value, and the identification is a preset value used to enable the terminal device to directly obtain the link file created when the terminal device is turned on for the first time when it is not turned on for the first time.

升级单元,用于当终端设备升级时,若升级版本相对原始版本存在新增预装应用安装包,则将所述标识恢复为默认值,所述标识为默认值用于使终端设备在升级后第一次开机时,在用户数据分区建立用于链接到新增预装应用安装包的新的链接文件。 The upgrade unit is used to restore the identification to the default value when the terminal device is upgraded, if the upgraded version has a new pre-installed application installation package compared with the original version, and the default value is used to make the terminal device after the upgrade When booting for the first time, a new link file for linking to the newly added pre-installed application installation package is created in the user data partition.

优选地,所述升级单元还用于当终端设备升级时,执行升级包中的预设命令,所述预设命令是在升级版本相对原始版本存在新增预装应用安装包时设置的将所述标识恢复为默认值的命令。 Preferably, the upgrade unit is also used to execute a preset command in the upgrade package when the terminal device is upgraded, and the preset command is set when there is a new pre-installed application installation package in the upgrade version compared to the original version. The above identifies the command to restore the default values.

优选地,所述终端设备还包括标识判断单元,用于当终端设备升级后第一次开机时,判断所述标识是否为默认值;所述链接建立单元还用于在所述标识为默认值时,在用户数据分区建立用于链接到新增预装应用安装包的新的链接文件,所述新增预装应用安装包预设于所述预装应用目录。 Preferably, the terminal device further includes an identification judging unit, configured to determine whether the identification is a default value when the terminal device is powered on for the first time after being upgraded; the link establishment unit is also configured to determine whether the identification is a default value At this time, a new link file for linking to the newly added preinstalled application installation package is established in the user data partition, and the newly added preinstalled application installation package is preset in the preinstalled application directory.

优选地,所述链接建立单元还用于在所述标识为预设值时,直接获取获取终端设备第一次开机时建立的链接文件。 Preferably, the link establishment unit is further configured to directly acquire the link file created when the terminal device is turned on for the first time when the flag is a preset value.

优选地,所述预装应用安装包至少为两个,所述链接文件分别与所述预装应用安装包一一对应。 Preferably, there are at least two preinstalled application installation packages, and the link files correspond to the preinstalled application installation packages respectively.

与现有技术相比,本发明包括以下优点: Compared with the prior art, the present invention includes the following advantages:

本发明中终端设备第一次开机时,在用户数据分区建立链接文件,链接文件用于链接到预装应用安装包,预装应用安装包预设于系统分区的预装应用目录,预装应用目录设置为开机时不被扫描。然后设置标识为预设值,标识为预设值用于使终端设备在非第一次开机时,直接获取终端设备第一次开机时建立的链接文件。这样终端设备在非第一次开机时,不用重新建立链接文件,而是直接利用已经建立好的链接文件。当终端设备升级时,若升级版本相对原始版本存在新增预装应用安装包,则将所述标识恢复为默认值,所述标识为默认值用于使终端设备在升级后第一次开机时,在用户数据分区建立用于链接到新增预装应用安装包的新的链接文件。当升级版本存在新增预装应用时,如果不将标识恢复为默认值,终端设备就不会在用户数据分区建立对应新增预装应用的新的链接文件,新增预装应用就不能正常安装和使用,因此本发明能避免每一次开机都需重复建立链接的同时还能保证升级版本存在新增预装应用时新增预装应用能正常使用。 In the present invention, when the terminal device is turned on for the first time, a link file is established in the user data partition, and the link file is used to link to the pre-installed application installation package. The pre-installed application installation package is preset in the pre-installed application directory of the system partition, and the pre-installed application The directory is set not to be scanned at startup. Then set the identification as a default value, which is used to enable the terminal device to directly obtain the link file established when the terminal device is powered on for the first time when it is not powered on for the first time. In this way, when the terminal device is not turned on for the first time, it does not need to re-establish the link file, but directly uses the already established link file. When the terminal device is upgraded, if there is a newly added pre-installed application installation package in the upgraded version relative to the original version, the identification will be restored to the default value, and the identification is the default value used to enable the terminal device to be turned on for the first time after the upgrade. , creating a new link file in the user data partition for linking to the newly added pre-installed application installation package. When there are new pre-installed applications in the upgraded version, if the logo is not restored to the default value, the terminal device will not create a new link file corresponding to the newly-added pre-installed applications in the user data partition, and the newly-added pre-installed applications will not work normally. Installation and use, so the present invention can avoid the need to repeatedly establish a link every time it is turned on, and can also ensure that the new pre-installed application can be used normally when there is a new pre-installed application in the upgraded version.

附图说明 Description of drawings

图1是本发明一实施例的终端设备预装应用的管理方法流程图; Fig. 1 is a flow chart of a method for managing pre-installed applications on a terminal device according to an embodiment of the present invention;

图2是本发明另一实施例的终端设备预装应用的管理方法流程图; FIG. 2 is a flowchart of a method for managing pre-installed applications on a terminal device according to another embodiment of the present invention;

图3是本发明再一实施例的终端设备预装应用的管理方法流程图 Fig. 3 is a flow chart of a method for managing pre-installed applications on a terminal device according to yet another embodiment of the present invention

图4是本发明再一实施例的终端设备结构框图。 Fig. 4 is a structural block diagram of a terminal device according to yet another embodiment of the present invention.

具体实施方式 detailed description

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。 In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

参照图1,示出了本发明一实施例的终端设备预装应用的管理方法流程图,该方法具体可以包括以下步骤: Referring to FIG. 1 , it shows a flow chart of a method for managing pre-installed applications on a terminal device according to an embodiment of the present invention. The method may specifically include the following steps:

步骤101,终端设备第一次开机时,在用户数据分区建立用于链接到预装应用安装包的链接文件,所述预装应用安装包预设于系统分区的预装应用目录,所述预装应用目录设置为开机时不被扫描。。 Step 101, when the terminal device is turned on for the first time, a link file for linking to the pre-installed application installation package is created in the user data partition, the pre-installed application installation package is preset in the pre-installed application directory of the system partition, and the pre-installed application installation package is preset in the pre-installed application directory of the system partition. The installed application directory is set to not be scanned at startup. .

本发明实施例中,终端设备是指安装有Windows、IOS、Android 等系统的电子设备,例如智能手机、平板电脑、笔记本电脑、超级移动个人计算机(英文:Ultra-mobile Personal Computer,简称UMPC)、上网本、个人数字助理(英文:Personal Digital Assistant,简称PDA)等终端设备。 In the embodiment of the present invention, terminal equipment refers to electronic equipment installed with Windows, IOS, Android and other systems, such as smart phones, tablet computers, notebook computers, ultra-mobile personal computers (English: Ultra-mobile Personal Computer, referred to as UMPC), netbook, personal digital assistant (English: Personal Digital Assistant, referred to as PDA) and other terminal equipment.

用户数据分区也称为data分区,包含用户的数据,存放用户的联系人、短信、设置和应用程序等信息。data分区具有读写属性,恢复出厂设置相当于擦除该分区,恢复到第一次启动设备的状态。系统分区也称为system分区,包含操作系统的重要文件,具有只读属性,恢复出厂设置不会造成system分区的数据丢失。如果预装应用安装包存放在用户数据分区,恢复出厂设置后安装包就会丢失,不能满足第三方预装应用重新安装的要求。本发明实施例在第一次开机时建立链接文件,若恢复出厂设置,即使原先建立的链接文件被删除,恢复出厂设置后的第一次开机时仍会重新建立链接文件,而预装应用安装包存放于系统分区,不会随着恢复出厂设置而丢失。并且,建立链接文件与拷贝安装包相比,其速度要快得多,几乎不影响系统的开机速度。 The user data partition is also called the data partition, which contains the user's data and stores information such as the user's contacts, text messages, settings, and applications. The data partition has read and write attributes, and restoring the factory settings is equivalent to erasing the partition and restoring it to the state when the device was started for the first time. The system partition, also known as the system partition, contains important files of the operating system and has read-only attributes. Restoring factory settings will not cause data loss in the system partition. If the pre-installed application installation package is stored in the user data partition, the installation package will be lost after the factory settings are restored, which cannot meet the requirements for reinstalling the third-party pre-installed application. In the embodiment of the present invention, the link file is established when the first boot is started. If the factory settings are restored, even if the previously established link file is deleted, the link file will still be re-established when the first boot after the factory settings are restored, and the pre-installed application will be installed. The package is stored in the system partition and will not be lost with the factory reset. Moreover, compared with copying the installation package, establishing a link file is much faster, and hardly affects the booting speed of the system.

预先在system分区新建一个目录(例如system/pre_app),这里称为预装应用目录,预装应用目录用于存放第三方提供的预装应用安装包。在实际过程中,这一步是由手机厂商预先定制在系统软件中。当然,预装应用目录也可以是system分区已存在的目录。 Create a new directory (such as system/pre_app) in the system partition in advance, which is called the pre-installed application directory. The pre-installed application directory is used to store the pre-installed application installation package provided by the third party. In the actual process, this step is pre-customized in the system software by the mobile phone manufacturer. Of course, the pre-installed application directory may also be a directory that already exists in the system partition.

对于系统应用,由于其保存在system分区下的应用程序目录,扫描该目录后会自动以系统级权限安装系统应用,因此系统应用不可卸载。在本实施例中,预装应用目录设置为开机时不被扫描,使得预装应用目录有别于system分区的系统应用程序目录,目的是将预装应用与系统应用区分开。 For system applications, since they are stored in the application directory under the system partition, system applications will be automatically installed with system-level permissions after scanning the directory, so system applications cannot be uninstalled. In this embodiment, the pre-installed application directory is set not to be scanned when booting, so that the pre-installed application directory is different from the system application directory of the system partition, and the purpose is to distinguish the pre-installed application from the system application.

本发明实施例的链接文件类似于计算机中的快捷方式,指的是链接到实际文件的标识,因此其大小非常小,几乎不占用data分区的空间资源。在开机引导程序bootloader启动的init.rc中建立生成链接文件的服务,其中init.rc是一个可配置的初始化文件,通常终端设备厂商可以自行配置init.rc,开机时按照init.rc中配置语句执行相应功能。本实施例中执行Linux链接命令link,link命令会首先判断用于存放链接文件的目录(如data/app)是否存在,如不存在会自动创建。然后把预装应用安装包链接到data/app下,该链接过程即是在data/app中建立链接文件,链接文件指向预装应用安装包的地址,扫描链接文件时实际扫描的是预装应用安装包。 The link file in the embodiment of the present invention is similar to a shortcut in a computer, and refers to an identifier linked to an actual file, so its size is very small and hardly occupies space resources of the data partition. Create a service for generating link files in init.rc started by the bootloader, where init.rc is a configurable initialization file. Usually, terminal equipment manufacturers can configure init.rc by themselves, and follow the configuration statements in init.rc when starting up Execute the corresponding function. In this embodiment, the Linux link command link is executed. The link command will first determine whether the directory (such as data/app) used to store the link file exists, and if it does not exist, it will be created automatically. Then link the pre-installed application installation package to data/app. The linking process is to create a link file in data/app. The link file points to the address of the pre-installed application installation package. When scanning the link file, the actual scan is the pre-installed application. Installation package.

实际中,预装应用安装包至少为两个,优选链接文件分别与预装应用安装包一一对应,即一个链接文件对应一个预装应用安装包。Link命令遍历所有预装应用安装包,对每一个预装应用安装包建立一个链接文件。 In practice, there are at least two pre-installed application installation packages. Preferably, the link files are in one-to-one correspondence with the pre-installed application installation packages, that is, one link file corresponds to one pre-installed application installation package. The Link command traverses all pre-installed application installation packages, and creates a link file for each pre-installed application installation package.

需要说明的是,链接文件可以具有与预装应用安装包相同的名称,也可以是预设的名称,如数字1、2等,本发明实施例对此不作限制。 It should be noted that the link file may have the same name as the pre-installed application installation package, or a preset name, such as numbers 1, 2, etc., which is not limited in this embodiment of the present invention.

以android系统的终端设备为例,终端设备在第一次开机后,会启动Package Manager Service(包管理服务),Package Manager Service用于扫描应用程序目录的安装包并根据应用程序目录所在的分区自动以用户级权限安装或系统级权限安装应用程序,所谓用户级权限是指用户可进行包括卸载的可操作权限,所谓系统级权限是指用户不具有卸载应用程序的权限。具体地,扫描时会根据安装包所在分区为应用程序设置相应的属性,如只读属性或可读写属性。 Taking the terminal device of the android system as an example, after the terminal device is turned on for the first time, it will start the Package Manager Service (package management service), Package Manager Service is used to scan the installation package of the application directory and automatically install the application with user-level permissions or system-level permissions according to the partition where the application directory is located. The so-called user-level permissions refer to the operational permissions that users can perform including uninstallation. The so-called system Level permission means that the user does not have permission to uninstall the application. Specifically, during scanning, corresponding attributes, such as read-only attributes or readable and writable attributes, will be set for the application according to the partition where the installation package is located.

对于system分区下的安装包,扫描后会带有只读属性,本发明实施例将预装应用目录设置为开机不被扫描,就是为了避免预装应用目录中的预装应用设为只读属性。扫描链接文件时,由于是在data分区扫描的,因此会为链接文件对应的预装应用设置可读写属性。这样,预装应用就可被用户自行卸载。 For the installation package under the system partition, it will have a read-only attribute after scanning. In the embodiment of the present invention, the pre-installed application directory is set to not be scanned at startup, in order to prevent the pre-installed application in the pre-installed application directory from being set as read-only. . When scanning linked files, since the data partition is scanned, the readable and writable attribute will be set for the preinstalled application corresponding to the linked file. In this way, pre-installed applications can be uninstalled by users themselves.

步骤102、设置标识为预设值,所述标识为预设值用于使终端设备在非第一次开机时,直接获取终端设备第一次开机时建立的链接文件。 Step 102: Set the identifier as a preset value, which is used to enable the terminal device to directly obtain the link file created when the terminal device is turned on for the first time when it is not turned on for the first time.

为了只在终端设备第一次开机时建立链接文件,避免每次开机都建立链接文件,本发明实施例在data分区设置标识,用于区分data分区是否已存在与预装应用安装包对应的链接文件,需要说明的是,这里的第一次开机指的是终端设备使用前的第一次开机或恢复出厂设置后的第一次开机。在第一次开机时需要建立链接文件,然后将标识设置为预设值。标识设为预设值意味着data分区已存在与预装应用安装包对应的链接文件,终端设备在下一次开机时就不需要建立新的链接文件,而是直接获取终端设备第一次开机时建立的链接文件,避免重复建立链接文件。 In order to create a link file only when the terminal device is turned on for the first time and avoid creating a link file every time it is turned on, the embodiment of the present invention sets an identifier in the data partition to distinguish whether the data partition already has a link corresponding to the pre-installed application installation package It should be noted that the first startup here refers to the first startup of the terminal device before use or the first startup after restoring factory settings. It is necessary to establish a link file when starting up for the first time, and then set the logo to the default value. If the flag is set to the default value, it means that the link file corresponding to the pre-installed application installation package already exists in the data partition, and the terminal device does not need to create a new link file when it is turned on next time, but directly obtains the link file created when the terminal device is turned on for the first time. link files to avoid duplication of link files.

需要说明的是,本发明实施例还可以在终端设备第一次开机前不设置标识,可以理解为,标识的默认值为:不存在标识,意味着此时data分区未建立链接文件;而在建立完链接文件后添加标识,可以理解为,标识的预设值为:存在标识,意味着data分区已建立完链接文件。其中标识存放在data分区,这样恢复出厂设置后,标识被删除。或者在终端设备第一次开机前设置标识,可以理解为,标识的默认值为:存在标识,意味着此时data分区未建立链接文件;而在建立完链接文件后删除标识,可以理解为,标识的预设值为:不存在标识,意味着data分区已建立完链接文件。其中标识存放在data分区,这样恢复出厂设置后,标识被重新添加。以上方案都在本发明的保护范围内。 It should be noted that, in this embodiment of the present invention, no flag can be set before the terminal device is turned on for the first time. It can be understood that the default value of the flag is: no flag exists, which means that no link file is established in the data partition at this time; After the link file is created, add the flag. It can be understood that the default value of the flag is: the existence of the flag means that the link file has been created in the data partition. The logo is stored in the data partition, so that the logo will be deleted after the factory settings are restored. Or set the logo before the terminal device is turned on for the first time. It can be understood that the default value of the logo is: there is a logo, which means that the data partition has not established a link file at this time; and deleting the logo after the link file is established can be understood as, The default value of the flag is: there is no flag, which means that the link file has been established in the data partition. The logo is stored in the data partition, so that after the factory settings are restored, the logo will be added again. The above schemes are all within the protection scope of the present invention.

步骤103,当终端设备升级时,若升级版本相对原始版本存在新增预装应用安装包,则将所述标识恢复为默认值,所述标识为默认值用于使终端设备在升级后第一次开机时,在用户数据分区建立用于链接到新增预装应用安装包的新的链接文件。 Step 103, when the terminal device is upgraded, if there is a newly added pre-installed application installation package in the upgraded version compared with the original version, restore the identification to the default value, and the default value is used to make the terminal device first after the upgrade. When booting for the first time, a new link file for linking to the newly added pre-installed application installation package is established in the user data partition.

现有技术中在系统第一次开机已经建立了预装应用的链接后,若后续每一次开机都再重复地建立链接,则势必会延长开机时间。假使只是简单地使终端设备在非第一次开机时直接获取已经建立的链接,虽然也可以解决重复建立链接的问题,但是终端设备在升级时,若升级版本中恰好存在新增预装应用,而如果此时仍然是直接获取第一次开机建立的链接,则新增预装应用就不会被扫描到,从而也就无法被用户使用。 In the prior art, after the system is powered on for the first time and the link of the pre-installed application has been established, if the link is repeatedly established every subsequent boot, the booting time will inevitably be prolonged. If it is simply to enable the terminal device to directly obtain the established link when it is not turned on for the first time, although the problem of repeated connection establishment can also be solved, when the terminal device is upgraded, if there is a new pre-installed application in the upgraded version, However, if the link established at the first boot is still directly obtained at this time, the newly added pre-installed application will not be scanned, and thus cannot be used by the user.

本实施例巧妙地在终端设备第一次开机建立链接文件后将标识设为预设值,使得后续开机时通过判断标识的值为预设值而直接获取链接文件,不必再重复建立链接文件。同时又在升级版本中包括新增预装应用时,将标识恢复为默认值,从而升级后的终端设备又可以重新建立用于链接到新增预装应用安装包的新的链接文件。 This embodiment cleverly sets the logo to a preset value after the terminal device is turned on for the first time to create a link file, so that the link file can be directly obtained by judging the value of the logo as the preset value when the terminal device is turned on later, without having to repeatedly create a link file. At the same time, when the new pre-installed application is included in the upgraded version, the identification is restored to the default value, so that the upgraded terminal device can re-establish a new link file for linking to the newly-added pre-installed application installation package.

需要说明的是,升级版本中也存在与原始版本相同的预装应用目录,其中预设有新增预装应用安装包。升级后的终端设备在第一次开机时,由于标识为默认值,需要重新建立链接文件,此时包括建立链接到原有预装应用安装包的链接文件A和链接到新增预装应用安装包的链接文件B。实际过程中,当对原有预装应用安装包执行link命令时,会发现data/app中已存在相应的链接文件,此时link命令不再执行下去,以节省时间。当对新增预装应用安装包执行link命令时,会发现data/app中不存在相应的链接文件, link命令会继续执行下去,创建与新增预装应用安装包对应的新的链接文件。 It should be noted that the upgraded version also has the same pre-installed application directory as the original version, in which a new pre-installed application installation package is preset. When the upgraded terminal device is turned on for the first time, because the logo is the default value, the link file needs to be re-established. At this time, it includes linking to the link file A of the original pre-installed application installation package and linking to the new pre-installed application installation package. Link file B of the package. In the actual process, when the link command is executed on the original pre-installed application installation package, it will be found that the corresponding link file already exists in data/app, and the link command will not be executed at this time to save time. When the link command is executed for the newly added preinstalled application installation package, it will be found that there is no corresponding link file in data/app, and the link command will continue to execute to create a new link file corresponding to the newly added preinstalled application installation package.

本发明实施例终端设备第一次开机时,在用户数据分区建立链接文件,链接文件用于链接到预装应用安装包,预装应用安装包预设于系统分区的预装应用目录,预装应用目录设置为开机时不被扫描。然后设置标识为预设值,标识为预设值用于使终端设备在非第一次开机时,直接获取终端设备第一次开机时建立的链接文件。这样终端设备在非第一次开机时,不用重复建立链接文件,而是直接利用已经建立好的链接文件。当终端设备升级时,若升级版本相对原始版本存在新增预装应用安装包,则将标识恢复为默认值,标识为默认值用于使终端设备在升级后第一次开机时,在用户数据分区建立用于链接到新增预装应用安装包的新的链接文件。当升级版本存在新增预装应用时,如果不将标识恢复为默认值,终端设备就不会在用户数据分区建立对应新增预装应用的新的链接文件,新增预装应用就不能正常安装和使用,因此本发明能避免每一次开机都需重复建立链接的同时还能保证升级版本存在新增预装应用时新增预装应用能正常使用。 When the terminal device in the embodiment of the present invention is turned on for the first time, a link file is established in the user data partition. The link file is used to link to the pre-installed application installation package. The pre-installed application installation package is preset in the pre-installed application directory of the system partition. The application directory is set to not be scanned at startup. Then set the identification as a default value, which is used to enable the terminal device to directly obtain the link file established when the terminal device is powered on for the first time when it is not powered on for the first time. In this way, when the terminal device is not turned on for the first time, it does not need to repeatedly create a link file, but directly uses the already established link file. When the terminal device is upgraded, if there is a new pre-installed application installation package in the upgraded version compared with the original version, the logo will be restored to the default value. The partition creates a new link file for linking to the newly added pre-installed application installation package. When there are new pre-installed applications in the upgraded version, if the logo is not restored to the default value, the terminal device will not create a new link file corresponding to the newly-added pre-installed applications in the user data partition, and the newly-added pre-installed applications will not work normally. Installation and use, so the present invention can avoid the need to repeatedly establish a link every time it is turned on, and can also ensure that the new pre-installed application can be used normally when there is a new pre-installed application in the upgraded version.

实施例一:Embodiment one:

参考图2,为本发明另一实施例的终端设备预装应用的管理方法流程图。 Referring to FIG. 2 , it is a flowchart of a method for managing preinstalled applications on a terminal device according to another embodiment of the present invention.

步骤201、终端设备第一次开机时,在用户数据分区建立用于链接到预装应用安装包的链接文件,所述预装应用安装包预设于系统分区的预装应用目录,所述预装应用目录设置为开机时不被扫描。 Step 201. When the terminal device is turned on for the first time, a link file for linking to a pre-installed application installation package is created in the user data partition, and the pre-installed application installation package is preset in the pre-installed application directory of the system partition. The installed application directory is set to not be scanned at startup.

其中,在终端设备第一次开机前不在data分区设置标识,可以理解为设置标识为默认值。 Wherein, before the terminal device is turned on for the first time, the identification is not set in the data partition, which can be understood as setting the identification as a default value.

具体地,本实施例中执行init.rc的语句如下: Specifically, the statement to execute init.rc in this embodiment is as follows:

Service preload-sh/system/bin/sh/system/etc/init.preload.sh Service preload-sh/system/bin/sh/system/etc/init.preload.sh

Class main Class main

User root User root

Oneshot One shot

以上用于定义在inti.rc中的服务,其作用是执行init.preload.sh脚本,脚本内容如下: The above is used to define the service in inti.rc, its role is to execute the init.preload.sh script, the script content is as follows:

#ln preload apks #ln preload apks

if [!-f 〞data/app/exist〞];then if [!-f "data/app/exist"];then

echo 〞preloading application…〞 echo "preloading application..."

for FILE in ˋls /system/preloadˋ;do #ln–s/system/preload/$FILE/$FILE.apk/data/app/preload_$FILE.apk for FILE in ˋls /system/preload;do #ln–s/system/preload/$FILE/$FILE.apk/data/app/preload_$FILE.apk

ln –s/system/preload/$FILE/data/app/ preload_$FILE ln –s /system/preload/$FILE/data/app/ preload_$FILE

done done

sync sync

echo〞completed! 〞>/data/app/exist echo "completed!">/data/app/exist

chmod 777/data/app/exist chmod 777/data/app/exist

sync sync

fi the fi

首先会判断标识(即/data/app/exist这个节点)是否存在,如果存在则不执行链接命令,如果不存在,则执行Linux命令link,把预装应用安装包链接到data/app下。 First, it will judge whether the identifier (that is, the node /data/app/exist) exists. If it exists, the link command will not be executed. If it does not exist, the Linux command link will be executed to link the pre-installed application installation package to data/app.

步骤202、在data分区添加标识。 Step 202, add an identifier to the data partition.

本实施例中添加标识,可以理解为设置标识为预设值。 Adding an identifier in this embodiment can be understood as setting the identifier as a preset value.

步骤203、扫描data分区的链接文件,根据链接文件实际扫描到预装应用安装包。 Step 203, scan the link file of the data partition, and actually scan the pre-installed application installation package according to the link file.

开机过程中,Package Manager Service会分别扫描system分区和data分区的应用程序目录,根据应用程序所在分区为其设置相应属性。 During the boot process, the Package Manager Service will scan the application directories of the system partition and the data partition respectively, and set corresponding attributes for the application according to the partition where the application is located.

步骤204、以用户级权限安装预装应用。 Step 204, install the pre-installed application with the user-level authority.

扫描完后,根据应用程序的相应属性将其安装到终端设备。 After scanning, install the application to the terminal device according to its corresponding properties.

步骤205、终端设备非第一次开机时,直接获取终端设备第一次开机时建立的链接文件。 Step 205, when the terminal device is not powered on for the first time, directly obtain the link file created when the terminal device is powered on for the first time.

开机时,仍会执行步骤201中的init.preload.sh脚本,由于在步骤202中已添加标识,因此当判断出存在标识时,则不执行链接命令。 When starting up, the init.preload.sh script in step 201 will still be executed. Since the logo has been added in step 202, when it is judged that there is a logo, the link command will not be executed.

步骤206、终端设备恢复出厂设置。 Step 206, the terminal device restores factory settings.

其中,恢复出厂设置会删除data分区的数据,也就是链接文件和标识都将被删除。 Among them, restoring the factory settings will delete the data in the data partition, that is, link files and logos will be deleted.

步骤207、终端设备恢复出厂设置后第一次开机时,返回步骤201。 Step 207, when the terminal device is turned on for the first time after restoring the factory settings, return to step 201.

这样,即使恢复出厂设置,预装应用安装包仍能重新安装到终端设备。 In this way, even if the factory settings are restored, the pre-installed application installation package can still be reinstalled to the terminal device.

实施例二:Embodiment two:

参考图3,为本发明再一实施例的终端设备预装应用的管理方法流程图。 Referring to FIG. 3 , it is a flowchart of a method for managing pre-installed applications on a terminal device according to another embodiment of the present invention.

步骤301,分别制作原始版本的差分资源包和升级版本的差分资源包。 Step 301 , respectively making an original version of a differential resource package and an upgraded version of a differential resource package.

其中,原始版本的差分资源包是根据需求编写源代码,对源代码进行编译,生成原始版本的数据文件和升级所需所有文件,将数据文件转换为img格式生成数据映像文件,并将升级所需的所有文件打包、压缩生成原始版本的差分资源包,其中数据文件包括制作T卡升级包的所有文件,差分资源包中包括与数据文件用相同源代编译得到的文件。升级版本的差分资源包是在源代码的基础上,根据升级的要求,对源代码进行修改并编译,得到升级版本的差分资源包。 Among them, the original version of the differential resource package is to write the source code according to the requirements, compile the source code, generate the original version of the data file and all the files required for the upgrade, convert the data file into the img format to generate the data image file, and upgrade all All the required files are packaged and compressed to generate the original version of the differential resource package, in which the data file includes all the files for making the T card upgrade package, and the differential resource package includes files compiled with the same source code as the data file. The upgraded version of the differential resource package is based on the source code, and according to the upgrade requirements, the source code is modified and compiled to obtain the upgraded version of the differential resource package.

步骤302,利用升级版本的差分资源包和原始版本的差分资源包生成差分包。 Step 302, using the upgraded version of the differential resource package and the original version of the differential resource package to generate a differential package.

步骤303,判断差分包中升级版本相对原始版本是否存在新增预装应用安装包,若存在新增预装应用安装包,则执行步骤304;否则不作任何处理。 In step 303, it is judged whether there is a new pre-installed application installation package in the upgraded version relative to the original version in the differential package, and if there is a new pre-installed application installation package, perform step 304; otherwise, do not do any processing.

具体地,本步骤包括如下子步骤: Specifically, this step includes the following sub-steps:

303a、解析差分包中包含的升级版本b和原始版本a。 303a. Parse the upgraded version b and the original version a included in the difference package.

303b、遍历两个版本中system分区预装应用目录中的预装应用安装包,采用对比算法查找升级版本b相对原始版本a是否存在新增预装应用安装包。 303b. Traverse the pre-installed application installation packages in the pre-installed application directory of the system partition in the two versions, and use a comparison algorithm to find whether there is a new pre-installed application installation package in the upgraded version b relative to the original version a.

步骤304、在差分包的脚本中设置预设命令,预设命令用于将标识恢复为默认值。 Step 304, setting a preset command in the script of the difference package, where the preset command is used to restore the flag to a default value.

以上步骤是制作升级包的过程。 The above steps are the process of making an upgrade package.

步骤305、当终端设备升级时,执行升级包中的预设命令。 Step 305, when the terminal device is upgraded, execute the preset command in the upgrade package.

基于实施例一,执行完预设命令后,标识被删除。 Based on the first embodiment, after the preset command is executed, the identifier is deleted.

步骤306、终端设备升级完成后第一次开机时,判断标识是否为默认值,若是默认值则执行步骤307,否则执行步骤308。 Step 306 , when the terminal device is turned on for the first time after the upgrade is completed, it is judged whether the flag is the default value, and if it is the default value, execute step 307 , otherwise execute step 308 .

步骤307、根据标识为默认值在data分区建立用于链接到新增预装应用安装包的新的链接文件。 Step 307: Create a new link file for linking to the newly added pre-installed application installation package in the data partition according to the default value identified.

本实施例中,如果升级版本中包括新增预装应用,则终端设备在升级完成后便会删除标识,开机时由于检测不到标识,则会执行link命令。 In this embodiment, if the upgraded version includes newly added pre-installed applications, the terminal device will delete the logo after the upgrade is completed, and will execute the link command because the logo cannot be detected when starting up.

后续过程可参考实施例一的步骤202-207。 For the subsequent process, refer to steps 202-207 of Embodiment 1.

步骤308、根据标识为预设值直接获取第一次开机建立的链接文件。 Step 308, directly acquire the link file created at the first startup according to the default value marked as.

后续过程可参考实施例一的步骤203-207。 For the subsequent process, refer to steps 203-207 of Embodiment 1.

本发明实施例在终端设备升级时,当升级版本相对原始版本存在新增预装应用的情况下,在升级包中设置用于将标识恢复为默认值的预设命令,这样终端设备在升级完成后第一次开机时,就会根据标识为默认值在data分区建立用于链接到新增预装应用安装包的新的链接文件。当升级版本存在新增预装应用时,如果不将标识恢复为默认值,终端设备就不会在用户数据分区建立对应新增预装应用的新的链接文件,新增预装应用就不能正常安装和使用,因此本发明能避免每一次开机都需重复建立链接的同时还能保证升级版本存在新增预装应用时新增预装应用能正常使用。 In the embodiment of the present invention, when the terminal device is upgraded, when the upgraded version has a new pre-installed application compared with the original version, a preset command for restoring the identifier to the default value is set in the upgrade package, so that the terminal device When starting up for the first time afterward, a new link file for linking to the newly added pre-installed application installation package will be created in the data partition according to the flag as the default value. When there are new pre-installed applications in the upgraded version, if the logo is not restored to the default value, the terminal device will not create a new link file corresponding to the newly-added pre-installed applications in the user data partition, and the newly-added pre-installed applications will not work normally. Installation and use, so the present invention can avoid the need to repeatedly establish a link every time it is turned on, and can also ensure that the new pre-installed application can be used normally when there is a new pre-installed application in the upgraded version.

对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。 For the aforementioned method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, Certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

实施例三:Embodiment three:

参阅图4,本实施例提供一种终端设备结构框图,包括。 Referring to FIG. 4 , this embodiment provides a structural block diagram of a terminal device, including:

链接建立单元401,用于终端设备第一次开机时,在用户数据分区建立用于链接到预装应用安装包的链接文件,所述预装应用安装包预设于系统分区的预装应用目录,所述预装应用目录设置为开机时不被扫描。 The link establishing unit 401 is used to create a link file in the user data partition for linking to the pre-installed application installation package when the terminal device is turned on for the first time, and the pre-installed application installation package is preset in the pre-installed application directory of the system partition , the pre-installed application directory is set not to be scanned when the device is powered on.

标识设置单元402,用于设置标识为预设值,所述标识为预设值用于使终端设备在非第一次开机时,直接获取终端设备第一次开机时建立的链接文件。 The identification setting unit 402 is configured to set the identification as a preset value, and the identification is a preset value used to enable the terminal device to directly obtain the link file created when the terminal device is turned on for the first time when it is not turned on for the first time.

升级单元403,用于当终端设备升级时,若升级版本相对原始版本存在新增预装应用安装包,则将所述标识恢复为默认值,所述标识为默认值用于使终端设备在升级后第一次开机时,在用户数据分区建立用于链接到新增预装应用安装包的新的链接文件。。 The upgrading unit 403 is used to restore the identification to a default value when the terminal equipment is upgraded, if the upgraded version has a newly added pre-installed application installation package relative to the original version, and the identification is the default value, which is used to make the terminal equipment upgrade When booting up for the first time, a new link file for linking to the newly added pre-installed application installation package is created in the user data partition. .

在本实施例中,升级单元403还用于当终端设备升级时,执行升级包中的预设命令,所述预设命令是在升级版本相对原始版本存在新增预装应用安装包时设置的将所述标识恢复为默认值的命令。 In this embodiment, the upgrade unit 403 is also used to execute a preset command in the upgrade package when the terminal device is upgraded, and the preset command is set when there is a new pre-installed application installation package in the upgrade version compared to the original version Command to restore said flags to their default values.

终端设备还包括标识判断单元404,用于当终端设备升级后第一次开机时,判断所述标识是否为默认值。 The terminal device also includes an identifier judging unit 404, configured to judge whether the identifier is a default value when the terminal device is powered on for the first time after being upgraded.

所述链接建立单元401还用于在所述标识为默认值时,在用户数据分区建立用于链接到新增预装应用安装包的新的链接文件,所述新增预装应用安装包预设于所述预装应用目录。 The link establishment unit 401 is further configured to establish a new link file in the user data partition for linking to the newly added preinstalled application installation package when the identifier is a default value, and the newly added preinstalled application installation package is preinstalled Set in the pre-installed application directory.

所述链接建立单元401还用于在所述标识为预设值时,直接获取获取终端设备第一次开机时建立的链接文件。。 The link establishment unit 401 is further configured to directly acquire a link file created when the terminal device is turned on for the first time when the flag is a preset value. .

需要说明的是,所述预装应用安装包可以至少为两个,所述链接文件分别与所述预装应用安装包一一对应。 It should be noted that there may be at least two preinstalled application installation packages, and the link files correspond to the preinstalled application installation packages respectively.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。 As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。 Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.

本发明可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本发明,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。 The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。 Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of, or also include elements inherent in, such a process, method, commodity, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

以上对本发明所提供的一种。,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The one provided above for the present invention. , have been introduced in detail, and specific examples have been used in this paper to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general For those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the contents of this specification should not be construed as limiting the present invention.

Claims (10)

1. a kind of management method of terminal device pre-installed applications is it is characterised in that comprise the following steps:When terminal device is started shooting for the first time, set up the threaded file for being linked to pre-installed applications installation kit in user data subregion, described pre-installed applications installation kit defaults in the pre-installed applications catalogue of system partitioning, described pre-installed applications catalogue is set to be not scanned during start; Setting is designated preset value, and the described preset value that is designated is used for making terminal device when non-first time is started shooting, the threaded file that direct access terminal device is set up when starting shooting for the first time; When updating terminal device, if there is newly-increased pre-installed applications installation kit in the relatively primitive version of upgraded version, then by described identification recovery be default value, described when being designated default value and being used for making terminal device start shooting for the first time after upgrading, the new threaded file for being linked to newly-increased pre-installed applications installation kit is set up in user data subregion.
2. method according to claim 1 it is characterised in that:Described when updating terminal device, if the relatively primitive version of upgraded version has newly-increased pre-installed applications installation kit, described identification recovery is included for default value: When updating terminal device, pre-set commands in execution AKU, described pre-set commands are that have in the relatively primitive version of upgraded version that arrange during newly-increased pre-installed applications installation kit is the order of default value by described identification recovery.
3. method according to claim 1 it is characterised in that:Described when updating terminal device, if there is newly-increased pre-installed applications installation kit in the relatively primitive version of upgraded version, then by described identification recovery be default value, described when being designated default value and being used for making terminal device start shooting for the first time after upgrading, user data subregion set up for be linked to newly-increased pre-installed applications installation kit new threaded file after also include: When starting shooting for the first time after updating terminal device, judge described in identify whether as default value;If described be designated default value, set up the new threaded file for being linked to newly-increased pre-installed applications installation kit in user data subregion, described newly-increased pre-installed applications installation kit defaults in described pre-installed applications catalogue.
4. method according to claim 3 it is characterised in that:If described be designated preset value, the threaded file that direct access terminal device is set up when starting shooting for the first time.
5. method according to claim 1 it is characterised in that:Described pre-installed applications installation kit at least two, described threaded file is corresponded with described pre-installed applications installation kit respectively.
6. a kind of terminal device is it is characterised in that include:Unit is set up in link, when starting shooting for the first time for terminal device, set up the threaded file for being linked to pre-installed applications installation kit in user data subregion, described pre-installed applications installation kit defaults in the pre-installed applications catalogue of system partitioning, described pre-installed applications catalogue is set to be not scanned during start; Mark arranging unit, is designated preset value for setting, the described preset value that is designated is used for making terminal device when non-first time is started shooting, the threaded file that direct access terminal device is set up when starting shooting for the first time;And Upgrade unit, for when updating terminal device, if there is newly-increased pre-installed applications installation kit in the relatively primitive version of upgraded version, then by described identification recovery be default value, described when being designated default value and being used for making terminal device start shooting for the first time after upgrading, the new threaded file for being linked to newly-increased pre-installed applications installation kit is set up in user data subregion.
7. terminal device according to claim 6 it is characterised in that:Described upgrade unit is additionally operable to when updating terminal device, the pre-set commands in execution AKU, and described pre-set commands are that have in the relatively primitive version of upgraded version that arrange during newly-increased pre-installed applications installation kit is the order of default value by described identification recovery.
8. the terminal device described in claim 6 it is characterised in that: Described terminal device also includes identifying judging unit, for identifying whether as default value described in when starting shooting for the first time after updating terminal device, judging;Described link set up unit be additionally operable to described be designated default value when, set up the new threaded file for being linked to newly-increased pre-installed applications installation kit in user data subregion, described newly-increased pre-installed applications installation kit defaults in described pre-installed applications catalogue.
9. the terminal device described in claim 8 it is characterised in that: Described link set up unit be additionally operable to described be designated preset value when, direct access obtains the threaded file set up when terminal device is started shooting for the first time.
10. the terminal device described in claim 6 it is characterised in that:Described pre-installed applications installation kit at least two, described threaded file is corresponded with described pre-installed applications installation kit respectively.
CN201510445187.0A 2015-07-27 2015-07-27 Terminal device pre-loaded application management method and terminal device Withdrawn CN106406919A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510445187.0A CN106406919A (en) 2015-07-27 2015-07-27 Terminal device pre-loaded application management method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510445187.0A CN106406919A (en) 2015-07-27 2015-07-27 Terminal device pre-loaded application management method and terminal device

Publications (1)

Publication Number Publication Date
CN106406919A true CN106406919A (en) 2017-02-15

Family

ID=58008669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510445187.0A Withdrawn CN106406919A (en) 2015-07-27 2015-07-27 Terminal device pre-loaded application management method and terminal device

Country Status (1)

Country Link
CN (1) CN106406919A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107153551A (en) * 2017-05-24 2017-09-12 努比亚技术有限公司 A kind of font switching method, mobile terminal and computer-readable recording medium
CN107608683A (en) * 2017-09-20 2018-01-19 武汉斗鱼网络科技有限公司 The method and device of automatic pre-installed applications program
CN107943490A (en) * 2017-11-16 2018-04-20 珠海市魅族科技有限公司 Using installation method, equipment, computer-readable recording medium and computer installation
CN108108172A (en) * 2017-12-08 2018-06-01 青岛海信移动通信技术股份有限公司 A kind of application management method and device
CN110489152A (en) * 2019-09-19 2019-11-22 四川虹美智能科技有限公司 A kind of application upgrade method and device based on android system
CN114143394A (en) * 2021-08-13 2022-03-04 希姆通信息技术(上海)有限公司 Application pre-installing and unloading method capable of unloading and recovering installation
CN114253565A (en) * 2021-12-29 2022-03-29 福建新大陆支付技术有限公司 Method for configuring preset APP on Android platform and computer readable medium
CN114969720A (en) * 2022-05-31 2022-08-30 东集技术股份有限公司 Installation method and device of android application, storage medium and computer equipment
CN116700812A (en) * 2022-09-01 2023-09-05 荣耀终端有限公司 Installation method, device, device, storage medium and program product of preinstalled application
CN117389638A (en) * 2023-12-08 2024-01-12 荣耀终端有限公司 A method for starting up electronic equipment and electronic equipment
CN118484211A (en) * 2023-11-29 2024-08-13 荣耀终端有限公司 Operating system upgrading method and electronic equipment
CN120428982A (en) * 2024-10-08 2025-08-05 荣耀终端股份有限公司 Application scanning installation method and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040078799A1 (en) * 2002-10-17 2004-04-22 Maarten Koning Interpartition communication system and method
US7788701B1 (en) * 2005-07-26 2010-08-31 Advanced Micro Devices, Inc. Content transfer restriction system for personal internet communicator
CN102521031A (en) * 2011-12-13 2012-06-27 华为终端有限公司 Management method of mobile terminal preset application program and mobile terminal
CN103631617A (en) * 2013-11-01 2014-03-12 北京奇虎科技有限公司 Method and device for unloading system application on terminal equipment
CN104182255A (en) * 2014-08-20 2014-12-03 青岛海信宽带多媒体技术有限公司 Method and terminal for upgrading library files of system application
CN104317623A (en) * 2011-12-13 2015-01-28 华为终端有限公司 Management method of preset application programs of mobile terminal and mobile terminal
CN104503788A (en) * 2014-12-16 2015-04-08 电子科技大学 Setting method capable of shortening starting time of Android operating system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040078799A1 (en) * 2002-10-17 2004-04-22 Maarten Koning Interpartition communication system and method
US7788701B1 (en) * 2005-07-26 2010-08-31 Advanced Micro Devices, Inc. Content transfer restriction system for personal internet communicator
CN102521031A (en) * 2011-12-13 2012-06-27 华为终端有限公司 Management method of mobile terminal preset application program and mobile terminal
CN104317623A (en) * 2011-12-13 2015-01-28 华为终端有限公司 Management method of preset application programs of mobile terminal and mobile terminal
CN103631617A (en) * 2013-11-01 2014-03-12 北京奇虎科技有限公司 Method and device for unloading system application on terminal equipment
CN104182255A (en) * 2014-08-20 2014-12-03 青岛海信宽带多媒体技术有限公司 Method and terminal for upgrading library files of system application
CN104503788A (en) * 2014-12-16 2015-04-08 电子科技大学 Setting method capable of shortening starting time of Android operating system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107153551B (en) * 2017-05-24 2020-11-10 邳州市润宏实业有限公司 Font switching method, mobile terminal and computer readable storage medium
CN107153551A (en) * 2017-05-24 2017-09-12 努比亚技术有限公司 A kind of font switching method, mobile terminal and computer-readable recording medium
CN107608683A (en) * 2017-09-20 2018-01-19 武汉斗鱼网络科技有限公司 The method and device of automatic pre-installed applications program
CN107943490A (en) * 2017-11-16 2018-04-20 珠海市魅族科技有限公司 Using installation method, equipment, computer-readable recording medium and computer installation
CN108108172A (en) * 2017-12-08 2018-06-01 青岛海信移动通信技术股份有限公司 A kind of application management method and device
CN110489152A (en) * 2019-09-19 2019-11-22 四川虹美智能科技有限公司 A kind of application upgrade method and device based on android system
CN114143394B (en) * 2021-08-13 2023-07-21 希姆通信息技术(上海)有限公司 Application pre-loading and unloading method capable of unloading and recovering installation
CN114143394A (en) * 2021-08-13 2022-03-04 希姆通信息技术(上海)有限公司 Application pre-installing and unloading method capable of unloading and recovering installation
CN114253565A (en) * 2021-12-29 2022-03-29 福建新大陆支付技术有限公司 Method for configuring preset APP on Android platform and computer readable medium
CN114969720A (en) * 2022-05-31 2022-08-30 东集技术股份有限公司 Installation method and device of android application, storage medium and computer equipment
CN116700812A (en) * 2022-09-01 2023-09-05 荣耀终端有限公司 Installation method, device, device, storage medium and program product of preinstalled application
CN116700812B (en) * 2022-09-01 2024-04-16 荣耀终端有限公司 Installation method, device, equipment, storage medium and program product for pre-installed application
CN118484211A (en) * 2023-11-29 2024-08-13 荣耀终端有限公司 Operating system upgrading method and electronic equipment
CN117389638A (en) * 2023-12-08 2024-01-12 荣耀终端有限公司 A method for starting up electronic equipment and electronic equipment
CN117389638B (en) * 2023-12-08 2024-09-06 荣耀终端有限公司 Method for starting up electronic equipment and electronic equipment
CN120428982A (en) * 2024-10-08 2025-08-05 荣耀终端股份有限公司 Application scanning installation method and electronic device

Similar Documents

Publication Publication Date Title
CN106406919A (en) Terminal device pre-loaded application management method and terminal device
US10742694B2 (en) Method for migrating data and terminal
CN111475227B (en) Business plug-in loading implementation method and device and terminal equipment
CN105867947B (en) Data processing method and device after preset application program updating
CN105335187B (en) Applied processing method and device
CN105786538B (en) software upgrading method and device based on android system
US11010259B1 (en) Container-based upgrades for appliances
CN104714828A (en) Methods and devices for installing and operating application
US10216510B2 (en) Silent upgrade of software with dependencies
CN109614167B (en) Method and system for managing plug-ins
CN106462430A (en) Method and device for obtaining application upgrade packages
CN103365644A (en) Method and device for expanding software functions
US12339951B2 (en) Enforcing policies for unmanaged applications
CN104866324A (en) Method for constructing portable operating system and portable memorizer
US8312445B2 (en) User-specified install locations
CN103793248A (en) Method and device for upgrading application program
CN108509215A (en) System software replacing method and device, terminal equipment and storage medium
CN110096354B (en) A kind of cloning method and device for application
US10127029B1 (en) Operating system installation using logical volumes
CN109101242B (en) Database automatic deployment method and device
CN113094085B (en) Component integration method, device, computer readable storage medium and electronic equipment
CN105786650A (en) Data management method and device
CN113805878B (en) Plug-in engineering method, device, computer system and medium
CN114047933B (en) Method, device, equipment and medium for multi-open Android application
US9940334B2 (en) Image forming apparatus and control method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20170215

WW01 Invention patent application withdrawn after publication