


技术领域technical field
本发明涉及软件管理技术领域,特别涉及一种应用软件的安装方法、装置、终端设备以及存储介质。The present invention relates to the technical field of software management, in particular to an application software installation method, device, terminal device and storage medium.
背景技术Background technique
终端设备上预装应用软件,实现终端设备的差异化是市场的普遍需求。目前,通常是厂家基于用户的需求,对终端设备安装应用软件,以便于用户在使用终端设备时,不再重新安装需求的应用软件。It is a common market demand to pre-install application software on terminal devices to achieve differentiation of terminal devices. At present, the manufacturer usually installs application software on the terminal device based on the user's requirements, so that the user does not need to reinstall the required application software when using the terminal device.
但是,采用现有的方法,终端设备的系统恢复出厂设置(也叫执行初始化操作)之后,需要用户手动获取应用软件,并需要手动安装应用软件,导致应用软件的安装效率较低。However, with the existing method, after the system of the terminal device is restored to factory settings (also called performing an initialization operation), the user needs to manually obtain the application software and manually install the application software, resulting in low application software installation efficiency.
发明内容SUMMARY OF THE INVENTION
本发明的主要目的是提供一种应用软件的安装方法、装置、终端设备以及存储介质,旨在解决现有技术中应用软件的安装效率较低的技术问题。The main purpose of the present invention is to provide an installation method, device, terminal device and storage medium of application software, aiming to solve the technical problem of low installation efficiency of application software in the prior art.
为实现上述目的,本发明提出种应用软件的安装方法,用于终端设备,所述终端设备具有预设分区,所述预设分区中的数据在执行初始化操作过程中禁止删除;所述方法包括以下步骤:In order to achieve the above object, the present invention proposes a method for installing application software, which is used in a terminal device, the terminal device has a preset partition, and data in the preset partition is prohibited from being deleted during an initialization operation; the method includes: The following steps:
在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件;After monitoring that the system performs the initialization operation, sending a first acquisition instruction to the preset partition, so that the preset partition returns to the target application software;
在执行初始化操作之后的新系统中,对所述目标应用软件进行安装。In the new system after the initialization operation is performed, the target application software is installed.
可选的,所述在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件的步骤,包括:Optionally, the step of sending a first acquisition instruction to the preset partition after monitoring that the system performs an initialization operation, so that the preset partition returns to the target application software, includes:
在监测到系统执行初始化操作之后,监听所述新系统的开机广播;After monitoring that the system performs the initialization operation, monitoring the start-up broadcast of the new system;
若监听到所述开机广播,则向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件。If the startup broadcast is monitored, a first acquisition instruction is sent to the preset partition, so that the preset partition returns to the target application software.
可选的,所述若监听到所述开机广播,则向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件的步骤,包括:Optionally, the step of sending a first acquisition instruction to the preset partition so that the preset partition returns to the target application software if the power-on broadcast is monitored, includes:
若监听到所述开机广播,则对所述新系统进行初始化设置;If the start-up broadcast is monitored, initialize the new system;
在对所述新系统完成初始化设置之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件。After completing the initial setting of the new system, a first acquisition instruction is sent to the preset partition, so that the preset partition returns to the target application software.
可选的,所述在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件的步骤之前,所述方法还包括:Optionally, before the step of sending a first acquisition instruction to the preset partition after monitoring that the system performs an initialization operation, so that the preset partition returns to the target application software, the method further includes:
在接收到触发操作时,根据所述触发操作向所述预设分区发送第二获取指令,以使所述预设分区返回多个应用软件对应的多个软件标识,所述预设分区存储多个所述应用软件;When a trigger operation is received, a second acquisition instruction is sent to the preset partition according to the trigger operation, so that the preset partition returns multiple software identifiers corresponding to multiple application software, and the preset partition stores multiple software identifiers. a said application software;
输出多个所述软件标识;outputting a plurality of the software identifiers;
若接收针到对多个所述软件标识发送的选择操作,则在多个所述软件标识中确定出与所述选择操作对应的目标软件标识;If receiving a selection operation sent for a plurality of the software identifiers, determining a target software identifier corresponding to the selection operation from among the multiple software identifiers;
将所述目标软件标识发送至所述预设分区,以使所述预设分区将多个所述应用软件中与所述目标软件标识对应的应用软件确定为所述目标应用软件。The target software identifier is sent to the preset partition, so that the preset partition determines the application software corresponding to the target software identifier among the plurality of application softwares as the target application software.
可选的,所述输出多个所述软件标识的步骤之后,所述方法还包括:Optionally, after the step of outputting a plurality of the software identifiers, the method further includes:
若接收针到对多个所述软件标识发送的删除操作,则在多个所述软件标识中确定出与所述删除操作对应的删除软件标识;If a deletion operation sent for a plurality of the software identifications is received, the deletion software identification corresponding to the deletion operation is determined from the plurality of the software identifications;
将所述删除软件标识发送至所述预设分区,以使所述预设分区将多个所述应用软件中与所删除软件标识对应的应用软件删除。Sending the deleted software identification to the preset partition, so that the preset partition deletes the application software corresponding to the deleted software identification among the plurality of application softwares.
可选的,所述在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件的步骤之前,所述方法还包括:Optionally, before the step of sending a first acquisition instruction to the preset partition after monitoring that the system performs an initialization operation, so that the preset partition returns to the target application software, the method further includes:
接收针对待存储应用软件发送的存储操作;Receive the storage operation sent for the application software to be stored;
将所述存储应用软件发送至所述预设分区,以使所述预设分区存储所述待存储应用软件,所述目标应用软件至少包括所述待存储应用软件。Sending the storage application software to the preset partition, so that the preset partition stores the application software to be stored, and the target application software at least includes the application software to be stored.
可选的,所述在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件的步骤之前,所述方法还包括:Optionally, before the step of sending a first acquisition instruction to the preset partition after monitoring that the system performs an initialization operation, so that the preset partition returns to the target application software, the method further includes:
接收针对待备份应用软件发送的数据备份操作;Receive data backup operations sent for the application software to be backed up;
根据所述数据备份操作,对所述待备份应用软件进行数据备份,获得备份数据;According to the data backup operation, data backup is performed on the application software to be backed up to obtain backup data;
将所述备份数据发送至所述预设分区,以使所述预设分区存储所述备份数据。Sending the backup data to the preset partition, so that the preset partition stores the backup data.
此外,为实现上述目的,本发明还提出了一种应用软件的安装装置,用于终端设备,所述终端设备具有预设分区,所述预设分区中的数据在执行初始化操作过程中禁止删除;所述装置包括:In addition, in order to achieve the above object, the present invention also proposes an installation device for application software, which is used for terminal equipment. The terminal equipment has a preset partition, and the data in the preset partition is prohibited from being deleted during the initialization operation. ; the device includes:
监测模块,用于在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件;a monitoring module, configured to send a first acquisition instruction to the preset partition after monitoring that the system performs an initialization operation, so that the preset partition returns to the target application software;
安装模块,用于在执行初始化操作之后的新系统中,对所述目标应用软件进行安装。The installation module is used to install the target application software in the new system after the initialization operation is performed.
此外,为实现上述目的,本发明还提出了一种终端设备,所述终端设备包括:存储器、处理器及存储在所述存储器上并在所述处理器上运行应用软件的安装程序,所述应用软件的安装程序被所述处理器执行时实现如上述任一项所述的应用软件的安装方法的步骤。In addition, in order to achieve the above object, the present invention also provides a terminal device, the terminal device includes: a memory, a processor, and an installation program stored in the memory and running application software on the processor, the When the application software installation program is executed by the processor, the steps of the application software installation method described in any one of the above are implemented.
此外,为实现上述目的,本发明还提出了一种存储介质,所述存储介质上存储有应用软件的安装程序,所述应用软件的安装程序被处理器执行时实现如上述任一项所述的应用软件的安装方法的步骤。In addition, in order to achieve the above object, the present invention also provides a storage medium, on which an installation program of application software is stored, and when the installation program of the application software is executed by a processor, any one of the above-mentioned implementations is implemented. The steps of the installation method of the application software.
本发明技术方案提出了一种应用软件的安装方法,用于终端设备,所述终端设备具有预设分区,所述预设分区中的数据在执行初始化操作过程中禁止删除;所述方法包括以下步骤:在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件;在执行初始化操作之后的新系统中,对所述目标应用软件进行安装。The technical solution of the present invention provides an application software installation method for a terminal device, the terminal device has a preset partition, and data in the preset partition is prohibited from being deleted during an initialization operation; the method includes the following: Steps: after monitoring that the system performs an initialization operation, send a first acquisition instruction to the preset partition, so that the preset partition returns to the target application software; in the new system after the initialization operation is performed, the target application software is software to install.
在本发明中,预设分区中的数据在执行初始化操作过程中禁止删除,当系统执行初始化操作之后,预设分区中的目标应用软件依旧存在,终端设备自动获取目标应用软件,并安装目标应用软件,并不需要用户手动下载并安装目标应用软件,从而提高了目标应用软件的安装效率。In the present invention, the data in the preset partition is prohibited from being deleted during the initialization operation. After the system performs the initialization operation, the target application software in the preset partition still exists, and the terminal device automatically obtains the target application software and installs the target application. The software does not require the user to manually download and install the target application software, thereby improving the installation efficiency of the target application software.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained according to the structures shown in these drawings without creative efforts.
图1为本发明实施例方案涉及的硬件运行环境的终端设备结构示意图;1 is a schematic structural diagram of a terminal device of a hardware operating environment involved in an embodiment of the present invention;
图2为本发明应用软件的安装方法第一实施例的流程示意图;FIG. 2 is a schematic flowchart of the first embodiment of the installation method of application software according to the present invention;
图3为本发明应用软件的安装装置第一实施例的结构框图。FIG. 3 is a structural block diagram of a first embodiment of an installation device for application software according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
参照图1,图1为本发明实施例方案涉及的硬件运行环境的终端设备结构示意图。Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of a terminal device of a hardware operating environment involved in an embodiment of the present invention.
终端设备可以是移动电话、智能电话、笔记本电脑、数字广播接收器、个人数字助理(PDA)、平板电脑(PAD)等用户设备(User Equipment,UE)、手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其它处理设备、移动台(Mobile station,MS)等。终端设备可能被称为用户终端、便携式终端、台式终端等。The terminal device can be a user equipment (User Equipment, UE) such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a personal digital assistant (PDA), a tablet computer (PAD), a handheld device, a vehicle-mounted device, a wearable device, A computing device or other processing device connected to a wireless modem, a mobile station (MS), or the like. Terminal devices may be referred to as user terminals, portable terminals, desktop terminals, and the like.
通常,终端设备包括:至少一个处理器301、存储器302以及存储在所述存储器上并可在所述处理器上运行的应用软件的安装程序,所述应用软件的安装程序配置为实现如前所述的应用软件的安装方法的步骤。Typically, a terminal device includes: at least one
处理器301可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器301可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器301也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(CentralProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器301可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。处理器301还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关应用软件的安装方法操作,使得应用软件的安装方法模型可以自主训练学习,提高效率和准确度。The
存储器302可以包括一个或多个存储介质,该存储介质可以是非暂态的。存储器302还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器302中的非暂态的存储介质用于存储至少一个指令,该至少一个指令用于被处理器301所执行以实现本申请中方法实施例提供的应用软件的安装方法。
在一些实施例中,终端还可选包括有:通信接口303和至少一个外围设备。处理器301、存储器302和通信接口303之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与通信接口303相连。具体地,外围设备包括:射频电路304、显示屏305和电源306中的至少一种。In some embodiments, the terminal may also optionally include: a
通信接口303可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器301和存储器302。在一些实施例中,处理器301、存储器302和通信接口303被集成在同一芯片或电路板上;在一些其他实施例中,处理器301、存储器302和通信接口303中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The
射频电路304用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路304通过电磁信号与通信网络以及其他通信设备进行通信。射频电路304将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路304包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路304可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:城域网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路304还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。The
显示屏305用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏305是触摸显示屏时,显示屏305还具有采集在显示屏305的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器301进行处理。此时,显示屏305还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏305可以为一个,电子设备的前面板;在另一些实施例中,显示屏305可以为至少两个,分别设置在电子设备的不同表面或呈折叠设计;在再一些实施例中,显示屏305可以是柔性显示屏,设置在电子设备的弯曲表面上或折叠面上。甚至,显示屏305还可以设置成非矩形的不规则图形,也即异形屏。显示屏305可以采用LCD(LiquidCrystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The
电源306用于为电子设备中的各个组件进行供电。电源306可以是交流电、直流电、一次性电池或可充电电池。当电源306包括可充电电池时,该可充电电池可以支持有线充电或无线充电。该可充电电池还可以用于支持快充技术。
本领域技术人员可以理解,图1中示出的结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 1 does not constitute a limitation on the terminal device, and may include more or less components than the one shown, or combine some components, or arrange different components.
此外,本发明实施例还提出一种存储介质,所述存储介质上存储有应用软件的安装程序,所述应用软件的安装程序被处理器执行时实现如上文所述的应用软件的安装方法的步骤。因此,这里将不再进行赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。对于本申请所涉及的存储介质实施例中未披露的技术细节,请参照本申请方法实施例的描述。确定为示例,程序指令可被部署为在一个终端设备上执行,或者在位于一个地点的多个终端设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个终端设备备上执行。In addition, an embodiment of the present invention also provides a storage medium, where an installation program of application software is stored on the storage medium, and when the installation program of the application software is executed by a processor, the above-mentioned installation method of the application software is implemented. step. Therefore, it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details that are not disclosed in the storage medium embodiments involved in the present application, please refer to the description of the method embodiments of the present application. Determined as an example, program instructions may be deployed to execute on one terminal device, or on multiple terminal devices located at one location, or alternatively, multiple terminal devices distributed across multiple locations and interconnected by a communication network ready to execute.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的程序可存储于一取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,上述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the process in the method of the above-mentioned embodiment can be implemented by instructing the relevant hardware through a computer program. The above-mentioned program can be stored in a storage medium, and when the program is executed, The processes of the embodiments of the various methods described above may be included. The above-mentioned storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) or the like.
实施例一:Example 1:
参照图2,图2为本发明应用软件的安装方法第一实施例的流程示意图,所述方法包括以下步骤:Referring to FIG. 2, FIG. 2 is a schematic flowchart of a first embodiment of an application software installation method of the present invention, and the method includes the following steps:
步骤S11:在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件。Step S11: After monitoring that the system performs an initialization operation, send a first acquisition instruction to the preset partition, so that the preset partition returns to the target application software.
需要说明的是,本发明的执行主体是终端设备,终端设备安装有应用软件的安装程序,终端设备执行应用软件的安装程序时,实现本发明的应用软件的安装方法的步骤。在本发明中,终端设备具有预设分区,所述预设分区中的数据在执行初始化操作过程中禁止删除。It should be noted that the execution body of the present invention is a terminal device, and the terminal device is installed with an application software installation program. When the terminal device executes the application software installation program, the steps of the application software installation method of the present invention are implemented. In the present invention, the terminal device has a preset partition, and data in the preset partition is prohibited from being deleted during the initialization operation.
终端设备通常是指安装有安卓系统的终端设备,初始化操作可以是指对终端设备进行恢复出厂设置,终端设备会删除预设分区以外的其他分区的全部数据,并将系统恢复到终端设备的出厂状态,该出厂状态的系统即为本发明所叙述的新系统。The terminal device usually refers to the terminal device with the Android system installed, and the initialization operation can refer to restoring the terminal device to factory settings. state, the system in the factory state is the new system described in the present invention.
系统执行初始化操作之后,终端设备自动生成第一获取指令,用于从预设分区获取目标应用软件,目标应用软件通常是非系统应用软件(也即第三方应用软件),目标应用软件也即是APP,例如,某宝或某奇艺等。After the system performs the initialization operation, the terminal device automatically generates a first acquisition instruction for acquiring the target application software from the preset partition. The target application software is usually non-system application software (that is, third-party application software), and the target application software is also APP. , for example, a treasure or a strange art, etc.
在终端设备出厂时,可以通过可U盘导入的方式,将目标应用软件拷贝到所述预设分区。When the terminal device leaves the factory, the target application software can be copied to the preset partition by means of importing from a U disk.
可以理解的是,在本发明中,安装之前的应用软件通常是指应用软件安装包,即,步骤S11的目标应用软件即为目标应用软件对应的软件安装包,存储于预设分区也即是目标应用软件的安装包。It can be understood that, in the present invention, the application software before installation usually refers to the application software installation package, that is, the target application software in step S11 is the software installation package corresponding to the target application software, which is stored in the preset partition. The installation package of the target application software.
步骤S12:在执行初始化操作之后的新系统中,对所述目标应用软件进行安装。Step S12: Install the target application software in the new system after the initialization operation is performed.
获取到目标应用软件之后,在新系统中对其进行安装,使得新系统自动安装目标应用软件,不需要用户手动安装目标应用软件,提高了目标应用软件的安装效率。After the target application software is acquired, it is installed in the new system, so that the new system automatically installs the target application software, and the user does not need to manually install the target application software, thereby improving the installation efficiency of the target application software.
目标应用软件会被安装到终端设备的数据分区,数据分区的数据可以被用户清除,同时目标应用软件可以支持卸载。The target application software will be installed into the data partition of the terminal device, the data in the data partition can be cleared by the user, and the target application software can support uninstallation.
具体的,通过信息系统的系统服务PackageManagerService,获取安装服务PackageInstallerService的接口对象PackageInstaller,然后调用PackageInstaller接口创建一个PackageInstallerSession。将目标应用软件的文件字节输入流传到PackageInstallerSession中,然后由新系统的系统服务完成后续的安装动作。Specifically, through the system service PackageManagerService of the information system, obtain the interface object PackageInstaller of the installation service PackageInstallerService, and then call the PackageInstaller interface to create a PackageInstallerSession. Stream the file byte input of the target application software to the PackageInstallerSession, and then the system service of the new system completes the subsequent installation actions.
本发明技术方案提出了一种应用软件的安装方法,用于终端设备,所述终端设备具有预设分区,所述预设分区中的数据在执行初始化操作过程中禁止删除;所述方法包括以下步骤:在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件;在执行初始化操作之后的新系统中,对所述目标应用软件进行安装。The technical solution of the present invention provides an application software installation method for a terminal device, the terminal device has a preset partition, and data in the preset partition is prohibited from being deleted during an initialization operation; the method includes the following: Steps: after monitoring that the system performs an initialization operation, send a first acquisition instruction to the preset partition, so that the preset partition returns to the target application software; in the new system after the initialization operation is performed, the target application software is software to install.
在本发明中,预设分区中的数据在执行初始化操作过程中禁止删除,当系统执行初始化操作之后,预设分区中的目标应用软件依旧存在,终端设备自动获取目标应用软件,并安装目标应用软件,并不需要用户手动下载并安装目标应用软件,从而提高了目标应用软件的安装效率。In the present invention, the data in the preset partition is prohibited from being deleted during the initialization operation. After the system performs the initialization operation, the target application software in the preset partition still exists, and the terminal device automatically obtains the target application software and installs the target application. The software does not require the user to manually download and install the target application software, thereby improving the installation efficiency of the target application software.
实施例二:Embodiment 2:
进一步的,所述在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件的步骤,包括:在监测到系统执行初始化操作之后,监听所述新系统的开机广播;若监听到所述开机广播,则向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件。Further, the step of sending a first acquisition instruction to the preset partition so that the preset partition returns to the target application software after monitoring that the system performs an initialization operation includes: after monitoring that the system performs an initialization operation , monitor the startup broadcast of the new system; if the startup broadcast is monitored, send a first acquisition instruction to the preset partition, so that the preset partition returns to the target application software.
其中,所述若监听到所述开机广播,则向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件的步骤,包括:若监听到所述开机广播,则对所述新系统进行初始化设置;在对所述新系统完成初始化设置之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件。Wherein, the step of sending a first acquisition instruction to the preset partition so that the preset partition returns to the target application software if the boot broadcast is monitored includes: if the boot broadcast is monitored, then Perform initialization settings on the new system; after completing the initialization settings on the new system, send a first acquisition instruction to the preset partition, so that the preset partition returns to the target application software.
系统执行初始化操作之后,获得新系统,新系统可能处于关机状态,此时,无法进行本发明的安装操作,需要监听新系统是否发出了开机广播,当监听到开机广播时,表明新系统开机,可以执行安装过程。After the system performs the initialization operation, a new system is obtained, and the new system may be in a shutdown state. At this time, the installation operation of the present invention cannot be performed. It is necessary to monitor whether the new system has sent a boot broadcast. When the boot broadcast is monitored, it indicates that the new system is powered on. The installation process can be performed.
具体应用中,可以注册一个广播接收器,用于监听开机广播,实现方式为:“android.intent.action.BOOT_COMPLETED”。当新系统开机之后,还需要进行新系统的初始化设置,只有实现了新系统的初始化设置之后,才能进行后续安装的步骤。其中,通过读取系统数据库中的USER_SETUP_COMPLETE的信息判断是否完成了初始化设置过程。In a specific application, a broadcast receiver can be registered to monitor the boot broadcast. The implementation method is: "android.intent.action.BOOT_COMPLETED". After the new system is powered on, the initialization settings of the new system need to be performed. Only after the initialization settings of the new system are realized, the subsequent installation steps can be performed. Among them, it is judged whether the initialization setting process is completed by reading the information of USER_SETUP_COMPLETE in the system database.
进一步的,所述在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件的步骤之前,所述方法还包括:在接收到触发操作时,根据所述触发操作向所述预设分区发送第二获取指令,以使所述预设分区返回多个应用软件对应的多个软件标识,所述预设分区存储多个所述应用软件;输出多个所述软件标识;若接收针到对多个所述软件标识发送的选择操作,则在多个所述软件标识中确定出与所述选择操作对应的目标软件标识;将所述目标软件标识发送至所述预设分区,以使所述预设分区将多个所述应用软件中与所述目标软件标识对应的应用软件确定为所述目标应用软件。Further, before the step of sending a first acquisition instruction to the preset partition after monitoring that the system performs an initialization operation, so that the preset partition returns to the target application software, the method further includes: after receiving the When a trigger operation is performed, a second acquisition instruction is sent to the preset partition according to the trigger operation, so that the preset partition returns multiple software identifiers corresponding to multiple application software, and the preset partition stores a plurality of the application software; outputting a plurality of the software identifiers; if receiving a selection operation sent for the multiple software identifiers, determining a target software identifier corresponding to the selection operation among the multiple software identifiers; The target software identifier is sent to the preset partition, so that the preset partition determines the application software corresponding to the target software identifier among the plurality of application softwares as the target application software.
触发操作可以是指用于调出预设分区的多个应用软件对应的多个软件标识的操作,选择操作可以是针对多个软件标识中的某一个或几个进行选择的操作,被选择的某一个或几个软件标识即为目标软件标识。The trigger operation may refer to an operation for calling out multiple software identifiers corresponding to multiple application softwares in the preset partition, and the selection operation may be an operation for selecting one or several of the multiple software identifiers, and the selected One or several software identifiers are the target software identifiers.
在该实施例中,预设分区中的多个应用软件也可以是指多个应用软件对应的安装包。In this embodiment, the multiple application software in the preset partition may also refer to the installation packages corresponding to the multiple application software.
可以理解的是,目标应用软件可以是用户基于需求,发送选择操作,以根据选择操作确定对应的目标应用软件,而并不需要对预设分区中的全部应用软件执行安装。若用户未发送任何选择操作,则需要对对预设分区中的全部应用软件执行安装。It can be understood that, the target application software may be a user sending a selection operation based on requirements to determine the corresponding target application software according to the selection operation, and it is not necessary to perform installation on all application software in the preset partition. If the user does not send any selection operation, it is necessary to perform installation on all the application software in the preset partition.
进一步的,所述输出多个所述软件标识的步骤之后,所述方法还包括:若接收针到对多个所述软件标识发送的删除操作,则在多个所述软件标识中确定出与所述删除操作对应的删除软件标识;将所述删除软件标识发送至所述预设分区,以使所述预设分区将多个所述应用软件中与所删除软件标识对应的应用软件删除。Further, after the step of outputting a plurality of the software identifiers, the method further includes: if a deletion operation sent for the plurality of the software identifiers is received, determining, among the plurality of the software identifiers, the The deletion software identification corresponding to the deletion operation; the deletion software identification is sent to the preset partition, so that the preset partition deletes the application software corresponding to the deleted software identification among the plurality of application softwares.
用户可以发送删除操作,被删除操作选中的软件标识即为删除软件标识,删除软件标识对应的应用软件需要被删除。在该实施例中,用户可以基于需求,删除预设分区中的应用软件,以释放预设分区的存储空间。The user can send a deletion operation, the software ID selected by the deletion operation is the deletion software ID, and the application software corresponding to the deletion software ID needs to be deleted. In this embodiment, the user can delete the application software in the preset partition based on requirements, so as to release the storage space of the preset partition.
进一步的,所述在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件的步骤之前,所述方法还包括:接收针对待存储应用软件发送的存储操作;将所述存储应用软件发送至所述预设分区,以使所述预设分区存储所述待存储应用软件,所述目标应用软件至少包括所述待存储应用软件。Further, before the step of sending a first acquisition instruction to the preset partition so that the preset partition returns to the target application software after monitoring that the system performs an initialization operation, the method further includes: Storage operation sent by storage application software; sending the storage application software to the preset partition, so that the preset partition stores the application software to be stored, and the target application software at least includes the application software to be stored .
对于预设分区中未包括的应用软件,用户可以发送存储操作,存储操作针对的应用软件即为存储应用软件,存储应用软件可以基于用户的存储操作,存储于预设分区,以使得存储应用软件在系统执行初始化操作之后,也可以被安装,并不需要用户再手动安装存储应用软件,提高了用户体验。For application software not included in the preset partition, the user can send a storage operation, and the application software targeted for the storage operation is the storage application software, and the storage application software can be stored in the preset partition based on the user's storage operation, so that the storage application software After the system performs the initialization operation, it can also be installed, and the user does not need to manually install the storage application software, which improves the user experience.
进一步的,所述在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件的步骤之前,所述方法还包括:接收针对待备份应用软件发送的数据备份操作;根据所述数据备份操作,对所述待备份应用软件进行数据备份,获得备份数据;将所述备份数据发送至所述预设分区,以使所述预设分区存储所述备份数据。Further, before the step of sending a first acquisition instruction to the preset partition so that the preset partition returns to the target application software after monitoring that the system performs an initialization operation, the method further includes: The data backup operation sent by the backup application software; according to the data backup operation, perform data backup on the application software to be backed up to obtain backup data; send the backup data to the preset partition, so that the preset The partition stores the backup data.
数据备份操作针对的应用软件即是指待备份应用软件,备份数据可以是指待备份应用软件的全部数据,也可以是指部分数据,用户基于需求设定,本发明不做限定。备份数据存储于预设分区,备份数据在系统执行初始化操作之后不会被清除,保证了备份数据的安全性和完整性。The application software targeted by the data backup operation refers to the application software to be backed up, and the backup data may refer to the entire data of the application software to be backed up, or may refer to part of the data, which is set by the user based on requirements, which is not limited in the present invention. The backup data is stored in the preset partition, and the backup data will not be cleared after the system performs the initialization operation, which ensures the security and integrity of the backup data.
参照图3,图3为本发明应用软件的安装装置第一实施例的结构框图,所述装置用于终端设备,所述终端设备具有预设分区,所述预设分区中的数据在执行初始化操作过程中禁止删除;基于与前述实施例相同的发明构思,所述装置包括:Referring to FIG. 3, FIG. 3 is a structural block diagram of a first embodiment of an installation device for application software according to the present invention. The device is used in a terminal device, and the terminal device has a preset partition, and the data in the preset partition is performing initialization. Deletion is prohibited during the operation; based on the same inventive concept as the foregoing embodiment, the device includes:
监测模块10,用于在监测到系统执行初始化操作之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件;The
安装模块20,用于在执行初始化操作之后的新系统中,对所述目标应用软件进行安装。The
进一步的,监测模块10,还用于在监测到系统执行初始化操作之后,监听所述新系统的开机广播;若监听到所述开机广播,则向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件。Further, the
进一步的,监测模块10,还用于若监听到所述开机广播,则对所述新系统进行初始化设置;对所述新系统完成初始化设置之后,向所述预设分区发送第一获取指令,以使所述预设分区返回目标应用软件。Further, the
进一步的,装置还包括:Further, the device also includes:
选择模块,用于在接收到触发操作时,根据所述触发操作向所述预设分区发送第二获取指令,以使所述预设分区返回多个应用软件对应的多个软件标识,所述预设分区存储多个所述应用软件;输出多个所述软件标识;若接收针到对多个所述软件标识发送的选择操作,则在多个所述软件标识中确定出与所述选择操作对应的目标软件标识;将所述目标软件标识发送至所述预设分区,以使所述预设分区将多个所述应用软件中与所述目标软件标识对应的应用软件确定为所述目标应用软件。A selection module, configured to send a second acquisition instruction to the preset partition according to the trigger operation when a trigger operation is received, so that the preset partition returns multiple software identifiers corresponding to multiple application software, the The preset partition stores a plurality of the application software; outputs a plurality of the software identifiers; if receiving a selection operation for sending the plurality of the software identifiers, determining a relationship with the selection among the multiple software identifiers Operate the corresponding target software identification; send the target software identification to the preset partition, so that the preset partition determines the application software corresponding to the target software identification among the plurality of application software as the target application software.
进一步的,装置还包括:Further, the device also includes:
删除模块,用于若接收针到对多个所述软件标识发送的删除操作,则在多个所述软件标识中确定出与所述删除操作对应的删除软件标识;a deletion module, configured to determine a deletion software identification corresponding to the deletion operation in the plurality of software identifications if the deletion operation sent for the plurality of software identifications is received;
将所述删除软件标识发送至所述预设分区,以使所述预设分区将多个所述应用软件中与所删除软件标识对应的应用软件删除。Sending the deleted software identification to the preset partition, so that the preset partition deletes the application software corresponding to the deleted software identification among the plurality of application softwares.
进一步的,装置还包括:Further, the device also includes:
软件存储模块,用于接收针对待存储应用软件发送的存储操作;将所述存储应用软件发送至所述预设分区,以使所述预设分区存储所述待存储应用软件,所述目标应用软件至少包括所述待存储应用软件。a software storage module, configured to receive a storage operation sent for application software to be stored; send the storage application software to the preset partition, so that the preset partition stores the application software to be stored, the target application software The software at least includes the application software to be stored.
进一步的,装置还包括:Further, the device also includes:
数据备份模块,用于接收针对待备份应用软件发送的数据备份操作;根据所述数据备份操作,对所述待备份应用软件进行数据备份,获得备份数据;将所述备份数据发送至所述预设分区,以使所述预设分区存储所述备份数据。A data backup module is configured to receive a data backup operation sent for the application software to be backed up; according to the data backup operation, perform data backup on the application software to be backed up to obtain backup data; send the backup data to the preset A partition is set so that the preset partition stores the backup data.
需要说明的是,由于本实施例的装置所执行的步骤与前述方法实施例的步骤相同,其具体的实施方式以及可以达到的技术效果都可参照前述实施例,这里不再赘述。It should be noted that, since the steps performed by the apparatus of this embodiment are the same as the steps of the foregoing method embodiments, the specific implementation and technical effects that can be achieved can be referred to the foregoing embodiments, which will not be repeated here.
以上所述仅为本发明的可选实施例,并非因此限制本发明的专利范围,凡是在本发明的发明构思下,利用本发明说明书及附图内容所作的等效结构变换,或直接/间接运用在其他相关的技术领域均包括在本发明的专利保护范围内。The above descriptions are only optional embodiments of the present invention, and are not intended to limit the scope of the present invention. Under the inventive concept of the present invention, any equivalent structural transformations made by using the contents of the description and drawings of the present invention, or direct/indirect Applications in other related technical fields are included in the scope of patent protection of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210267808.0ACN114594965A (en) | 2022-03-17 | 2022-03-17 | Application software installation method and device, terminal equipment and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210267808.0ACN114594965A (en) | 2022-03-17 | 2022-03-17 | Application software installation method and device, terminal equipment and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN114594965Atrue CN114594965A (en) | 2022-06-07 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210267808.0APendingCN114594965A (en) | 2022-03-17 | 2022-03-17 | Application software installation method and device, terminal equipment and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN114594965A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024067053A1 (en)* | 2022-09-28 | 2024-04-04 | 华为技术有限公司 | Application program installation method and electronic device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109117150A (en)* | 2018-07-17 | 2019-01-01 | 深圳市茁壮网络股份有限公司 | A kind of customization home application installation method, device and set-top box |
| CN111221544A (en)* | 2020-01-09 | 2020-06-02 | 华为技术有限公司 | Management method and terminal for pre-installed application software |
| CN111258596A (en)* | 2020-03-20 | 2020-06-09 | 深圳传音控股股份有限公司 | Application program installation method, terminal device and computer readable storage medium |
| CN111316228A (en)* | 2017-09-01 | 2020-06-19 | 深圳传音通讯有限公司 | Terminal, application software installation method for initial startup of terminal and readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111316228A (en)* | 2017-09-01 | 2020-06-19 | 深圳传音通讯有限公司 | Terminal, application software installation method for initial startup of terminal and readable storage medium |
| CN109117150A (en)* | 2018-07-17 | 2019-01-01 | 深圳市茁壮网络股份有限公司 | A kind of customization home application installation method, device and set-top box |
| CN111221544A (en)* | 2020-01-09 | 2020-06-02 | 华为技术有限公司 | Management method and terminal for pre-installed application software |
| CN111258596A (en)* | 2020-03-20 | 2020-06-09 | 深圳传音控股股份有限公司 | Application program installation method, terminal device and computer readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024067053A1 (en)* | 2022-09-28 | 2024-04-04 | 华为技术有限公司 | Application program installation method and electronic device |
| Publication | Publication Date | Title |
|---|---|---|
| US8972966B2 (en) | Updating firmware in a hybrid computing environment | |
| KR102148948B1 (en) | Multi tasking method of electronic apparatus and electronic apparatus thereof | |
| CN107734616B (en) | Application program closing method and device, storage medium and electronic equipment | |
| CN108595226B (en) | Dynamic loading method and device and computer readable storage medium | |
| KR102270129B1 (en) | Wireless control method, control apparatus and server thereof | |
| CN104765591A (en) | Method and system for updating software configuration parameter, and terminal server | |
| CN106227588A (en) | The creation method of a kind of multi-instance object, device and mobile terminal | |
| CN107861730B (en) | Application processing method and mobile terminal | |
| CN109375937A (en) | System upgrading method and device, terminal equipment and storage medium | |
| CN107943270B (en) | Application service control method and device, storage medium and mobile terminal | |
| CN106713608B (en) | Application function state modification method and device and terminal | |
| CN113138786B (en) | Application updating method and device | |
| CN111399874A (en) | System upgrading method and device, storage medium and intelligent wearable device | |
| CN106775827A (en) | Application program update method and device, and computer equipment | |
| CN106775828A (en) | Application program installation method and device, computer equipment | |
| CN113543104B (en) | Bluetooth communication method, multimedia device and storage medium | |
| CN112612593B (en) | Bluetooth control method, device, terminal equipment and computer readable storage medium | |
| EP2869604B1 (en) | Method, apparatus and device for processing a mobile terminal resource | |
| CN112965746A (en) | Application engineering construction method and device, equipment and computer readable storage medium | |
| CN106095423B (en) | Method, terminal and server for providing browsing service | |
| CN114594965A (en) | Application software installation method and device, terminal equipment and storage medium | |
| CN112612526B (en) | Application program control method, device, terminal equipment and storage medium | |
| CN111309325A (en) | Method and device for reference of third-party library and mobile terminal | |
| CN112559081A (en) | Data loading method, device, equipment and computer readable storage medium | |
| CN109413714B (en) | Method, device, storage medium and terminal for processing user agent information |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |