Search

CN-121996440-A - Information processing method, apparatus, terminal device, storage medium, and program product

CN121996440ACN 121996440 ACN121996440 ACN 121996440ACN-121996440-A

Abstract

The present disclosure relates to an information processing method, apparatus, terminal device, storage medium, and program product, the information processing method including storing target information in a kernel space; the target information indicates whether a target application program can call a target service in a system, and the target information is acquired from the kernel space when the target application program calls the target service. The process that the target application program performs information interaction through the kernel and the target service and the process that target information is obtained from the target service are omitted, unnecessary interaction operation is saved, interaction efficiency is improved, and therefore efficiency of calling the target service by the target application program is improved, and use experience of a user is further improved. In addition, this approach also eliminates the need for cross-process communication, thereby reducing overhead.

Inventors

  • YAN HAO
  • DOU ZHENG
  • LIU BIN

Assignees

  • 北京小米移动软件有限公司

Dates

Publication Date
20260508
Application Date
20241105

Claims (15)

  1. 1. An information processing method, characterized by comprising: storing target information in a kernel space, wherein the target information indicates whether a target application program can call target service in a system; and when the target application program calls the target service, acquiring the target information from the kernel space.
  2. 2. The method of claim 1, wherein storing the target information in the kernel space comprises: determining the target information; and storing the target information in the kernel space.
  3. 3. The method of claim 2, wherein the determining the target information comprises: The method comprises the steps of obtaining configuration operation acting on a configuration control, wherein the configuration control is used for configuring whether the target application program can call the target service or not; And determining the target information according to a configuration result of the configuration operation.
  4. 4. The method according to claim 1 or 2, wherein storing the target information in the kernel space comprises: and the target service stores the target information in the kernel space in a system call mode.
  5. 5. The method of claim 1, wherein the obtaining the target information from the kernel space comprises: and the target application program acquires the target information from the kernel space in a system call mode.
  6. 6. The method according to claim 1, wherein the method further comprises: and updating the target information.
  7. 7. The method of claim 6, wherein the updating the target information comprises: Detecting an updating operation acting on a configuration control, wherein the configuration control is used for configuring whether the target application program can call the target service or not; and updating the target information according to the updating result of the updating operation on the configuration control.
  8. 8. The method of claim 7, wherein the updating the target information comprises: And updating the target information stored in the kernel space according to the updating result in a system call mode.
  9. 9. The method of claim 1, wherein the target service comprises at least one of: An activity management service; Packet management services; And (5) a window management service.
  10. 10. The method of claim 9, wherein the packet management service comprises at least one of: positioning service; A rights checking service; acquiring a service of a network state; acquiring equipment information service; Updating the service; and (5) information query service.
  11. 11. The method of claim 1, wherein the target information comprises: first information for indicating the target application; second information for indicating whether the target application can call the target service; And third information for representing the correspondence between the first information and the second information.
  12. 12. An information processing apparatus, characterized by comprising: The system comprises a storage module, a memory module and a control module, wherein the storage module is used for storing target information in a kernel space, and the target information represents whether a target application program can call target service in the system or not; and the acquisition module is used for acquiring the target information from the kernel space when the target application program calls the target service.
  13. 13. A terminal device, comprising: A processor and a memory for storing a computer program or executable instructions capable of running on the processor, wherein: A processor for executing the computer program or the executable instructions, the executable instructions performing the method of any of the preceding claims 1 to 11.
  14. 14. A non-transitory computer readable storage medium, characterized in that the non-transitory computer readable storage medium has stored therein a computer program or computer executable instructions, which when executed by a processor, implement the method of any of the preceding claims 1 to 11.
  15. 15. A computer program product comprising a computer program or executable instructions which, when executed by a processor, implement the method of any one of claims 1 to 11.

Description

Information processing method, apparatus, terminal device, storage medium, and program product Technical Field The present disclosure relates to the field of information processing technologies, and in particular, to an information processing method, an apparatus, a terminal device, a storage medium, and a computer program product. Background With the development of technology, the role of information processing is becoming more and more important. Information processing involves many aspects, the transmission of information and thus the processing of information in different terminal devices, and also in different parts within the same device. In general, an operating system and an application program are installed in the terminal device, and information interaction can be performed between the application program and the operating system, so that corresponding functions are realized. Disclosure of Invention The present disclosure provides an information processing method, apparatus, terminal device, storage medium, and computer program product. According to a first aspect of the embodiment of the disclosure, an information processing method is provided, which comprises the steps of storing target information in a kernel space, wherein the target information indicates whether a target application program can call a target service in a system, and acquiring the target information from the kernel space when the target application program calls the target service. In one embodiment, storing the target information in the kernel space includes determining the target information and storing the target information in the kernel space. In one embodiment, the determining the target information comprises obtaining configuration operation acting on a configuration control, wherein the configuration control is used for configuring whether the target application program can call the target service or not, and determining the target information according to a configuration result of the configuration operation. In one embodiment, the storing the target information in the kernel space comprises the target service storing the target information in the kernel space in a system call mode. In one embodiment, the obtaining the target information from the kernel space includes the target application program obtaining the target information from the kernel space by means of a system call. In one embodiment, the method further comprises updating the target information. In one embodiment, the updating of the target information comprises detecting an updating operation acting on a configuration control, wherein the configuration control is used for configuring whether the target application program can call the target service or not, and updating the target information according to an updating result of the updating operation on the configuration control. In one embodiment, the updating the target information comprises updating the target information stored in the kernel space according to the updating result by means of a system call. In one embodiment, the target service includes at least one of an activity management service, a package management service, and a window management service. In one embodiment, the packet management service includes at least one of a location service, a rights check service, a service for acquiring network status, a service for acquiring device information, an update service, and an information query service. In one embodiment, the target information comprises first information used for indicating the target application program, second information used for indicating whether the target application program can call the target service, and third information used for representing the corresponding relation between the first information and the second information. According to a second aspect of the embodiment of the disclosure, an information processing device is provided, which comprises a storage module and an acquisition module, wherein the storage module is used for storing target information in a kernel space, the target information indicates whether a target application program can call a target service in a system, and the acquisition module is used for acquiring the target information from the kernel space when the target application program calls the target service. A third aspect of the disclosed embodiments provides a terminal device comprising a processor and a memory for storing executable instructions capable of running on the processor, wherein the processor is configured to execute the method of any of the above embodiments when the executable instructions are executed. In a fourth aspect of the disclosed embodiments, there is provided a non-transitory computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the method of any of the above embodiments. A fifth aspect of the disclosed embodiments provides a compu