HOW TO ROOT ANDROID - Supercoders | Web Development and Design | Tutorial for Java, PHP, HTML, Javascript HOW TO ROOT ANDROID - Supercoders | Web Development and Design | Tutorial for Java, PHP, HTML, Javascript

Breaking

Post Top Ad

Post Top Ad

Monday, November 19, 2018

HOW TO ROOT ANDROID

HOW TO ROOT ANDROID


 






WHAT IS ROOTING?

ROOTING IS A PROCESS IN ANDROID WHICH YOU GET SUPER ACCESS OF DEVICES JUST LIKE ( TERMINAL SUPER ACCESS IN LINUX BASED SYSTEM ) WITH THE HELP OF ROOTING WE CAN ALLOW DEVICES SYSTEM FILES, MODIFY SYSTEM FILES , CHANGE IMEI , VIEW SAVED PASSWORD OF WI FI , CHANGE FONTS OF DEVICES , INSTALL 3RD PARTY SOFTWARE  WITH ROOT ACCESS , MODIFY ROM.

BACKGROUND AND RELATED WORK 

ROOT ACCESS RESTRICTIONS- ANDROID SECURITY PREVENTS USERS AND APPS FROM OBTAINING ROOTING SYSTEM. 

 ROOT GAURD

It  is an enhanced root-management system that provides fine-grain control for users to grant the requested permissions to an app.The permission policy is based on system calls and parameters invoked by an app.Similarly to SE Android, RootGuard
monitors system scalls made by root apps to detect and prevent
abnormal behavior of app
 

ROOT MANAGEMENT

Root management grant ROOT ACCESS to apps but it’s well known among usable security researchers that average users are either uncapable or unmotivated to
consider carefully and make informed decisions about granting root privileges to an app.
Many users ignore security warnings due to habituation or lack of contextual information.


INVESTIGATING ROOTING METHODS

We started with a qualitative investigation of the methods employed for rooting Android devices and getting around various counter measures that are supposed to make rooting
difficult, if not impossible. We systemized our understanding in a form of kingo-root-no-adware.jpg No hardware! Leave this box unchecked and be sure to click Decline during installation.



Step 1: Download and install KingoRoot for Windows, making sure to leave unchecked the option to "Install Yahoo powered Chromium browser" and then click Decline to prevent any other adware incursions.

Step 2: Enable USB debugging mode on your phone. If it's running Android 4.0 or 4.1, tap Settings, Developer Options, then tick the box for "USB debugging." (You may need to switch "Developer options" to On before you can do so.) 


On Android 4.2, tap Settings, About Phone, Developer Options, and then tick USB debugging." Then tap OK to approve the setting change. android-enable-usb-debugging.jpg.


 On Android 4.3 and later (including 5.0, though this also applies to some versions of 4.2), tap Settings, About Phone, then scroll down to Build Number. Tap it seven times, at which point you should see the message, "You are now a developer!"

With that done, tap Settings, About Phone, Developer Options, and then tick USB debugging." Then tap OK to approve the setting change.


Step 3:  Run Android Root on your PC, then connect your phone via its USB sync cable. After a moment, the former should show a connection to the latter. Your device screen may show an "Allow USB debugging?" pop-up. Tick "Always allow from this computer," then tap OK. kingo-root-start.jpg  Enlarge Image

Step 4: Click Root, then sit back and wait while the utility does its thing. After a few minutes, my Galaxy S6 got to 70 percent, and then the phone once again crashed and rebooted. Again, your mileage can (and most likely will) vary. And that's all there is to it.

 If you decide you want to reverse the process, just run Android Root again, connect your phone, then click Remove Root. (Same goes for the app version, more or less.)

METHOD FOR ANDROID VERSION GREATER THAN 5.1


HOW TO FLASH THE  TWRP RECOVERY ANDROID DEVICE

An Android device consists of several pieces of software, including the boot loader, radio, recovery and system. The recovery is a runtime environment separated from Android that can perform various system-related tasks. 

It contains tools to help repair installations as well as  updates. There are two kinds of recovery, one is stock recovery, the other is custom recovery.The stock recovery on Android device can delete all user and cache content ( for factory reset purposes ), allow external tools to run functions on Andorid device and perform system updates. The stock recovery is a limited system.

 A custom recovery is a third-party recovery environment. Compared to stock recovery, the custom recovery has more addtional features. It is modified to allow update packages that have not been digitally signed by official sources. Custom recoveries has the ability to create and restore device backups.

