Method and device for obtaining Root permission

A technology of root authority and operation authority, applied in the electronic field, can solve the problems of starting user processes, high failure rate, and low applicability, and achieve the effects of enhancing user experience, reducing resource consumption, and increasing success rate

Active Publication Date: 2014-11-05
ZHUHAI BAOQU TECH CO LTD
View PDF5 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the prior art, the operation of obtaining Root authority is performed through a service process. Although the Root authority can be obtained, when the system version is higher than Android4.0 and the security monitoring of the system is higher, the method described in the prior art will not Unable to avoid the security monitoring of the system, the application cannot use the Java API to start the user process through app_p

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
  • Method and device for obtaining Root permission
  • Method and device for obtaining Root permission
  • Method and device for obtaining Root permission

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0064] In a specific implementation, the terminal described in the embodiment of the present invention is the device for obtaining Root authority provided in the embodiment of the present invention. In the embodiment of the present invention, the above-mentioned terminal may include: a mobile phone, a tablet computer, etc. that can use the Android system equipment. The above-mentioned terminals are only examples, not exhaustive, including but not limited to the abo...

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 embodiment of the invention discloses a method for obtaining a Root permission. The method comprises the following steps that: a terminal opens a native process by using the identity of an SU (Switch User), and a JNI (Java Native Interface) module is started in the native process; the user identity of the native process is set as the ID (Identity) of the SU by the terminal via the JIN module, the operation permission of the SU is obtained, and the security environment variable of a system is cleared; the terminal starts a sub process through the JNI module, and a Jar packet is loaded in the sub process through the operation permission of the SU; and the terminal starts a resident service process of the Jar packet, and the Root permission is obtained through the resident service process. The embodiment of the invention also discloses a device for obtaining the Root permission. After the adoption, the method and the device disclosed by the invention have the advantages that the consumption of resources for obtaining the Root permission can be concretely reduced; the success rate of obtaining the Root permission is improved; the applicability is high; and the experience of a user obtaining the Root permission is enhanced.

Description

technical field [0001] The present invention relates to the field of electronic technology, in particular to a method and device for obtaining Root authority. Background technique [0002] With the development and maturity of the research and development technology of devices using the Android system such as mobile phones and the increasing number of mobile phones, the types of mobile phone applications are also increasingly diverse. In order to enable mobile phone users to obtain a better user experience, many mobile phone applications need to apply to the system for Root permissions, and realize more functions under the Root permissions. Currently, some mobile phones and other Android device systems provide Root permissions, and the mobile phone needs to obtain Root permissions from the system in order to realize corresponding functions under Root permissions. [0003] In the prior art, when an application program obtains Root authority, it mainly starts its own resident ...

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
IPC IPC(8): G06F21/51
CPCG06F21/51
Inventor 黄伦华刘桂峰姚辉
Owner ZHUHAI BAOQU TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products