WO2024138588A1 - Dual-system secure mobile phone resetting method and apparatus, terminal, and storage medium - Google Patents
Dual-system secure mobile phone resetting method and apparatus, terminal, and storage medium Download PDFInfo
- Publication number
- WO2024138588A1 WO2024138588A1 PCT/CN2022/143688 CN2022143688W WO2024138588A1 WO 2024138588 A1 WO2024138588 A1 WO 2024138588A1 CN 2022143688 W CN2022143688 W CN 2022143688W WO 2024138588 A1 WO2024138588 A1 WO 2024138588A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- container
- reset
- init
- file
- restart
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 166
- 230000008569 process Effects 0.000 claims abstract description 116
- 230000004048 modification Effects 0.000 claims abstract description 54
- 238000012986 modification Methods 0.000 claims abstract description 54
- 238000011068 loading method Methods 0.000 claims abstract description 8
- 238000011084 recovery Methods 0.000 claims description 29
- 230000006870 function Effects 0.000 claims description 17
- 230000009191 jumping Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 239000007943 implant Substances 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the embodiments of the present invention relate to the field of mobile terminal technology, and in particular to a dual-system secure mobile phone reset method, device, terminal and storage medium.
- the inventors found the following technical problems: during the use of the mobile phone, it is inevitable to restore the mobile phone to factory settings.
- a slimmed-down Linux system for configuring and calling the underlying interface, and responsible for starting the Android system corresponding to each container it is easy to generate errors and exceptions when the user performs a reset operation;
- the host is required to notify the container of the factory reset information, select the Boot Loader in the container, and then erase the corresponding file content in the file system to complete the restart.
- the time consumption is close to that of OTA upgrade, which affects the user experience.
- the file mounting part in the main function of the init.rc file of the reset container is modified by using the restart modification subprocess to point to the corresponding reset corresponding data file to load the image of the container when it was last exited;
- a modification module used to modify the file mounting part in the main function of the init.rc file of the reset container by restarting the modification subprocess to point to the corresponding reset corresponding data file;
- a loading module used to load the image of the container when it was last exited
- an embodiment of the present invention further provides a terminal, including:
- processors one or more processors
- a storage device for storing one or more programs
- an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the dual-system secure mobile phone reset method provided in the above embodiment.
- the dual-system secure mobile phone reset method, device, terminal and storage medium provided by the embodiment of the present invention restarts the container corresponding to the reset operation, generates a restart modification subprocess by using the init process; determines the init process of the reset container and the init.rc file of the reset container; uses the restart modification subprocess to modify the file mounting part in the main function of the init.rc file of the reset container to point to the corresponding reset corresponding data file; loads the image of the container when it was last exited; uses the restart modification subprocess to adjust the init process of the reset container, so that the init process directly jumps to the file mounting part recorded in the boot init.rc script to run.
- FIG1 is a flow chart of a dual-system secure mobile phone reset method provided in Embodiment 1 of the present invention.
- FIG6 is a structural diagram of a terminal provided in Embodiment 5 of the present invention.
- Step 110 restart the container corresponding to the reset operation, and use the init process to generate a restart modification subprocess.
- the slimmed-down Linux system Since it is necessary to control the restart of the container, it is necessary to implant the corresponding process in the slimmed-down Linux system to achieve the purpose of controlling the restart of the container. Since the slimmed-down Linux system only provides hardware drivers to provide the hardware foundation for LXC, the number of its own processes is relatively small, and the only process that can survive the normal cycle of the slimmed-down Linux system is the init process. Therefore, the init process can be used to generate a restart modification subprocess, and the restart modification subprocess can be used to adjust and control the system in the LXC container.
- Step 120 Determine the init process of resetting the container and the init.rc file of resetting the container.
- the init process usually only needs to remain alive without any adjustment.
- the init.rc script since the file data has been changed, the init.rc script has been modified accordingly. Therefore, it is necessary to adjust the init process to register the file data in the main function in the init.rc script. Since the image loading method is adopted, the hardware driver part has been loaded, and the init process does not need to reload the hardware driver, but only needs to reregister the corresponding data file. Therefore, the init process of the reset container can be controlled by restarting the modified subprocess, skipping the loading of the hardware driver part, and directly jumping to the boot init.rc record file mounting part to run the script.
- This embodiment generates a restart modification subprocess by restarting the container corresponding to the reset operation, using the init process; determining the init process of the reset container and the init.rc file of the reset container; using the restart modification subprocess to modify the file mounting part in the main function of the init.rc file of the reset container to point to the corresponding reset corresponding data file; loading the image of the container when it was last exited; using the restart modification subprocess to adjust the init process of the reset container, so that the init process directly jumps to the file mounting part recorded in the boot init.rc script to run.
- the host machine's interference ability with the container is fully utilized, and the restart modification subprocess is generated by utilizing the kernel process of the host machine.
- the init.rc script of the container that needs to be reset is modified, the corresponding mount file data is adjusted, and the init process corresponding to the container is adjusted to jump directly to the file mounting part recorded in the boot init.rc script to run, without reconfiguring the corresponding hardware mounting part, so that the reset operation saves the data file erasing process, and there is no need to remount the hardware driver, which greatly saves the system reset time corresponding to the container and improves the user experience of users using dual-system mobile phones to reset.
- the method may further add the following steps: using the restart modification subprocess to add a factory reset broadcast service in the container system, broadcasting the factory reset information, and enabling the Android system to clear the memory content. Since the mobile phone service is provided by using the container loading image method, and there are still some active processes in the loaded image, including system processes and application processes, and these processes may occupy the original user data.
- the restart modification subprocess may also be used to derive a subprocess from the init process in the container system to provide the corresponding broadcast service, broadcast the corresponding factory reset information to all processes in the container system, and enable the corresponding process to clear the memory content to avoid read and write errors in the system.
- Figure 3 is a flow chart of a dual-system secure mobile phone reset method provided in Embodiment 2 of the present invention. This embodiment is optimized based on the above embodiment.
- the method may further add the following steps: upon receiving a current system reset operation, save the container image corresponding to the current system; read the init process from the kernel, and obtain the container code corresponding to the current system from the init process, and reset the user data in the current system; close the container corresponding to the container code.
- Step 250 Determine the init process of resetting the container and the init.rc file of resetting the container.
- new user data is created for the current system, and a container belonging hidden attribute is added to the new user data to avoid file pointing errors.
- a container belonging hidden attribute is added to the new user data to avoid file pointing errors.
- the upgrade code temporary storage area has the same size as the second flash memory area of the vehicle ECU.
- the device further includes:
- the partitioning module is used to partition the resources of the restarted container by using cgroup according to the resources of the container when it was last exited, so as to make them consistent with the resources exited last time.
- Figure 6 is a schematic diagram of the structure of a terminal provided in Embodiment 5 of the present invention.
- Figure 6 shows a block diagram of an exemplary terminal 12 suitable for implementing the embodiments of the present invention.
- the terminal 12 shown in Figure 6 is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
- Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
- Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages.
- the program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or terminal.
- the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
- LAN local area network
- WAN wide area network
- Internet service provider e.g., via the Internet using an Internet service provider
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Telephone Function (AREA)
Abstract
Disclosed in embodiments of the present invention are a dual-system secure mobile phone resetting method and apparatus, a sever, and a storage medium. The method comprises: restarting a container corresponding to a resetting operation, and generating a restart modification sub-process by using an init process; determining an init process of a reset container and an init.rc file of the reset container; modifying a file mounting part in a main function of the init.rc file of the reset container by using the restart modification sub-process, to point to a data file corresponding to the corresponding resetting; loading a mirror image of the container when exiting last time; and adjusting the init process of the reset container by using the restart modification sub-process, so that the init process directly jumps to guide an init.rc script to record the running of the file mounting part. Therefore, the resetting operation omits an erasing process of the data file, without remounting hardware drive, thereby greatly saving system resetting time corresponding to the container, and improving the user experience using a dual-system mobile phone for resetting.
Description
本发明实施例涉及移动终端技术领域,尤其涉及一种双系统安全手机重置方法、装置、终端及存储介质。The embodiments of the present invention relate to the field of mobile terminal technology, and in particular to a dual-system secure mobile phone reset method, device, terminal and storage medium.
随着移动终端技术不断推进,智能手机广泛应用于各种场景。成为日常工作和生活中密不可分的工具。为便于将工作和生活分开,以及出于安全角度的考虑,部分用户采用双手机策略,及一个手机用于生活,另一手机用于办公使用。基于用户的上述需求,双系统安全手机应运而生。双系统安全手机借助于容器技术,能够并行使用两个系统。并可随时唤醒后台的系统,实现两个系统的同时切换;With the continuous advancement of mobile terminal technology, smartphones are widely used in various scenarios. They have become an inseparable tool in daily work and life. In order to separate work and life, and for security reasons, some users adopt a dual-phone strategy, using one phone for life and the other for office use. Based on the above needs of users, dual-system security phones came into being. With the help of container technology, dual-system security phones can use two systems in parallel. And the background system can be woken up at any time to achieve simultaneous switching of the two systems;
在实现本发明的过程中,发明人发现如下技术问题:在手机使用过程中,不可避免会对手机进行恢复出厂设置操作。然而对于上述双系统手机而言,由于其实际上设置了三个系统:瘦身后的Linux系统,用于实现底层接口的配置和调用,以及负责启动每个容器对应的安卓系统,在用户进行重置操作时,容易产生错误异常;现有方式中,要求宿主机将恢复出厂设置信息通知容器,在容器内通过对Boot Loader进行选择,然后擦除到文件系统中对应的文件内容,完成重新启动。才能实现恢复出厂设置,其耗时接近于OTA升级,影响了用户的使用体验。In the process of implementing the present invention, the inventors found the following technical problems: during the use of the mobile phone, it is inevitable to restore the mobile phone to factory settings. However, for the above-mentioned dual-system mobile phone, since it actually has three systems: a slimmed-down Linux system for configuring and calling the underlying interface, and responsible for starting the Android system corresponding to each container, it is easy to generate errors and exceptions when the user performs a reset operation; in the existing method, the host is required to notify the container of the factory reset information, select the Boot Loader in the container, and then erase the corresponding file content in the file system to complete the restart. To achieve factory reset, the time consumption is close to that of OTA upgrade, which affects the user experience.
发明内容Summary of the invention
本发明实施例提供一种双系统安全手机重置方法、装置、终端及存储介质,以解决现有技术中双系统安全手机恢复设置操作耗时较长的技术问题。The embodiments of the present invention provide a dual-system secure mobile phone reset method, device, terminal and storage medium to solve the technical problem that the dual-system secure mobile phone restoration setting operation takes a long time in the prior art.
第一方面,本发明实施例提供了一种双系统安全手机重置方法,包括:In a first aspect, an embodiment of the present invention provides a dual-system secure mobile phone reset method, comprising:
重新启动重置操作对应的容器,利用init进程生成重启修改子进程;Restart the container corresponding to the reset operation, and use the init process to generate a restart modification subprocess;
确定重置容器的init进程和重置容器的init.rc文件;Determine the init process for resetting the container and the init.rc file for resetting the container;
利用重启修改子进程对所述重置容器的init.rc文件的main主函数中的文件挂载部分进行修改,以指向对应的重置对应的数据文件加载所述容器前次退出时的镜像;The file mounting part in the main function of the init.rc file of the reset container is modified by using the restart modification subprocess to point to the corresponding reset corresponding data file to load the image of the container when it was last exited;
利用重启修改子进程对所述重置容器的init进程进行调整,以使得所述init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。The init process of the reset container is adjusted by restarting the modification subprocess, so that the init process directly jumps to the file mounting part recorded in the boot init.rc script to run.
第二方面,本发明实施例还提供了一种双系统安全手机重置装置,包括:In a second aspect, an embodiment of the present invention further provides a dual-system secure mobile phone reset device, comprising:
生成模块,用于重新启动重置操作对应的容器,利用init进程生成重启修改子进程;Generate a module, which is used to restart the container corresponding to the reset operation, and use the init process to generate a restart modification subprocess;
确定模块,用于确定重置容器的init进程和重置容器的init.rc文件;A determination module is used to determine the init process of resetting the container and the init.rc file of resetting the container;
修改模块,用于利用重启修改子进程对所述重置容器的init.rc文件的main主函数中的文件挂载部分进行修改,以指向对应的重置对应的数据文件;A modification module, used to modify the file mounting part in the main function of the init.rc file of the reset container by restarting the modification subprocess to point to the corresponding reset corresponding data file;
加载模块,用于加载所述容器前次退出时的镜像;A loading module, used to load the image of the container when it was last exited;
调整模块,用于利用重启修改子进程对所述重置容器的init进程进行调整,以使得所述init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。The adjustment module is used to adjust the init process of the reset container by restarting the modification subprocess, so that the init process directly jumps to the file mounting part recorded in the boot init.rc script to run.
第三方面,本发明实施例还提供了一种终端,包括:In a third aspect, an embodiment of the present invention further provides a terminal, including:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序;A storage device for storing one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上述实施例提供的双系统安全手机重置方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the dual-system secure mobile phone reset method provided in the above embodiment.
第四方面,本发明实施例还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如上述实施例提供的双系统安全手机重置方法。In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the dual-system secure mobile phone reset method provided in the above embodiment.
本发明实施例提供的双系统安全手机重置方法、装置、终端及存储介质,通过重新启动重置操作对应的容器,利用init进程生成重启修改子进程;确定重置容器的init进程和重置容器的init.rc文件;利用重启修改子进程对所述重置容器的init.rc文件的main主函数中的文件挂载部分进行修改,以指向对应 的重置对应的数据文件;加载所述容器前次退出时的镜像;利用重启修改子进程对所述重置容器的init进程进行调整,以使得所述init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。充分利用了宿主机对容器的干涉能力,通过利用宿主机的kernel进程,生成重启修改子进程。对需要进行系统重置的容器的init.rc脚本进行修改,调整对应的挂载文件数据,并调整容器对应的init进程,使之直接跳转到引导init.rc脚本中记载文件挂载部分运行,无需重新配置对应的硬件挂载部分,使得重置操作节省了数据文件的擦除过程,也无需重新挂载硬件驱动,大大节省了容器对应的系统重置时间,提升了用户使用双系统手机进行重置的用户体验。The dual-system secure mobile phone reset method, device, terminal and storage medium provided by the embodiment of the present invention restarts the container corresponding to the reset operation, generates a restart modification subprocess by using the init process; determines the init process of the reset container and the init.rc file of the reset container; uses the restart modification subprocess to modify the file mounting part in the main function of the init.rc file of the reset container to point to the corresponding reset corresponding data file; loads the image of the container when it was last exited; uses the restart modification subprocess to adjust the init process of the reset container, so that the init process directly jumps to the file mounting part recorded in the boot init.rc script to run. The host machine's interference ability with the container is fully utilized, and the restart modification subprocess is generated by using the kernel process of the host machine. Modify the init.rc script of the container that needs to reset the system, adjust the corresponding mount file data, and adjust the init process corresponding to the container to directly jump to the file mounting part recorded in the boot init.rc script to run. There is no need to reconfigure the corresponding hardware mounting part, so that the reset operation saves the data file erasing process and does not need to remount the hardware driver, which greatly saves the system reset time corresponding to the container and improves the user experience of users resetting using dual-system phones.
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
图1为本发明实施例一提供的双系统安全手机重置方法的流程图;FIG1 is a flow chart of a dual-system secure mobile phone reset method provided in Embodiment 1 of the present invention;
图2为本发明实施例一提供的双系统安全手机重置方法中双系统安全手机架构示意图;FIG2 is a schematic diagram of a dual-system secure mobile phone architecture in a dual-system secure mobile phone reset method provided in Embodiment 1 of the present invention;
图3是本发明实施例二提供的双系统安全手机重置方法的流程图;3 is a flow chart of a dual-system secure mobile phone reset method provided in Embodiment 2 of the present invention;
图4是本发明实施例三提供的双系统安全手机重置方法的流程图;4 is a flow chart of a dual-system secure mobile phone reset method provided in Embodiment 3 of the present invention;
图5是本发明实施例四提供的双系统安全手机重置装置的结构图;5 is a structural diagram of a dual-system secure mobile phone reset device provided in Embodiment 4 of the present invention;
图6是本发明实施例五提供的终端的结构图。FIG6 is a structural diagram of a terminal provided in Embodiment 5 of the present invention.
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
实施例一Embodiment 1
图1为本发明实施例一提供的双系统安全手机重置方法的流程图,本实施 例可适用于对双系统安全手机中其中一个系统进行快速重置的情况,该方法可以由双系统安全手机重置装置来执行,并对应设置于双系统安全手机的终端中,具体包括如下步骤:FIG1 is a flow chart of a dual-system secure mobile phone reset method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case where one of the systems in a dual-system secure mobile phone is quickly reset. The method can be executed by a dual-system secure mobile phone reset device and is correspondingly set in a terminal of the dual-system secure mobile phone. Specifically, the method includes the following steps:
步骤110、重新启动重置操作对应的容器,利用init进程生成重启修改子进程。Step 110: restart the container corresponding to the reset operation, and use the init process to generate a restart modification subprocess.
示例性的,双系统手机可以采用容器技术实现,图2为本发明实施例一提供的双系统安全手机重置方法中双系统安全手机架构示意图,参见图2,所述双系统安全手机包括:瘦身后的linux系统(基础平台),所述瘦身后的linux系统用于底层硬件和对应的驱动,为双系统提供相应的硬件基础。而双系统则是通过容器技术实现,示例性的,可采用LXC(Linux Container)技术。LXC可以提供轻量级的虚拟化,以便隔离进程和资源,而且不需要提供指令解释机制以及全虚拟化的其他复杂性。LXC可借助基础平台的硬件驱动,实现对基础平台的硬件控制。Exemplarily, a dual-system mobile phone can be implemented using container technology. FIG2 is a schematic diagram of the dual-system secure mobile phone architecture in the dual-system secure mobile phone reset method provided in the first embodiment of the present invention. Referring to FIG2 , the dual-system secure mobile phone includes: a slimmed-down Linux system (basic platform), and the slimmed-down Linux system is used for underlying hardware and corresponding drivers to provide a corresponding hardware foundation for the dual system. The dual system is implemented through container technology. Exemplarily, LXC (Linux Container) technology can be used. LXC can provide lightweight virtualization to isolate processes and resources, and does not require an instruction interpretation mechanism and other complexities of full virtualization. LXC can use the hardware driver of the basic platform to achieve hardware control of the basic platform.
在本实施例中,用户可通过操作对LXC对应的系统进行重置,即恢复出厂设置操作。In this embodiment, the user can reset the system corresponding to the LXC through operation, that is, restore the factory settings.
在接收到重置操作时,重新启动所述恢复出厂设置操作对应的容器。示例性的,在启动时,利用瘦身后的Linux系统的init进程生成重启修改子进程。init进程是Linux系统操作中不可缺少的程序之一,是一个由内核启动的用户级进程。When a reset operation is received, the container corresponding to the factory reset operation is restarted. Exemplarily, at startup, the init process of the slimmed-down Linux system is used to generate a restart modification subprocess. The init process is one of the indispensable programs in the Linux system operation and is a user-level process started by the kernel.
由于需要对重启容器进行控制,因此,需要在瘦身后的Linux系统中植入相应的进程实现对重启容器进行控制的目的。由于瘦身后的Linux系统中只提供对硬件的驱动,为LXC提供硬件基础。因此,其本身进程数量较少,且能够在瘦身后的Linux系统正常周期一直存活的进程只有init进程。因此,可利用init进程生成重启修改子进程,利用重启修改子进程实现对LXC容器中的系统进行调整和控制。Since it is necessary to control the restart of the container, it is necessary to implant the corresponding process in the slimmed-down Linux system to achieve the purpose of controlling the restart of the container. Since the slimmed-down Linux system only provides hardware drivers to provide the hardware foundation for LXC, the number of its own processes is relatively small, and the only process that can survive the normal cycle of the slimmed-down Linux system is the init process. Therefore, the init process can be used to generate a restart modification subprocess, and the restart modification subprocess can be used to adjust and control the system in the LXC container.
步骤120、确定重置容器的init进程和重置容器的init.rc文件。Step 120: Determine the init process of resetting the container and the init.rc file of resetting the container.
在本实施例中,由于存在三个系统。而重置只对应其中一个系统,因此,首先需要确定重启系统对应的init进程和重置容器的init.rc文件。由于重启系统是采用LXC容器实现,因此,需要确定重置容器的init进程和重置容器的init.rc文件。示例性的,可通过对应的标号,或者生成时间确定重置容器的init进程和重置容器的init.rc文件。In this embodiment, since there are three systems, and the reset only corresponds to one of the systems, it is first necessary to determine the init process corresponding to the restart system and the init.rc file of the reset container. Since the restart system is implemented using an LXC container, it is necessary to determine the init process of the reset container and the init.rc file of the reset container. Exemplarily, the init process of the reset container and the init.rc file of the reset container can be determined by the corresponding label or generation time.
步骤130、利用重启修改子进程对所述重置容器的init.rc文件的main主函数中的文件挂载部分进行修改,以指向对应的重置对应的数据文件。Step 130: Use the restart modification subprocess to modify the file mounting part in the main function of the init.rc file of the reset container to point to the corresponding reset corresponding data file.
init.rc是基于AIL(Android Init Language)是一种非常简单的语言,主要用于定义初始化流程中需要做的事情。在init.rc中设有main主函数,main主函数中主要包含五种类型语句:Action、Command、Service、Option、Import。Options是Service的可选项,与service配合使用。在其中可以定义相应的数据文件。示例性的,可以利用chown<owner><group><path>option语句对重置对应的数据文件进行加载。其中,chown用于改变每个文件的属主和/或属组。在本实施例中可定义为该容器的属组,并将重置对应的数据文件的路径写入对应的<path>中,并将对应的服务用on标记启动。init.rc is based on AIL (Android Init Language), a very simple language, which is mainly used to define what needs to be done in the initialization process. In init.rc, there is a main function, which mainly contains five types of statements: Action, Command, Service, Option, and Import. Options is an optional option for Service and is used in conjunction with service. The corresponding data files can be defined in it. Exemplarily, the chown<owner><group><path>option statement can be used to load the data files corresponding to the reset. Among them, chown is used to change the owner and/or group of each file. In this embodiment, it can be defined as the group of the container, and the path of the reset corresponding data file is written into the corresponding <path>, and the corresponding service is started with the on tag.
步骤140、加载所述容器前次退出时的镜像。Step 140: Load the image of the container when it was last exited.
在容器启动后,需要加载相应的镜像,所述镜像可以为容器前次退出时的镜像。After the container is started, the corresponding image needs to be loaded, and the image can be the image when the container was last exited.
步骤150、利用重启修改子进程对所述重置容器的init进程进行调整,以使得所述init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。Step 150: Use the restart modification subprocess to adjust the init process of the reset container so that the init process directly jumps to the file mounting part recorded in the boot init.rc script to run.
在正常情况下,由于已经加载了前次的镜像,init进程通常只需一直保持存活状态,而无需进行任何调整。而在本实施例中,由于对文件数据进行了变更,并且对init.rc脚本进行了相应的修改。因此,需要对init进程进行调整,实现对init.rc脚本中main主函数中文件数据进行注册。由于采用加载镜像方法,其对于硬件驱动部分已经进行了加载,init进程无需重新加载硬件驱动,只需重新注册相应的数据文件即可。因此,可利用重启修改子进程控制所述重 置容器的init进程,跳过加载硬件驱动部分,直接跳转到引导init.rc记载文件挂载部分运行脚本中进行运行。Under normal circumstances, since the previous image has been loaded, the init process usually only needs to remain alive without any adjustment. In this embodiment, since the file data has been changed, the init.rc script has been modified accordingly. Therefore, it is necessary to adjust the init process to register the file data in the main function in the init.rc script. Since the image loading method is adopted, the hardware driver part has been loaded, and the init process does not need to reload the hardware driver, but only needs to reregister the corresponding data file. Therefore, the init process of the reset container can be controlled by restarting the modified subprocess, skipping the loading of the hardware driver part, and directly jumping to the boot init.rc record file mounting part to run the script.
本实施例通通过重新启动重置操作对应的容器,利用init进程生成重启修改子进程;确定重置容器的init进程和重置容器的init.rc文件;利用重启修改子进程对所述重置容器的init.rc文件的main主函数中的文件挂载部分进行修改,以指向对应的重置对应的数据文件;加载所述容器前次退出时的镜像;利用重启修改子进程对所述重置容器的init进程进行调整,以使得所述init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。充分利用了宿主机对容器的干涉能力,通过利用宿主机的kernel进程,生成重启修改子进程。对需要进行系统重置的容器的init.rc脚本进行修改,调整对应的挂载文件数据,并调整容器对应的init进程,使之直接跳转到引导init.rc脚本中记载文件挂载部分运行,无需重新配置对应的硬件挂载部分,使得重置操作节省了数据文件的擦除过程,也无需重新挂载硬件驱动,大大节省了容器对应的系统重置时间,提升了用户使用双系统手机进行重置的用户体验。This embodiment generates a restart modification subprocess by restarting the container corresponding to the reset operation, using the init process; determining the init process of the reset container and the init.rc file of the reset container; using the restart modification subprocess to modify the file mounting part in the main function of the init.rc file of the reset container to point to the corresponding reset corresponding data file; loading the image of the container when it was last exited; using the restart modification subprocess to adjust the init process of the reset container, so that the init process directly jumps to the file mounting part recorded in the boot init.rc script to run. The host machine's interference ability with the container is fully utilized, and the restart modification subprocess is generated by utilizing the kernel process of the host machine. The init.rc script of the container that needs to be reset is modified, the corresponding mount file data is adjusted, and the init process corresponding to the container is adjusted to jump directly to the file mounting part recorded in the boot init.rc script to run, without reconfiguring the corresponding hardware mounting part, so that the reset operation saves the data file erasing process, and there is no need to remount the hardware driver, which greatly saves the system reset time corresponding to the container and improves the user experience of users using dual-system mobile phones to reset.
在本实施例的一个优选实施方式中,所述方法还可增加如下步骤:利用重启修改子进程在容器系统中增加恢复出厂设置广播服务,将恢复出厂设置信息进行广播,能够使得安卓系统清除内存内容。由于采用容器载入镜像方式提供手机服务,并且载入的镜像中还存在着一些活跃进程,包括系统进程和应用进程,而这些进程中会存在占用原有用户数据的情况。此时,还可利用重启修改子进程在容器系统中的init进程中衍生出一个子进程,用于提供相应的广播服务,对容器的系统中的所有进程进行广播,广播对应的出厂设置信息,使得对应的进程清除内存内容,避免系统出现读写错误。In a preferred implementation of this embodiment, the method may further add the following steps: using the restart modification subprocess to add a factory reset broadcast service in the container system, broadcasting the factory reset information, and enabling the Android system to clear the memory content. Since the mobile phone service is provided by using the container loading image method, and there are still some active processes in the loaded image, including system processes and application processes, and these processes may occupy the original user data. At this time, the restart modification subprocess may also be used to derive a subprocess from the init process in the container system to provide the corresponding broadcast service, broadcast the corresponding factory reset information to all processes in the container system, and enable the corresponding process to clear the memory content to avoid read and write errors in the system.
实施例二Embodiment 2
图3为本发明实施例二提供的双系统安全手机重置方法的流程示意图。本实施例以上述实施例为基础进行优化,在本实施例中,所述方法还可增加如下步骤;在接收到当前系统重置操作时,保存当前系统对应的容器镜像;从内核 kernel中读取init进程,并从所述init进程获取所述当前系统对应的容器编码,重置所述当前系统中的用户数据;关闭所述容器编码对应的容器。Figure 3 is a flow chart of a dual-system secure mobile phone reset method provided in Embodiment 2 of the present invention. This embodiment is optimized based on the above embodiment. In this embodiment, the method may further add the following steps: upon receiving a current system reset operation, save the container image corresponding to the current system; read the init process from the kernel, and obtain the container code corresponding to the current system from the init process, and reset the user data in the current system; close the container corresponding to the container code.
相应的,本实施例所提供的双系统安全手机重置方法,具体包括:Accordingly, the dual-system secure mobile phone reset method provided in this embodiment specifically includes:
步骤210、在接收到当前系统重置操作时,保存当前系统对应的容器镜像。Step 210: When receiving a current system reset operation, save the container image corresponding to the current system.
在本实施例中,用户可通过对双系统安全手机进行操作,实现对当前使用的系统进行重置。为便于用户操作,系统重置操作可以与正常手机操作一致。在接收到系统重置操作时,确定当前处于前台活跃状态的容器,并保存当前系统对应的容器镜像。In this embodiment, the user can reset the currently used system by operating the dual-system secure mobile phone. To facilitate user operation, the system reset operation can be consistent with normal mobile phone operation. When receiving the system reset operation, the container currently in the foreground active state is determined, and the container image corresponding to the current system is saved.
步骤220、从内核kernel中读取init进程,并从所述init进程获取所述当前系统对应的容器编码,重置所述当前系统中的用户数据。Step 220: read the init process from the kernel, obtain the container code corresponding to the current system from the init process, and reset the user data in the current system.
从前述的瘦身后的Linux系统的内核kernel读取瘦身后的Linux系统的init进程,瘦身后的Linux系统的init进程负责对容器进行管理,从该进程中获取当前系统的容器编码,并利用该容器编码重置所述当前系统中的用户数据。The init process of the slimmed-down Linux system is read from the kernel of the slimmed-down Linux system. The init process of the slimmed-down Linux system is responsible for managing the container. The container code of the current system is obtained from the process, and the container code is used to reset the user data in the current system.
示例性的,可查找该容器编号对应的文件系统环境,所述文件系统环境可以为root2(2为容器编号)目录下的文件夹,包括:/dev、/sys、/etc、/data、/cache、/metadata等文件夹。Exemplarily, the file system environment corresponding to the container number can be searched, and the file system environment can be a folder under the root2 (2 is the container number) directory, including: /dev, /sys, /etc, /data, /cache, /metadata and other folders.
将原有的data文件系统,包括:/data、/cache、/metadata等文件夹进行清除,实现对当前系统中的用户数据进行重置。Clear the original data file system, including folders such as /data, /cache, and /metadata, to reset the user data in the current system.
步骤230、关闭所述容器编码对应的容器。Step 230: Close the container corresponding to the container code.
关闭所述容器编码对应的容器,以便于后期重启,实现系统恢复出厂设置。Close the container corresponding to the container code to facilitate a subsequent restart and restore the system to factory settings.
步骤240、重新启动重置操作对应的容器,利用init进程生成重启修改子进程。Step 240: restart the container corresponding to the reset operation, and use the init process to generate a restart modification subprocess.
步骤250、确定重置容器的init进程和重置容器的init.rc文件。Step 250: Determine the init process of resetting the container and the init.rc file of resetting the container.
步骤260、利用重启修改子进程对所述重置容器的init.rc文件的main主函数中的文件挂载部分进行修改,以指向对应的重置对应的数据文件。Step 260: Use the restart modification subprocess to modify the file mounting part in the main function of the init.rc file of the reset container to point to the corresponding reset corresponding data file.
步骤260、加载所述容器前次退出时的镜像。Step 260: Load the image of the container when it was last exited.
步骤270、利用重启修改子进程对所述重置容器的init进程进行调整,以使得所述init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。Step 270: Use the restart modification subprocess to adjust the init process of the reset container so that the init process directly jumps to the file mounting part recorded in the boot init.rc script to run.
本实施例通过增加如下步骤:在接收到当前系统重置操作时,保存当前系统对应的容器镜像;从内核kernel中读取init进程,并从所述init进程获取所述当前系统对应的容器编码,重置所述当前系统中的用户数据;关闭所述容器编码对应的容器。可以在接收重置操作时,明确确定需要重置操作对应的容器系统,避免重置对其它系统的干扰,能够正确选择需要恢复出厂设置的用户数据文件。This embodiment adds the following steps: when receiving the current system reset operation, save the container image corresponding to the current system; read the init process from the kernel, and obtain the container code corresponding to the current system from the init process, reset the user data in the current system; close the container corresponding to the container code. When receiving the reset operation, the container system corresponding to the reset operation can be clearly determined to avoid the interference of the reset on other systems, and the user data files that need to be restored to factory settings can be correctly selected.
在本实施例的一个优选实施方式中,在关闭所述容器编码对应的容器之后,重新启动所述容器之前,所述方法还可增加如下步骤:利用命名空间对所述当前系统的用户数据进行区分隔离。namespace即“命名空间”,也称“名称空间”。是许多编程语言使用的一种代码组织的形式,通过命名空间来分类。利用命名空间,可将当前系统的用户数据与其他用户数据进行有效区分。In a preferred implementation of this embodiment, after closing the container corresponding to the container code and before restarting the container, the method may further add the following step: using a namespace to distinguish and isolate the user data of the current system. Namespace is a form of code organization used by many programming languages, which is classified by namespace. Using a namespace, the user data of the current system can be effectively distinguished from other user data.
在本实施例的另一优选实施方式中,所述方法还可增加如下步骤:根据所述容器前次退出时的资源,利用cgroup对重新启动的容器的资源进行划分,以使得与前次退出的资源相一致Cgroup可以指一个具体的进程组。Cgroup是Linux下一种将进程按组管理的机制,在用户层面看,Cgroup技术就是可以把每个系统中的所有进程组织成一颗独立的树,每颗树都包含系统所有进程,树的每个节点就是一个进程组。通过Cgroup机制,可确定容器前次退出时所有进程,并确定对应的资源。可将各种进程所需要的资源对应设置,可以将该容器启动后的资源保持一致。避免出现系统错误。In another preferred implementation of this embodiment, the method may further add the following steps: according to the resources of the container when it last exited, the resources of the restarted container are divided using cgroup so as to be consistent with the resources exited last time. Cgroup can refer to a specific process group. Cgroup is a mechanism for managing processes by group under Linux. From the user level, Cgroup technology can organize all processes in each system into an independent tree. Each tree contains all processes in the system, and each node of the tree is a process group. Through the Cgroup mechanism, all processes when the container last exited can be determined, and the corresponding resources can be determined. The resources required by various processes can be set accordingly, and the resources after the container is started can be kept consistent. Avoid system errors.
实施例三Embodiment 3
图4为本发明实施例三提供的双系统安全手机重置方法的流程示意图。本实施例以上述实施例为基础进行优化,在本实施例中,将所述重置对应的数据 文件,具体优化为:重置操作前的数据文件,所述重置操作前的数据文件包括:容器归属隐藏属性和恢复隐藏标记属性;相应的,将所述当前系统重置操作包具体优化为:当前系统恢复操作;相应的,将所述利用重启修改子进程对所述重置容器的init进程进行调整,具体优化为:利用重启修改子进程对所述重置容器的init进程增加恢复运行级别,所述恢复运行级别对应所述容器的init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。FIG4 is a flow chart of a dual-system secure mobile phone reset method provided by Embodiment 3 of the present invention. This embodiment is optimized based on the above embodiment. In this embodiment, the data file corresponding to the reset is specifically optimized as: the data file before the reset operation, and the data file before the reset operation includes: the container belonging to the hidden attribute and the recovery hidden mark attribute; accordingly, the current system reset operation package is specifically optimized as: the current system recovery operation; accordingly, the init process of the reset container is adjusted by the restart modification subprocess, and is specifically optimized as: the init process of the reset container is increased to the recovery operation level by the restart modification subprocess, and the recovery operation level corresponds to the init process of the container directly jumping to the boot init.rc script to record the file mounting part to run.
相应的,本实施例所提供的双系统安全手机重置方法,具体包括:Accordingly, the dual-system secure mobile phone reset method provided in this embodiment specifically includes:
步骤310、重新启动恢复操作对应的容器,利用init进程生成重启修改子进程。Step 310: restart the container corresponding to the recovery operation, and use the init process to generate a restart modification subprocess.
步骤320、确定恢复容器的init进程和恢复容器的init.rc文件。Step 320: Determine the init process of the recovery container and the init.rc file of the recovery container.
步骤330、利用重启修改子进程对所述恢复容器的init.rc文件的main主函数中的文件挂载部分进行修改,以指向对应的重置操作前的数据文件。Step 330: Use the restart modification subprocess to modify the file mounting part in the main function of the init.rc file of the recovery container to point to the corresponding data file before the reset operation.
在本实施例中,不仅可以提供手机重置,还可提供恢复服务。即用户由于误操作或者其它原因导致错误恢复当前系统的出厂设置,希望恢复到之前的状态,则可采用本实施例提供的方式实现。示例性的,所述重置操作前的数据文件包括:容器归属隐藏属性和恢复隐藏标记属性。在本实施例中,在接收到用户的重置操作后,可将现有的用户数据文件转移到其它存储位置,并将其设为不可写状态。同时还可根据用户数据文件与容器的对应关系,为所述用户数据文件增加容器归属隐藏属性,所述隐藏属性为不可见状态,只有瘦身后的Linux系统的init进程能够读取。相应的,为当前系统新建用户数据,并为所述新建用户数据增加容器归属隐藏属性以避免文件指向错误。此外,对于重置操作前的数据文件还需要额外增减恢复隐藏标记属性,用于标明对应的容器和重置操作时的时间,便于在恢复时查找相应的用户数据文件。In this embodiment, not only can mobile phone reset be provided, but also recovery service can be provided. That is, if the user restores the factory settings of the current system by mistake due to misoperation or other reasons and hopes to restore to the previous state, it can be implemented in the manner provided by this embodiment. Exemplarily, the data file before the reset operation includes: a container belonging hidden attribute and a recovery hidden mark attribute. In this embodiment, after receiving the user's reset operation, the existing user data file can be transferred to other storage locations and set to a non-writable state. At the same time, according to the correspondence between the user data file and the container, a container belonging hidden attribute can be added to the user data file. The hidden attribute is in an invisible state and can only be read by the init process of the Linux system after slimming down. Accordingly, new user data is created for the current system, and a container belonging hidden attribute is added to the new user data to avoid file pointing errors. In addition, for the data file before the reset operation, it is necessary to additionally increase or decrease the recovery hidden mark attribute to indicate the corresponding container and the time of the reset operation, so as to facilitate the search for the corresponding user data file during recovery.
步骤340、加载所述容器前次退出时的镜像。Step 340: Load the image of the container when it was last exited.
步骤350、利用重启修改子进程对所述重置容器的init进程增加恢复运行 级别,所述恢复运行级别对应所述容器的init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。Step 350: Use the restart modification subprocess to add a recovery operation level to the init process of the reset container. The recovery operation level corresponds to the init process of the container directly jumping to the file mounting part recorded in the boot init.rc script to run.
原有的init一共分为7个级别,这7个级别分别为停机、单用户模式、多用户(不联网)、完全多用户模式(标准的运行级)、安全模式、图形化界面模式、重新启动,在本实施例中,可以将其进行调整,增加恢复级别。用户可通过对双系统安全手机的物理按键的组合操作,生成恢复操作。在所述重置容器的init进程增加恢复运行级别,以使得所述init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行,实现快速恢复功能。The original init is divided into 7 levels, which are shutdown, single-user mode, multi-user (not connected to the Internet), full multi-user mode (standard operation level), safe mode, graphical interface mode, and restart. In this embodiment, it can be adjusted to increase the recovery level. The user can generate a recovery operation by combining the physical buttons of the dual-system security phone. Add a recovery operation level to the init process of the reset container so that the init process directly jumps to the file mounting part recorded in the boot init.rc script to run, realizing the fast recovery function.
本实施例通过将所述重置对应的数据文件,具体优化为:重置操作前的数据文件,所述重置操作前的数据文件包括:容器归属隐藏属性和恢复隐藏标记属性;相应的,将所述当前系统重置操作包具体优化为:当前系统恢复操作;相应的,将所述利用重启修改子进程对所述重置容器的init进程进行调整,具体优化为:利用重启修改子进程对所述重置容器的init进程增加恢复运行级别,所述恢复运行级别对应所述容器的init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。可实现双系统安全手机中单独系统的快速恢复操作。This embodiment optimizes the data file corresponding to the reset to: the data file before the reset operation, the data file before the reset operation includes: the container belonging to the hidden attribute and the recovery hidden mark attribute; accordingly, the current system reset operation package is optimized to: the current system recovery operation; accordingly, the init process of the reset container is adjusted by the restart modification subprocess, and is optimized to: the init process of the reset container is increased to the recovery operation level by the restart modification subprocess, and the recovery operation level corresponds to the init process of the container directly jumping to the file mounting part recorded in the boot init.rc script to run. The rapid recovery operation of a single system in a dual-system security mobile phone can be realized.
实施例四Embodiment 4
图5是本发明实施例四提供的双系统安全手机重置装置的结构示意图,如图5所示,所述装置包括:FIG5 is a schematic diagram of the structure of a dual-system secure mobile phone reset device provided in Embodiment 4 of the present invention. As shown in FIG5 , the device includes:
生成模块410,用于重新启动重置操作对应的容器,利用init进程生成重启修改子进程;A generation module 410 is used to restart the container corresponding to the reset operation and generate a restart modification subprocess using an init process;
确定模块420,用于确定重置容器的init进程和重置容器的init.rc文件;A determination module 420 is used to determine an init process for resetting a container and an init.rc file for resetting a container;
修改模块430,用于利用重启修改子进程对所述重置容器的init.rc文件的main主函数中的文件挂载部分进行修改,以指向对应的重置对应的数据文件;The modification module 430 is used to modify the file mounting part in the main function of the init.rc file of the reset container by restarting the modification subprocess to point to the corresponding reset corresponding data file;
加载模块440,用于加载所述容器前次退出时的镜像;A loading module 440, used to load the image of the container when it was last exited;
调整模块450,用于利用重启修改子进程对所述重置容器的init进程进行调整,以使得所述init进程直接跳转到引导init.rc脚本中记载文件挂载部分 运行。The adjustment module 450 is used to adjust the init process of the reset container by restarting the modification subprocess, so that the init process directly jumps to the file mounting part recorded in the boot init.rc script to run.
本实施例提供的双系统安全手机重置装置,通过重新启动重置操作对应的容器,利用init进程生成重启修改子进程;确定重置容器的init进程和重置容器的init.rc文件;利用重启修改子进程对所述重置容器的init.rc文件的main主函数中的文件挂载部分进行修改,以指向对应的重置对应的数据文件;加载所述容器前次退出时的镜像;利用重启修改子进程对所述重置容器的init进程进行调整,以使得所述init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。充分利用了宿主机对容器的干涉能力,通过利用宿主机的kernel进程,生成重启修改子进程。对需要进行系统重置的容器的init.rc脚本进行修改,调整对应的挂载文件数据,并调整容器对应的init进程,使之直接跳转到引导init.rc脚本中记载文件挂载部分运行,无需重新配置对应的硬件挂载部分,使得重置操作节省了数据文件的擦除过程,也无需重新挂载硬件驱动,大大节省了容器对应的系统重置时间,提升了用户使用双系统手机进行重置的用户体验。The dual-system secure mobile phone reset device provided in this embodiment restarts the container corresponding to the reset operation, generates a restart modification subprocess by using the init process; determines the init process of the reset container and the init.rc file of the reset container; uses the restart modification subprocess to modify the file mounting part in the main function of the init.rc file of the reset container to point to the corresponding reset corresponding data file; loads the image of the container when it was last exited; uses the restart modification subprocess to adjust the init process of the reset container so that the init process directly jumps to the file mounting part recorded in the boot init.rc script to run. The host machine's interference ability with the container is fully utilized, and the restart modification subprocess is generated by using the kernel process of the host machine. The init.rc script of the container that needs to be reset is modified, the corresponding mount file data is adjusted, and the init process corresponding to the container is adjusted so that it directly jumps to the file mounting part recorded in the boot init.rc script to run, without reconfiguring the corresponding hardware mounting part, so that the reset operation saves the data file erasing process, and there is no need to remount the hardware driver, which greatly saves the system reset time corresponding to the container and improves the user experience of users using dual-system mobile phones to reset.
在上述各实施例的基础上,所述装置还包括:Based on the above embodiments, the device further includes:
保存模块,用于在接收到当前系统重置操作时,保存当前系统对应的容器镜像;A saving module is used to save the container image corresponding to the current system when receiving a current system reset operation;
读取模块,用于从内核kernel中读取init进程,并从所述init进程获取所述当前系统对应的容器编码,重置所述当前系统中的用户数据;A reading module, used to read the init process from the kernel, obtain the container code corresponding to the current system from the init process, and reset the user data in the current system;
关闭模块,用于关闭所述容器编码对应的容器。The closing module is used to close the container corresponding to the container code.
在上述各实施例的基础上,所述升级代码暂存区与所述车机ECU的第二闪存区域的大小相同。Based on the above embodiments, the upgrade code temporary storage area has the same size as the second flash memory area of the vehicle ECU.
在上述各实施例的基础上,所述装置还包括:Based on the above embodiments, the device further includes:
隔离模块,用于利用命名空间对所述当前系统的用户数据进行区分隔离。The isolation module is used to differentiate and isolate user data of the current system by using a namespace.
在上述各实施例的基础上,所述装置还包括:Based on the above embodiments, the device further includes:
划分模块,用于根据所述容器前次退出时的资源,利用cgroup对重新启动 的容器的资源进行划分,以使得与前次退出的资源相一致。The partitioning module is used to partition the resources of the restarted container by using cgroup according to the resources of the container when it was last exited, so as to make them consistent with the resources exited last time.
在上述各实施例的基础上,所述装置还包括:Based on the above embodiments, the device further includes:
属性增加模块,用于根据用户数据文件与容器的对应关系,为所述用户数据文件增加容器归属隐藏属性;An attribute adding module, used for adding a container attribution hidden attribute to the user data file according to the corresponding relationship between the user data file and the container;
相应的,所述读取模块,包括:Accordingly, the reading module includes:
新建单元,用于为当前系统新建用户数据,并为所述新建用户数据增加容器归属隐藏属性。The new creation unit is used to create new user data for the current system and add a container-attribution hidden attribute to the new user data.
在上述各实施例的基础上,所述重置对应的数据文件,包括:Based on the above embodiments, the resetting of the corresponding data file includes:
重置操作前的数据文件,所述重置操作前的数据文件包括:容器归属隐藏属性和恢复隐藏标记属性;The data file before the reset operation includes: a container attribution hidden attribute and a restore hidden mark attribute;
所述当前系统重置操作包括:The current system reset operation includes:
当前系统恢复操作;Current system recovery operation;
所述调整模块,包括:The adjustment module comprises:
级别增加单元,用于利用重启修改子进程对所述重置容器的init进程增加恢复运行级别,所述恢复运行级别对应所述容器的init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。The level increasing unit is used to increase the recovery operation level of the init process of the reset container by restarting the modification subprocess, and the recovery operation level corresponds to the init process of the container directly jumping to the file mounting part recorded in the boot init.rc script to run.
本发明实施例所提供的双系统安全手机重置装置可执行本发明任意实施例所提供的双系统安全手机重置方法,具备执行方法相应的功能模块和有益效果。The dual-system secure mobile phone reset device provided in the embodiment of the present invention can execute the dual-system secure mobile phone reset method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
实施例五Embodiment 5
图6为本发明实施例五提供的一种终端的结构示意图。图6示出了适于用来实现本发明实施方式的示例性终端12的框图。图6显示的终端12仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Figure 6 is a schematic diagram of the structure of a terminal provided in Embodiment 5 of the present invention. Figure 6 shows a block diagram of an exemplary terminal 12 suitable for implementing the embodiments of the present invention. The terminal 12 shown in Figure 6 is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
如图6所示,终端12以通用计算终端的形式表现。终端12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in Fig. 6, terminal 12 is in the form of a general-purpose computing terminal. Components of terminal 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控 制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。 Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
终端12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被终端12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。 Terminal 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by terminal 12, including volatile and non-volatile media, removable and non-removable media.
系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存32。终端12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图6未显示,通常称为“硬盘驱动器”)。尽管图6中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。系统存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache 32. The terminal 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 6 , commonly referred to as a “hard drive”). Although not shown in FIG. 6 , a disk drive for reading and writing to a removable non-volatile disk (e.g., a “floppy disk”) and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data media interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如系统存储器28中,这样的程序模块42包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本发明所描述的实施例中的功能和/或方法。A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
终端12也可以与一个或多个外部终端14(例如键盘、指向终端、显示器24等)通信,还可与一个或者多个使得用户能与该终端12交互的终端通信,和/或与使得该终端12能与一个或多个其它计算终端进行通信的任何终端(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口22 进行。并且,终端12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与终端12的其它模块通信。应当明白,尽管图中未示出,可以结合终端12使用其它硬件和/或软件模块,包括但不限于:微代码、终端驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The terminal 12 may also communicate with one or more external terminals 14 (e.g., keyboards, pointing terminals, displays 24, etc.), one or more terminals that enable a user to interact with the terminal 12, and/or any terminal that enables the terminal 12 to communicate with one or more other computing terminals (e.g., network cards, modems, etc.). Such communication may be performed via an input/output (I/O) interface 22. Furthermore, the terminal 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and/or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the terminal 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and/or software modules may be used in conjunction with the terminal 12, including but not limited to: microcode, terminal drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的双系统安全手机重置方法。The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the dual-system secure mobile phone reset method provided in the embodiment of the present invention.
实施例六Embodiment 6
本发明实施例六还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如上述实施例提供的任一所述的双系统安全手机重置方法。Embodiment 6 of the present invention further provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute any of the dual-system secure mobile phone reset methods provided in the above embodiments.
本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算 机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或终端上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
- 一种双系统安全手机重置方法,其特征在于,包括:A dual-system secure mobile phone reset method, characterized by comprising:重新启动重置操作对应的容器,利用init进程生成重启修改子进程;Restart the container corresponding to the reset operation, and use the init process to generate a restart modification subprocess;确定重置容器的init进程和重置容器的init.rc文件;Determine the init process for resetting the container and the init.rc file for resetting the container;利用重启修改子进程对所述重置容器的init.rc文件的main主函数中的文件挂载部分进行修改,以指向对应的重置对应的数据文件;The file mounting part in the main function of the init.rc file of the reset container is modified by using the restart modification subprocess to point to the corresponding reset corresponding data file;加载所述容器前次退出时的镜像;Load the image of the container when it was last exited;利用重启修改子进程对所述重置容器的init进程进行调整,以使得所述init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。The init process of the reset container is adjusted by restarting the modification subprocess, so that the init process directly jumps to the file mounting part recorded in the boot init.rc script to run.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, characterized in that the method further comprises:在接收到当前系统重置操作时,保存当前系统对应的容器镜像;When receiving the current system reset operation, save the container image corresponding to the current system;从内核kernel中读取init进程,并从所述init进程获取所述当前系统对应的容器编码,重置所述当前系统中的用户数据;Reading the init process from the kernel, and obtaining the container code corresponding to the current system from the init process, and resetting the user data in the current system;关闭所述容器编码对应的容器。Close the container corresponding to the container code.
- 根据权利要求2所述的方法,其特征在于,在关闭所述容器编码对应的容器之后,重新启动所述容器之前,所述方法还包括:The method according to claim 2, characterized in that after closing the container corresponding to the container code and before restarting the container, the method further comprises:利用命名空间对所述当前系统的用户数据进行区分隔离。The namespace is used to distinguish and isolate the user data of the current system.
- 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, characterized in that the method further comprises:根据所述容器前次退出时的资源,利用cgroup对重新启动的容器的资源进行划分,以使得与前次退出的资源相一致。According to the resources of the container when it was last exited, the resources of the restarted container are divided by using cgroup to make them consistent with the resources when it was last exited.
- 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, characterized in that the method further comprises:根据用户数据文件与容器的对应关系,为所述用户数据文件增加容器归属 隐藏属性;According to the correspondence between the user data file and the container, a container-attribution hidden attribute is added to the user data file;相应的,所述重置所述当前系统中的用户数据,包括:Accordingly, resetting the user data in the current system includes:为当前系统新建用户数据,并为所述新建用户数据增加容器归属隐藏属性。Create new user data for the current system, and add a container-attribution hidden attribute to the newly created user data.
- 根据权利要求5所述的方法,其特征在于,所述重置对应的数据文件,包括:The method according to claim 5, characterized in that resetting the corresponding data file comprises:重置操作前的数据文件,所述重置操作前的数据文件包括:容器归属隐藏属性和恢复隐藏标记属性;The data file before the reset operation includes: a container attribution hidden attribute and a restore hidden mark attribute;相应的,所述当前系统重置操作包括:Accordingly, the current system reset operation includes:当前系统恢复操作;Current system recovery operation;相应的,所述利用重启修改子进程对所述重置容器的init进程进行调整,包括:Correspondingly, the use of restarting and modifying the subprocess to adjust the init process of resetting the container includes:利用重启修改子进程对所述重置容器的init进程增加恢复运行级别,所述恢复运行级别对应所述容器的init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。The restart modification subprocess is used to add a recovery operation level to the init process of the reset container. The recovery operation level corresponds to the init process of the container directly jumping to the file mounting part recorded in the boot init.rc script to run.
- 根据权利要求1-6任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, characterized in that the method further comprises:利用重启修改子进程在容器系统中增加恢复出厂设置广播服务,将恢复出厂设置信息进行广播,能够使得所述重置容器的系统清除内存内容。By using the restart modification subprocess to add a factory reset broadcast service in the container system, the factory reset information is broadcasted, so that the system of the reset container can clear the memory content.
- 一种双系统安全手机重置装置,其特征在于,包括:A dual-system secure mobile phone reset device, characterized by comprising:生成模块,用于重新启动重置操作对应的容器,利用init进程生成重启修改子进程;Generate a module, which is used to restart the container corresponding to the reset operation, and use the init process to generate a restart modification subprocess;确定模块,用于确定重置容器的init进程和重置容器的init.rc文件;A determination module is used to determine the init process of resetting the container and the init.rc file of resetting the container;修改模块,用于利用重启修改子进程对所述重置容器的init.rc文件的 main主函数中的文件挂载部分进行修改,以指向对应的重置对应的数据文件;A modification module, used to modify the file mounting part in the main function of the init.rc file of the reset container by restarting the modification subprocess to point to the corresponding reset corresponding data file;加载模块,用于加载所述容器前次退出时的镜像;A loading module, used to load the image of the container when it was last exited;调整模块,用于利用重启修改子进程对所述重置容器的init进程进行调整,以使得所述init进程直接跳转到引导init.rc脚本中记载文件挂载部分运行。The adjustment module is used to adjust the init process of the reset container by restarting the modification subprocess, so that the init process directly jumps to the file mounting part recorded in the boot init.rc script to run.
- 一种服务器,其特征在于,所述服务器包括:A server, characterized in that the server comprises:一个或多个处理器;one or more processors;存储装置,用于存储一个或多个程序;A storage device for storing one or more programs;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7中任一所述的双系统安全手机重置方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the dual-system secure mobile phone reset method as described in any one of claims 1-7.
- 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-7中任一所述的双系统安全手机重置方法。A storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute the dual-system secure mobile phone reset method as described in any one of claims 1-7 when executed by a computer processor.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211674267.XA CN116028267A (en) | 2022-12-26 | 2022-12-26 | Dual-system secure mobile phone resetting method and device, server and storage medium |
CN202211674267.X | 2022-12-26 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024138588A1 true WO2024138588A1 (en) | 2024-07-04 |
Family
ID=86080611
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/143688 WO2024138588A1 (en) | 2022-12-26 | 2022-12-30 | Dual-system secure mobile phone resetting method and apparatus, terminal, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116028267A (en) |
WO (1) | WO2024138588A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117075984B (en) * | 2023-10-17 | 2023-12-26 | 海马云(天津)信息技术有限公司 | Module processing method, device, communication equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120166783A1 (en) * | 2010-12-27 | 2012-06-28 | Verizon Patent And Licensing, Inc. | Resetting an lte unit that is not in a readily accessible location |
CN107704337A (en) * | 2017-08-22 | 2018-02-16 | 北京珠穆朗玛移动通信有限公司 | Method, mobile terminal and the device with store function of factory reset |
CN107918567A (en) * | 2017-10-20 | 2018-04-17 | 广州视源电子科技股份有限公司 | Method and system for restoring factory settings, readable storage medium and electronic device |
CN111786904A (en) * | 2020-07-07 | 2020-10-16 | 上海道客网络科技有限公司 | System and method for realizing container dormancy and awakening |
-
2022
- 2022-12-26 CN CN202211674267.XA patent/CN116028267A/en active Pending
- 2022-12-30 WO PCT/CN2022/143688 patent/WO2024138588A1/en unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120166783A1 (en) * | 2010-12-27 | 2012-06-28 | Verizon Patent And Licensing, Inc. | Resetting an lte unit that is not in a readily accessible location |
CN107704337A (en) * | 2017-08-22 | 2018-02-16 | 北京珠穆朗玛移动通信有限公司 | Method, mobile terminal and the device with store function of factory reset |
CN107918567A (en) * | 2017-10-20 | 2018-04-17 | 广州视源电子科技股份有限公司 | Method and system for restoring factory settings, readable storage medium and electronic device |
CN111786904A (en) * | 2020-07-07 | 2020-10-16 | 上海道客网络科技有限公司 | System and method for realizing container dormancy and awakening |
Also Published As
Publication number | Publication date |
---|---|
CN116028267A (en) | 2023-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2568280C2 (en) | Fast computer start-up | |
US11003438B2 (en) | Method and device for incremental upgrade | |
CN105468410B (en) | Method for upgrading system and device | |
WO2017193885A1 (en) | Application starting method and apparatus | |
US20080114923A1 (en) | Apparatus and method for controlling operation processing in nonvolatile memory | |
CN104281478B (en) | The method and device of more new application | |
WO2015074526A1 (en) | Method and apparatus for injecting java by tecode into target process | |
TW201502764A (en) | Specialized boot path for speeding up resume from sleep state | |
CN108509215B (en) | System software replacing method and device, terminal equipment and storage medium | |
CN114721719B (en) | Method and system for containerized deployment of heterogeneous applications in cluster | |
CN109284142A (en) | File preloads method, apparatus, electronic equipment and computer readable storage medium | |
WO2024138588A1 (en) | Dual-system secure mobile phone resetting method and apparatus, terminal, and storage medium | |
CN116643778B (en) | Application program optimization method and electronic equipment | |
US8117432B2 (en) | Method for controlling boot sequence of server | |
CN110716845A (en) | Method for reading log information of Android system | |
WO2023213263A1 (en) | Program compiling method, program starting method, and device and storage medium | |
CN110753040B (en) | Request processing method and device | |
EP3654176B1 (en) | User equipment, server, control method of the user equipment and control method of the server | |
CN111399926A (en) | Method and device for downloading starting program | |
KR20100050098A (en) | Image processing apparatus and control method thereof | |
CN112817769B (en) | Game resource dynamic caching method and device, storage medium and electronic equipment | |
CN113296802B (en) | Virtual machine hot upgrading method, host device and storage medium | |
CN108304200B (en) | Method and device for upgrading driving program and electronic equipment | |
EP3660671A1 (en) | Ndis device configuration method and apparatus, and computer storage medium | |
CN114528147B (en) | Fingerprint deleting method and device in dual operating system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22969735 Country of ref document: EP Kind code of ref document: A1 |