If it exists, then we are displaying the message “Device Rooted”. The code inside this application is performing a simple check for Superuser.apk file as shown in the screenshot below.Īs we can see in the above figure, the app is checking if there is a file named “Superuser.apk” inside the “/system/app/” directory. Let’s first understand how this app is checking for the root access. Now, our job is to fool the application that this device is not rooted. Before we begin, let’s understand the background.ĭownload the application from the download section of this article and run the app on your device and click the button “Is my device rooted?” Since I am running it on a rooted device, it says “Device Rooted”. In this section, we will see how one can bypass one of the root detection mechanisms mentioned above. But there could be other ways around for root detection which are not mentioned here in this article. The above mentioned techniques are just a few examples of what a developer may look for in order to identify if a device is rooted. Looking at the above figure, it is pretty clear that I am using a stock Android ROM from Google. If it is something like “test-keys”, then it is most likely built with a custom ROM. By default, Google gives ‘release-keys’ as its tag for stock ROMs. Checking the BUILD tag for test-keys: This check is generally to see if the device is running with a custom ROM.Executing “su” and “id” commands and looking at the UID to see if it is root. Checking for those applications would also be a good idea to detect if the device is rooted.īusybox is an application which provides a way to execute the most common Linux commands on your Android device. There are some specific applications which run only on rooted devices.I have seen some apps from the Android market verifying if any application by “chainfire” is running on the device. The above screenshot shows a package named “eu.chainfire.supersu”. Many applications look for applications with specific package names.This application allows other applications to run as root on the device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |