Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and system for judging whether an Android system has root authority

An Android system and permission technology, applied in the field of application interaction, can solve problems such as inaccurate judgment results, increase system memory consumption, etc., and achieve the effects of improving judgment speed and efficiency, reducing power consumption, and narrowing the search range.

Active Publication Date: 2020-08-04
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] As for whether the system has root authority, the conventional judgment method is to judge whether the system has root authority by executing the su command successfully or not. When executing the su command, a pop-up window will inform the user whether the system has root authority and a software is running The query of the system root authority, the su command is used to change the system user identity, the execution of the su command and the operation of the pop-up program greatly increase the system memory consumption, and the judgment results are often not accurate enough

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and system for judging whether an Android system has root authority

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0033] see figure 1 As shown, the present invention provides a method for judging whether the Android system has root authority, by searching whether the system contains su files, thereby quickly and efficiently judging whether the Android system has root authority. The su file is an executable file. By executing the su file, the identity of the system user can be changed. Generally, if the system has root authority, the user or software can obtain the root authority of the system by executing the su file, that is, the su command. Will have the highest authority to use the system.

[0034] The method for judging whether the Android system has root authority in the present invention comprises:

[0035] Step S1: Obtain the path of the PATH environment variable of the Android system. The Android system is based on the linux system, so the underlying operation...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of application interaction and discloses a method for judging if an Android system has a root authority. The method comprises the following steps: S1) acquiring a route of a PATH environment variable of the Android system; S2) traversing documents under the route of the PATH environment variable, judging if a su document is contained in the documents under the route of the PATH environment variable, if yes, indicating that the system has the root authority, and if not, indicating that the system has no root authority; and S3) storing a judging result in step S2) in a data storage interface document, and directly reading the judging result for the root authority in the data storage interface document while judging if the system has the root authority again. The invention also discloses a system for judging if the Android system has the root authority. According to the invention, the judging efficiency for the root authority of the system can be effectively increased.

Description

technical field [0001] The invention relates to the field of application interaction, in particular to a method for judging whether an Android system has root authority and a system for judging whether an Android system has root authority. Background technique [0002] For the software running on the Android system, the root permission environment of the system is often judged during the running process. If the system has root permission, the software running on the system can open some new features after obtaining the root permission. Thereby improving the user's experience of using the software or system. The root authority is a kind of system authority. Obtaining the root authority is equivalent to obtaining the highest authority of the system. [0003] As for whether the system has root authority, the conventional judgment method is to judge whether the system has root authority by executing the su command successfully or not. When executing the su command, a pop-up win...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F21/44
CPCG06F21/44
Inventor 张磊
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products