Game running environment detection method and system based on bootloader

By using the bootloader to detect threads in Android phones to determine whether the system has been re-customized, it solves the problem of Android phone system detection, achieves accurate identification of non-safe customization environments and prevents cheating, and improves game security.

CN118767437APending Publication Date: 2024-10-15FUJIAN TQ ONLINE INTERACTIVE INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310375363.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The re-customization and modification of the Android mobile phone system makes it difficult to detect game cheating software. It is difficult for existing technology to accurately distinguish between a normal system and a non-safe customized mobile phone environment.

Method used

By starting the game client, loading and scanning the thread based on the bootloader, calling Runtime.getRuntime().exec to obtain the bootloader attributes, determining its unlock status, and reading the specific path folder directory to determine whether the system has been re-customized, using getprop ro. boot.flash.locked command and File class for detection.

Benefits of technology

It achieves accurate detection of the running environment of Android game clients, identifies non-safe customized mobile phone environments, prevents players from cheating, and improves game security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118767437A_ABST
    Figure CN118767437A_ABST
Patent Text Reader

Abstract

The invention relates to a bootloader-based game running environment detection method and system, and the method comprises the steps: S1, starting a game client, and loading, starting and scanning a bootloader-based thread; step S2, executing a'getprop ro.boot.flash.lock 'command by calling an execution program, and executing the'getprop ro.boot.flash.lock' command by calling the execution program; s3, a result is returned after the execution command is obtained, if the returned result is 0, it is indicated that the blootloader is unlocked, and the judgment in the step S4 continues; if a return result is 1, indicating that the blootloaer is not unlocked, directly ending; and S4, when a return result is 0, reading a path folder directory which must exist after the bootloader is opened, and judging whether the folder directory exists or not. According to the method, the mobile phone environment in which the mobile phone system is customized and modified again when the game client runs in the bootloader unlocking state can be identified; therefore, whether the Android game client runs in a mobile phone environment with a non-secure customized system or not can be accurately detected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer communication, and in particular to a game running environment detection method and system based on bootloader. Background Art

[0002] With the development of Android games and the influx of players, there will be a group of people who want to use cheating to get more benefits or a greater sense of victory in the game. Running game cheating software on Android phones requires relatively high permissions to run functions. Normal phones cannot support running these cheating software functions, so re-customizing and modifying the Android phone system becomes a necessary condition. This kind of customized and modified mobile phone needs to be focused on counterattack and detection in the game. This kind of re-customized Android system is a very difficult point to detect and confront in the game. They can do various defense detections based on functional requirements, so a continuous and long-term confrontation process is required. Summary of the invention

[0003] To overcome the above problems, the purpose of the present invention is to provide a game running environment detection method and system based on bootloader, which can accurately detect whether the Android game client is running in a mobile phone environment with an insecure customized system.

[0004] The present invention is implemented by the following scheme: a method for detecting a game running environment based on a bootloader, the method comprising the following steps:

[0005] Step S1, start the game client, load and start scanning the thread based on the bootloader;

[0006] Step S2, the thread obtains the properties of the bootloader function in the current running Android phone environment by calling Runtime.getRuntime().exec;

[0007] Step S3, get the result returned after executing the command. If the returned result is 0, it means that the blootloader has been unlocked, and then continue the judgment of step S4; if the returned result is 1, it means that the blootloader has not been unlocked, and then end directly;

[0008] Step S4, when the returned result is 0, read the path folder directory that must exist after the bootloader is enabled, and determine whether the folder directory exists. When the returned result is 0, read the path folder directory that must exist after the bootloader is enabled, and determine whether the folder directory exists. If the folder directory does not exist, it can be determined that the game client is running in a mobile phone environment whose system has not been re-customized. If the folder directory exists, it can be determined that the game client is running in a mobile phone environment whose system has been re-customized.

[0009] Furthermore, the step S2 is further that the thread executes the "getprop ro.boot.flash.locked" command by calling Runtime.getRuntime().exec to obtain the properties of the bootloader function in the current running Android mobile phone environment.

[0010] Furthermore, the acquisition in step S3 is performed by calling the buffered stream BufferedReader to acquire the execution command and then return the result.

[0011] Furthermore, the reading in step S4 is performed by using the File class method to read the path folder directory that must exist after the bootloader is turned on, and the folder directory is "dev / blocak / platform".

[0012] A game running environment detection system based on bootloader, including a startup module, an execution module, a reply judgment module, and a reading module;

[0013] The startup module starts the game client and loads and starts scanning the thread based on the bootloader;

[0014] The execution module: The thread obtains the properties of the bootloader function in the current running Android phone environment by calling Runtime.getRuntime().exec;

[0015] The reply judgment module: returns the result after obtaining the execution command. If the returned result is 0, it means that the blootloader has been unlocked, and then the judgment of step S4 is continued; if the returned result is 1, it means that the blootloader has not been unlocked, and then the judgment of step S4 is directly ended;

