Disclosure of Invention
Based on the existing problems, embodiments of the present invention provide a method and an apparatus for hiding a process of an android system, and a storage device, so as to solve a problem that an existing hiding method is difficult to implement on an android system.
The embodiment of the invention discloses a method for hiding a process of an android system, which comprises the following steps:
checking a running process list and selecting a target process; calling an internal configuration file of a top-level code of the android system, and loading a configuration file for controlling the operation of a target process; the configuration file for controlling the operation of the target process executes an API (application programming interface) for controlling the operation of the target process and a getRelay application process () function; the destination process is hidden.
Further, calling an internal configuration file of a top-level code of the android system specifically comprises: xml, activity _ main.xml, and proc _ list _ item.xml configuration files.
Further, the API interface for controlling the operation of the target process specifically includes: an ActivityManager API interface and a RunningAppProcessInfo API interface.
Further, checking the running process list specifically includes: calling an ActivityManager interface, and displaying all running processes in a display area list; after the target process is hidden, an ActivityManager interface is called, and a hidden process list is displayed in the display area list.
The embodiment of the invention discloses a device for hiding a process of an android system, which comprises a memory and a processor, wherein the memory is used for storing a plurality of instructions, and the processor is used for loading the instructions stored in the memory to execute:
checking a running process list and selecting a target process; calling an internal configuration file of a top-level code of the android system, and loading a configuration file for controlling the operation of a target process; the configuration file for controlling the operation of the target process executes an API (application programming interface) for controlling the operation of the target process and a getRelay application process () function; the destination process is hidden.
Further, the processor is also configured to load instructions stored in the memory to perform:
calling an internal configuration file of a top-level code of the android system, specifically: xml, activity _ main.xml, and proc _ list _ item.xml configuration files.
Further, the processor is also configured to load instructions stored in the memory to perform:
the API interface for controlling the operation of the target process specifically includes: an ActivityManager API interface and a RunningAppProcessInfo API interface.
Further, the processor is also configured to load instructions stored in the memory to perform:
checking the running process list, specifically: calling an ActivityManager interface, and displaying all running processes in a display area list; after the target process is hidden, an ActivityManager interface is called, and a hidden process list is displayed in the display area list.
The embodiment of the invention also discloses a device for hiding the android system process, which comprises the following steps:
the target process selection module: checking a running process list and selecting a target process;
calling a loading configuration module: calling an internal configuration file of a top-level code of the android system, and loading a configuration file for controlling the operation of a target process;
an execution module: the configuration file for controlling the operation of the target process executes an API (application programming interface) for controlling the operation of the target process and a getRelay application process () function;
hiding the module: the destination process is hidden.
The embodiment of the invention provides a storage device, wherein a plurality of instructions are stored in the storage device, and the instructions are suitable for being loaded by a processor and executing the steps of the method for hiding the android system process provided by the embodiment of the invention.
Compared with the prior art, the method, the device and the storage equipment for hiding the android system process provided by the invention at least realize the following beneficial effects:
checking a running process list and selecting a target process; calling an internal configuration file of a top-level code of the android system, and loading a configuration file for controlling the operation of a target process; the configuration file for controlling the operation of the target process executes an API (application programming interface) for controlling the operation of the target process and a getRelay application process () function; hiding the target process; the process hiding function of the android system is achieved, and therefore the related processes can be effectively hidden for platform users in a high-confrontation scene.
Detailed Description
In order to make the purpose, technical solution and advantages of the present invention clearer, a specific implementation of the method for hiding the android system process provided by the embodiment of the present invention is described in detail below with reference to the accompanying drawings. It should be understood that the preferred embodiments described below are only for illustrating and explaining the present invention and are not to be used for limiting the present invention. And the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The embodiment of the invention provides a flow chart of a method for hiding a process of an android system, as shown in fig. 1, the method comprises the following steps:
step 11, checking a running process list and selecting a target process;
the specific steps for viewing the running process list are as follows: and calling an ActivityManager interface, and displaying all running processes in a display area list.
Step 12, calling an internal configuration file of a top-level code of the android system, and loading a configuration file for controlling the operation of a target process;
calling an internal configuration file of a top-level code of the android system, specifically: xml, activity _ main.xml, and proc _ list _ item.xml configuration files.
Step 13, the configuration file for controlling the target process operation executes the API for controlling the target process operation and the getRelay application Processes () function;
the API interface for executing the control target process operation specifically includes: an ActivityManager API interface and a RunningAppProcessInfo API interface.
Step 14, hiding the target process;
after the target process is hidden, an ActivityManager interface is called, and a hidden process list is displayed in the display area list.
For example: checking a running process list, and selecting a keyClock timer program as a target process; running a keyClock timer program to enable the keyClock timer program to start timing; calling android manifest.xml, activity _ main.xml and proc _ list _ item.xml configuration files in the android top-level code, and loading the configuration files for controlling the operation of a keyClock timer program; executing API interfaces such as ActivintManager, RunningAppProcessInfo and the like, getRreporting ApProcesses () functions and the like which control the operation of a keyClock timer program in the android source code; at this point in the process list, the process of the keyClock timer program is hidden, and the keyClock timer program is counting uninterrupted.
The method provided by the embodiment of the invention can realize the process hiding function and achieve the purpose of effectively hiding the platform user by the related process under the high-confrontation scene.
An embodiment of the present invention further provides a device for hiding a process of an android system, as shown in fig. 2, including: the apparatus includes a memory 210 and a processor 220, the memory 210 is configured to store a plurality of instructions, and the processor 220 is configured to load the instructions stored in the memory 210 to perform:
checking a running process list and selecting a target process; calling an internal configuration file of a top-level code of the android system, and loading a configuration file for controlling the operation of a target process; the configuration file for controlling the operation of the target process executes an API (application programming interface) for controlling the operation of the target process and a getRelay application process () function; the destination process is hidden.
The processor 220 is configured to load the instructions stored in the memory 210 to perform:
calling an internal configuration file of a top-level code of the android system, specifically: xml, activity _ main.xml, and proc _ list _ item.xml configuration files.
The processor 220 is configured to load the instructions stored in the memory 210 to perform:
the API interface for controlling the operation of the target process specifically includes: an ActivityManager API interface and a RunningAppProcessInfo API interface.
The processor 220 is configured to load the instructions stored in the memory 210 to perform:
checking the running process list, specifically: calling an ActivityManager interface, and displaying all running processes in a display area list; after the target process is hidden, an ActivityManager interface is called, and a hidden process list is displayed in the display area list.
An embodiment of the present invention provides another apparatus for hiding a process of an android system at the same time, as shown in fig. 3, including:
the destination process selecting module 31: checking a running process list and selecting a target process;
call load configuration module 32: calling an internal configuration file of a top-level code of the android system, and loading a configuration file for controlling the operation of a target process;
the execution module 33: the configuration file for controlling the operation of the target process executes an API (application programming interface) for controlling the operation of the target process and a getRelay application process () function;
the hidden module 34: the destination process is hidden.
The embodiment of the invention also provides a storage device, wherein a plurality of instructions are stored in the storage device, and the instructions are suitable for being loaded by the processor and executing the steps of the method for hiding the android system process provided by the embodiment of the invention.
Through the above description of the embodiments, it is clear to those skilled in the art that the embodiments of the present invention may be implemented by hardware, or by software plus a necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods according to the embodiments of the present invention.
Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.