Rooting: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
(Created page with "Rooting methods change with time. Since Android 7.0 though Magisk / Towelroot seem to be standard. The basic process is: Download your drivers Put phone into developer mode...")
 
No edit summary
Line 3: Line 3:
The basic process is:
The basic process is:


Download your drivers
* Download your drivers
Put phone into developer mode
* Put phone into developer mode
Set USB debugging and OEM unlocking on.  
* Set USB debugging and OEM unlocking on.  
Ensure your bootloader is unlocked (dial *#*#7378423#*#* or '''fastboot oem device-info''')
* Ensure your bootloader is unlocked (dial *#*#7378423#*#* or '''fastboot oem device-info''')
Put device into fastboot mode (or download mode if it's a Samsung)
* Copy magisk.zip + magisk manager onto phone
  adb bootloader (adb download for Samsung)
* Put device into fastboot mode (or download mode if it's a Samsung)
Flash twrp using  
    adb reboot bootloader (adb reboot download for Samsung)
* Flash twrp using fastboot / odin
* use twrp to install magisk.zip
* use checkroot to see if you're rooted
* install magisk manager
* install busybox
* debloat


=Removing bloatware=
=Removing bloatware=
Line 96: Line 102:


[https://play.google.com/store/apps/details?id=com.joeykrim.rootcheck&hl=en tells you if root is enabled]
[https://play.google.com/store/apps/details?id=com.joeykrim.rootcheck&hl=en tells you if root is enabled]
Busybox
[https://play.google.com/store/apps/details?id=stericson.busybox&hl=en terminal /system/xbin/ commands]


Samsung Phone Info
Samsung Phone Info


[https://play.google.com/store/apps/details?id=org.vndnguyen.phoneinfo&hl=en gives you region and CSC information etc - useful if you need to go back to stock firmware]
[https://play.google.com/store/apps/details?id=org.vndnguyen.phoneinfo&hl=en gives you region and CSC information etc - useful if you need to go back to stock firmware]

Revision as of 07:02, 20 September 2019

Rooting methods change with time. Since Android 7.0 though Magisk / Towelroot seem to be standard.

The basic process is:

  • Download your drivers
  • Put phone into developer mode
  • Set USB debugging and OEM unlocking on.
  • Ensure your bootloader is unlocked (dial *#*#7378423#*#* or fastboot oem device-info)
  • Copy magisk.zip + magisk manager onto phone
  • Put device into fastboot mode (or download mode if it's a Samsung)
   adb reboot bootloader (adb reboot download for Samsung)
  • Flash twrp using fastboot / odin
  • use twrp to install magisk.zip
  • use checkroot to see if you're rooted
  • install magisk manager
  • install busybox
  • debloat

Removing bloatware

https://android.gadgethacks.com/how-to/best-way-uninstall-all-types-bloatware-any-android-0196667/

Requirements

   Root access
   Magisk installed

Step 1Install the Debloater Module

First, open up the Magisk Manager app, tap the menu button on the left, then head to "Downloads." Tap the search icon in the upper-right and search for "debloater", then the module you need will pop up. Tap the download arrow and then hit "Install." Once it finishes, tap the "Close" option at the bottom-left. Step 2Install the BusyBox Module

The Debloater module uses special root commands known as BusyBox. So for the app to fully function, you'll need to download an additional module.

Just as you did with the previous step, head to the "Downloads" section in Magisk Manager to find the module, but this time search for "busybox," then download and install the module in the same manner. Once the install finishes, tap the "Reboot" option at the bottom-right to restart your device so you can start killing that bloatware.

Note: BusyBox is a set of root commands needed in the terminal environment to run the Debloater Magisk module. If you plan on using other command line Magisk modules, you're going to be making good use of BusyBox from here on out and well into the future.

Step 3Install the Terminal App

Depending on what device you have, some may already come with a terminal application by default through the developer options. However, the universal method across all devices would be to download the Termux app from the Google Play Store. When it comes to command line situations, no app out there is as widely recommended quite like Termux is.

   Play Store Link: Termux

Step 4Run the Commands

Open the Termux app to the main screen, type the following command, and then tap enter:

  su

When you're prompted to do so, tap "Grant" on the root access popup to grant the appropriate superuser rights to the terminal app.

Once the superuser permissions have been granted, type in the next command, followed by enter:

  debloat

This command will immediately launch the Debloat Magisk module interface so you can start removing any bloatware from your system.

For me I couldn't see the busybox module in the debloat app so I had to do

  cp /data/adb/magisk busybox /system/xbin/

The magisk page has as link to a busybox you can flash as well

Step 5Uninstall Bloatware

Now comes the best part — finally being able to look over your entire system's bloatware and remove anything you don't want. On the main menu of the Debloater module, you have multiple options to pick from, but the main focus should be on choice number one for now. Go ahead and type "1" and hit enter to scan your device for all of the system installed apps.

Once the scan is finished, you'll be presented with an extensive list of all the system apps installed on your internal storage. Go through the list in detail and uninstall any app you want by typing in the corresponding number, then hitting enter. If you want to batch uninstall multiple apps at once, type each number, but make sure to add a space in between each one.

After you make your choice and press enter, the list of apps will appear with some information and then a confirmation input. If everything checks out, type "y" to proceed with dumping the bloatware from your system for good. Once you're all finished and no changes need to be made, input "n" when it asks if you want to return to the menu.

To uninstall carrier or OEM bloat, repeat this process, but choose "3" from the main menu to select Vendor Apps. This section shouldn't have as many apps in it, but it may house some of the more obnoxious bloatware, depending on your device.

If you want to scrub the bloatware at an even higher level from your system, select "System Priv-Apps," which is option 2 on the Debloater main menu. Just be careful here since these apps are a bit more sensitive and could mess things up if you don't know what you're removing.

The final thing you need to do is reboot your device, then you're all done! Upon a reboot, you should now notice all of the apps you uninstalled through the Debloater module are not there anymore.

Useful apps

ODIN

https://odindownload.com/

Sometimes you need to use an older version of Odin. I used 3.13.1.

TWRP

https://twrp.me/

Magisk

https://forum.xda-developers.com/apps/magisk

SuperSu

NB you need the flashable zip.

latest supersu from rootmydevice.com

chainfire / supersu.com from xda developers - note their amazon bucket wasn't working when I tried

Root checker

tells you if root is enabled

Busybox

terminal /system/xbin/ commands

Samsung Phone Info

gives you region and CSC information etc - useful if you need to go back to stock firmware