[0016] The reading and judging module reads the path folder directory that must exist after the bootloader is turned on, and judges whether the folder directory exists. When the returned result is 0, the path folder directory that must exist after the bootloader is turned on is read, and judges whether the folder directory exists. If the folder directory does not exist, it can be determined that the game client is running in a mobile phone environment whose system has not been re-customized and modified. If the folder directory exists, it can be determined that the game client is running in a mobile phone environment whose system has been re-customized and modified.

[0017] Furthermore, the execution module further executes a "getprop ro.boot.flash.locked" command for the thread by calling Runtime.getRuntime().exec to obtain the properties of the bootloader function in the current running Android mobile phone environment.

[0018] Furthermore, the acquisition in the reply judgment module is performed by calling the buffered stream BufferedReader to acquire the execution command and then return the result.

[0019] Furthermore, the reading in the reading module is performed by using the File class method to read the path folder directory that must exist after the bootloader is turned on, and the folder directory is "dev / blocak / platform".

[0020] The beneficial effect of the present invention is that: through this technical solution, it is possible to identify that the game client is running in a mobile phone environment in which the mobile phone system is re-customized and modified when the bootloader is unlocked, thereby accurately detecting whether the Android game client is running in a mobile phone environment with an insecure customized system. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a schematic flow chart of the method of the present invention.

[0022] Figure 2 It is a system principle block diagram of the present invention. DETAILED DESCRIPTION

[0023] The present invention will be further described below in conjunction with the accompanying drawings.

[0024] See also Figure 1 As shown, a method for detecting a game running environment based on a bootloader of the present invention comprises the following steps:

[0025] Step S1, start the game client, load and start scanning the thread based on the bootloader;

[0026] Step S2, the thread obtains the properties of the bootloader function in the current running Android phone environment by calling Runtime.getRuntime().exec;

[0027] Step S3, get the result returned after executing the command. If the returned result is 0, it means that the blootloader has been unlocked, and then continue the judgment of step S4; if the returned result is 1, it means that the blootloader has not been unlocked, and then end directly;

[0028] Step S4: When the returned result is 0, read the path folder directory that must exist after the bootloader is enabled, and determine whether the folder directory exists.

[0029] The present invention will be further described below in conjunction with a specific embodiment:

[0030] A game running environment detection method based on bootloader,

[0031] 1. Start the game client and load and start scanning the bootloader-based thread;

[0032] 2. The thread obtains the properties of the bootloader function in the current running Android phone environment by calling Runtime.getRuntime().exec;

[0033] 2.1 The thread further executes the "getprop ro.boot.flash.locked" command by calling Runtime.getRuntime().exec to obtain the properties of the bootloader function in the current Android phone environment. The "getprop ro.boot.flash.locked" command is used to obtain whether the bootloader function in the current Android phone environment has been modified, that is, unlocked. The purpose is to determine whether the bootloader has been unlocked.

[0034] 3. Get the result returned after executing the command. If the result is 0, it means that the blootloader has been unlocked, and then continue the judgment of step S4; if the result is 1, it means that the blootloader has not been unlocked, then end directly;

[0035] The acquisition in 3.1 is performed by calling the buffered stream BufferedReader to execute the command and then return the result.

[0036] 4. When the return result is 0, read the path folder directory that must exist after the bootloader is enabled, and determine whether the folder directory exists. When the return result is 0, read the path folder directory that must exist after the bootloader is enabled, and determine whether the folder directory exists. If the folder directory does not exist, it can be determined that the game client is running in a mobile phone environment where the system has not been re-customized. If the folder directory exists, it can be determined that the game client is running in a mobile phone environment where the system has been re-customized.

[0037] 4.1 Reading is done by using the File class to read the path folder directory that must exist after the bootloader is turned on, and the folder directory is "dev / blocak / platform".

[0038] When the Android game client starts logging in, it starts a detection and scanning thread to detect whether the mobile phone environment is running a re-customized and modified system. Only if the return result in step 3 is 0 and the file directory detected in step 4 exists, it can be identified that the game client is running in a mobile phone environment that has been re-customized and modified by the mobile phone system under bootloader unlocking. If the current running environment is a re-customized and modified mobile phone environment, the game client will issue a dangerous environment prompt and then implement a corresponding plan to prohibit players from logging in, thereby preventing players from cheating and improving the security of game operation.

[0039] See also Figure 2 As shown, the present invention also provides a game running environment detection system based on bootloader, including a startup module, an execution module, a reply judgment module, and a reading module;

[0040] The startup module starts the game client, loads and starts scanning the bootloader-based thread, and obtains the properties of the bootloader function in the current running Android phone environment;

[0041] The execution module: The thread obtains the properties of the bootloader function in the current running Android phone environment by calling Runtime.getRuntime().exec;

[0042] 2.1 The thread further executes the "getpropro.boot.flash.locked" command by calling Runtime.getRuntime().exec to obtain the properties of the bootloader function in the current Android phone environment.