The popular custom recovery -- Team Win Recovery Project ( TWRP ), is a touch-based recovery. TWRP offers ROM and backup features but the stock recovery doesn't.

 What you should do before Flashing the TWRP

Unlock the bootloader of Android device. Only you have unlocked the bootloader of the device, flashing the TWRP recovery is available. 

Most bootloaders are locked, as well as encrypted to make sure users stick to the Android OS version manufactured by the developers.

INSTALL a compatible version of TWRP. 

Make sure that the version of TWRP is applicable to your Android in case of any device specific quirks. Do a little reach on the TWRP SITES
DOWNLOAD Android Debug Bridge ( ADB ). If you have unlocked the bootloader, you may already have them. If not, you had better download one.
Back up. Although flashing the TWRP will not wipe up the data, but backup is always important when you do something with the system.

Flashing the TWRP Recovery Step by Step

Step 1: Enable USB Debugging.



Different Android versions have different ways. Take Android 5.0 Lollipop as example. 

Click Menu button to enter into App drawer.
Go to "Settings".
Scroll down to the bottom and tap "About phone" or "About tablet".
Scroll down to the bottom of the "About phone" and locate the "Build Number" field.
Click Menu button to enter into APP Drawer.
Tap the Build number field seven times to enable 

Developer Options. Tap a few times and you'll see a countdown that reads "You are now 3 steps away from being a developer."
When you are done, you'll see the message "You are now a developer!".
Tap the Back button and you'll see the Developer options menu under System on your Settings screen.

Go to Settings>Developer Options>USB Debugging. Tap the USB Debugging checkbox.
USB Debugging should only be enabled when you need it. Leaving it enabled all the time is kind of a security risk for that this mode grants you high-level access to your device.

Step 2:   Download TWRP for your Android Device




Head to  TWRP official website and go to the Devices page for searching the version of your device. Go to the "download links" section on that page and download the TWRP image. Copy the TWRP image to the folder in which you have installed the ADB and rename it to twrp.img.

Step 3:  Boot into Andorid Bootloader.



Every phone is a bit different to another when booted into bootloader. But most of modern devices boot into bootloader by turning off the device, then hold the "Power" and "Volume Down" buttons for 10 seconds before releasing. If this method doesn't work well on your device, you had better refer to the Google instructions.

Step 4: Flash TWRP to Your Android Device.

Connect your device to the PC with a USB cable once in bootloader mode. The device should indicate that the device is connected. Open the folder of twrp.img by using the mouse on the PC. "Shift+Right Click" on an empty area and choose "Open a Command Prompt Here". Run the command: fast boot devices. The command returns a serial number, indiccating that it can recognize your device. If it doesn't, check which step you have done with mistakes.

Flash the TWRP once the device is recognized by fastboot. And run the command: fastboot flash recovery twrp.img. Results of flashing. If all goes well, you will see a success message in Command Prompt window.

Step 5: Boot into TWRP Recovery.


Use the volume down button to scroll to the "Recovery" option in your bootloader after unpluging from the PC and select it. If TWRP requires a password, then enter the password or PIN you use to unlock the bootloader. It also ask if you'd like to use in "Read Only" mode. Read Only mode means it will just stay on your device until you reboot it. After entering the main screen, you can use it to creat "Nandroid" backups, restore previous backups, or flash custom ROMs. Once you have made your first backups, you are free to explore TWRP, flash a new ROM and so on.
















STEP 6: INSTALL SUPER USER (SU) AND  MAGISK 




1. First Boot Device in Bootloader TWRP Mode then
2.Then Select Install Zip
3. Now Copy Your su.zip or magisk.zip in Phone Store in Top Directory
4.Now click on install zip then select the zip file which you copy
4.Now SWIPE to Flash it.


Note : Make Sure You Have Backup Your Roms, Sometimes Phones may stuck on boot logo.


IMPORTANT NOTE- Rooting a device may void the warranty on the device. It may also make the device unstable or if not done properly, may completely brick the device. Some methods may install additional apps/software on your device.













No comments:

Post a Comment

Post Top Ad