The adb screenshot does not have root privileges, and the adb root command does not respond

Ask how to take a screenshot through adb without root privileges

Hello !

Your phone needs to take screenshots without Root

It is recommended to long press the power button and volume - 3-5 seconds

The phone makes a camera clicking sound, and the screenshot is taken successfully

How to take screenshots without root privileges

Most mobile phones have their own screenshot mode

If you can't take a screenshot, you can use the app treasure one-key root to get the permission effect

Then use qq shake screenshot or other screenshot software to perform relevant screenshot operations

The degree of shaking can also be set.

root process:

Download a App Store client from the official website to the computer, and then connect the mobile phone to the computer by connecting the mobile phone to the computer via USB or wirelessly, then turn on the USB debugging of the mobile phone, open the App Store software, click kingroot or one-key root in the toolbox, and follow the prompts to easily complete the root of the mobile phone

After that, you can authorize the tool you want to use, qq or other screenshot tools, and you can use it

I hope I can help you

Root permission acquisition in adb environment?

1. Use the non-system process to elevate itself to the root authority code through the su command

Please click to enter a picture description

2. Another set of su files and corresponding permission management schemes need to use the following file codes

Please click to enter a picture description

3. Use selinux to close the method, different manufacturers should have their own methods, such as modifying the compilation parameters:

Please click to enter a picture description

4. It can be set to execute the command every time it is turned on:

Please click to enter a picture description

Please click to enter a picture description

5. For example, the common install-recovery.sh, add the following command at the end

Please click to enter a picture description

6. Precautions: Please close selinux before use--"Entering superSU will prompt the SU binary file to be updated--"Please cancel--"The following is the command code of the windows bat script: www.fafau.com

Why does Android screen capture require root permissions

Why does android screen capture need root permissions?

【main reason】

When the andorid system calls the screenshot function, it generally calls commands to take screenshots, and these commands cannot be executed under the normal user authority, and the screenshot must be performed under the root user authority.

[Main implementation methods and reasons]

The traditional screen capture method uses the method of reading framebuffer to achieve screen capture, which requires root privileges, and the screen capture method provided by the android sdk before Android 3.0.

SurfaceFlinger screen capture is a solution provided in Android 4.0. The modification requires the system-level permission READ_FRAMEBUFFER permission. Since it is a system permission, it must be under the root permission to take a screenshot.

Since most of the basic versions of android development are developed on the basis of 4.0, you will see that many third-party screen capture software need to be able to capture screens under the root authority.

【in addition】

Not all screenshots must require root privileges. In fact, among the many screenshot schemes, there is another screenshot scheme that can take screenshots without root privileges.

Main implementation

Android screen capture -- ddms method.

Realization principle

Mainly take screenshots by executing the adb shell command. Calling these commands will actually require system privileges, but the special feature of this method is that when he actually takes a screenshot through the adb shell, he puts the command on the adbd daemon process on the device, and this process indirectly starts the screencap, which is to open the latter step of the SurfaceFlinger screen capture method in the above method 2, so root privileges are not required for screenshots.

in:

adbd is executed by the shell user, and the system assigns the graphics group to the shell user, so the shell user has the authority to call the interface of surfaceflinger.

【at last】

It is recommended to use a solution that does not require root privileges to take screenshots.

What does it mean that your mobile phone does not have root permission and can no longer take screenshots? How can I get it to upload pictures?

This situation means that you need to obtain the highest right to use the mobile phone before you can take screenshots. You can go to the app to root the mobile phone, and the tools in it are still very stable for rooting. After opening the software, find the toolbox at the bottom, and then you can see the tool after opening it. After connecting the phone with the data item, open the tool to root.

In fact, mobile phones now have a screenshot function. Generally, colleagues can use the shortcut keys to take screenshots by holding down the power button and the volume down button.

Guess you like

Origin blog.csdn.net/h824015249/article/details/128750612