[0043] The reply judgment module: returns the result after obtaining the execution command. If the returned result is 0, it means that the blootloader has been unlocked, and then the judgment of step S4 is continued; if the returned result is 1, it means that the blootloader has not been unlocked, and then the judgment of step S4 is directly ended;

[0044] The acquisition in 3.1 is performed by calling the buffered stream BufferedReader to execute the command and then return the result.

[0045] The reading and judging module: when the returned result is 0, read the path folder directory that must exist after the bootloader is turned on, and judge whether the folder directory exists. When the returned result is 0, read the path folder directory that must exist after the bootloader is turned on, and judge whether the folder directory exists. If the folder directory does not exist, it can be determined that the game client is running in a mobile phone environment whose system has not been re-customized and modified. If the folder directory exists, it can be determined that the game client is running in a mobile phone environment whose system has been re-customized and modified.

[0046] 4.1 Reading is done by using the File class to read the path folder directory that must exist after the bootloader is turned on, and the folder directory is "dev / blocak / platform".

[0047] When the Android game client starts logging in, it starts a detection and scanning thread to detect whether the mobile phone environment is running a re-customized and modified system. Only if the return result of the reply judgment module is 0 and the file directory detected in the read judgment module exists, it can be identified that the game client is running in a mobile phone environment that has been re-customized and modified by the mobile phone system under bootloader unlocking. If the current running environment is a re-customized and modified mobile phone environment, the game client will issue a dangerous environment prompt and then implement a corresponding plan to prohibit players from logging in, thereby preventing players from cheating and improving the security of game operation.

[0048] In short, this technical solution can identify that the game client is running in a mobile phone environment where the mobile phone system has been re-customized and modified after the bootloader is unlocked, thereby accurately detecting whether the Android game client is running in a mobile phone environment with an insecure customized system.

[0049] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.

Claims

1. A game running environment detection method based on bootloader, characterized in that: The method comprises the following steps: Step S1, start the game client, load and start scanning the thread based on the bootloader; Step S2, the thread obtains the properties of the bootloader function in the current running Android phone environment by calling Runtime.getRuntime().exec; Step S3, get the result returned after executing the command. If the returned result is 0, it means that the blootloader has been unlocked, and then continue the judgment of step S4; if the returned result is 1, it means that the blootloader has not been unlocked, and then end directly; Step S4, when the returned result is 0, read the path folder directory that must exist after the bootloader is turned on, and determine whether the folder directory exists. If the folder directory does not exist, it can be determined that the game client is running in a mobile phone environment whose system has not been re-customized and modified. If the folder directory exists, it can be determined that the game client is running in a mobile phone environment whose system has been re-customized and modified.

2. A method for detecting a game running environment based on a bootloader according to claim 1, characterized in that: The step S2 is further that the thread executes the "getpropro.boot.flash.locked" command by calling Runtime.getRuntime().exec to obtain the properties of the bootloader function in the current Android mobile phone environment.

3. The method for detecting a game running environment based on a bootloader according to claim 1, characterized in that: The acquisition in step S3 is performed by calling the buffered stream BufferedReader to acquire the execution command and then return the result.

4. The method for detecting a game running environment based on a bootloader according to claim 1, characterized in that: The reading in step S4 is performed by using the File class to read the path folder directory that must exist after the bootloader is turned on, and the folder directory is "dev / blocak / platform".

5. A game running environment detection system based on bootloader, characterized in that: It includes a startup module, an execution module, a reply judgment module, and a reading module; The startup module starts the game client and loads and starts scanning the thread based on the bootloader; The execution module: The thread obtains the properties of the bootloader function in the current running Android phone environment by calling Runtime.getRuntime().exec; The reply judgment module: returns the result after obtaining the execution command. If the returned result is 0, it means that the blootloader has been unlocked, and then the judgment of step S4 is continued; if the returned result is 1, it means that the blootloader has not been unlocked, and then the judgment of step S4 is directly ended; The reading and judging module: when the returned result is 0, read the path folder directory that must exist after the bootloader is turned on, and judge whether the folder directory exists. If the folder directory does not exist, it can be determined that the game client is running in a mobile phone environment whose system has not been re-customized and modified. If the folder directory exists, it can be determined that the game client is running in a mobile phone environment whose system has been re-customized and modified.

6. The game running environment detection system based on bootloader according to claim 5, characterized in that: The step S2 is further that the thread executes the "getpropro.boot.flash.locked" command by calling Runtime.getRuntime().exec to obtain the properties of the bootloader function in the current Android mobile phone environment.

7. The game running environment detection system based on bootloader according to claim 5, characterized in that: The acquisition in the reply judgment module is performed by calling the buffered stream BufferedReader to acquire the execution command and then return the result.

8. The game running environment detection system based on bootloader according to claim 5, characterized in that: The reading in the reading judgment module is to read the path folder directory that must exist after the bootloader is turned on by using the File class method, and the folder directory is "dev / blocak / platform".