Rooting with Magisk and flashing custom ROMs
Some info about rooting with Magisk and installing a new custom ROM.

Where to start?

All Android tablets and phones have a different method of going about rooting. You need to find a guide and instructions that are SPECIFICALLY for your device's model. Some manufacturers or Android phone device models make it very difficult or impossible to root or flash a custom recovery because of things like fuse checks or simply not releasing the kernel source or the ability to unlock your bootloader. All data on your Android device usually needs to be erased in this process.

How to Root - XDA Android Forums (Click here to learn about Rooting)

You will need to root with Magisk in order to install Magisk modules.

Magisk README and FAQ

Note: Magisk is not necessarily required. You can typically manually install or edit necessary files with other root methods such as SuperSU. Magisk just tends to be easier and is a more mainstream root method these days since installing modules is simple and can be disabled/removed if something goes wrong.

If you want to use a custom ROM for your device to try to use amiibo (NFC emulation over Bluetooth) with JoyCon Droid, your custom ROM must:

  • Be Android 9 (Pie) or higher
  • Be built at least until after 2020 September 07 (All LineageOS based ROMs)
  • Have a Bluetooth HID MTU SIZE of 512 bytes. This is usually defined in the custom ROM's source code as HID_DEV_MTU_SIZE 512 There is not a way to view this while using your device. Here's an example! [The Patch introduced on 7th of September 2020 is only for the AOSP Bluetooth Stack. If an Android device uses the Qualcomm Bluetooth Stack, HID_DEV_MTU_SIZE is still set to 64.]
You can find your ROM's Build date by checking the date on the ROM you flashed or going to your phone's Settings app → About phone (open System first on some phones) → Android version (open Status first on some phones) Build date
Samsung Android devices are the only known brand that has a large enough Bluetooth HID MTU size found in the stock system firmware. This means Samsung devices usually don't need a custom ROM for amiibo emulation except if you have an older Samsung model and need to upgrade to at least Android 9.
You still need to root your Samsung or other Android device with Magisk in order to install Magisk modules. Some Samsung models are extremely difficult to root. Qualcomm Snapdragon Samsung devices of the same phone can be harder to root than Exynos Samsung devices.
OnePlus, Google Pixel, and many other phones can have simple methods and better support for rooting and flashing custom recovery like TWRP and ROMs.

WARNING:

This is all considered advanced software. No one else besides you can be responsible if you do not read everything carefully for your phone and break something. You can usually recover most devices from a softbrick if you do something wrong, but it's better to avoid that in the first place.

Samsung phones have Knox Warranty Bit. If that's tripped from custom software, you can lose certain important functionality.

Custom ROMs and software can cause different Android devices to fail SafetyNet Attestation and not pass Play Protect certification. This can cause problems with apps like Banking apps, Google Pay, Netflix, Pokemon GO, etc.

In some cases, you can still pass those or fix certain apps by using MagiskHide, MagiskHide Props Config or Universal SafetyNet Fix, renaming your TWRP folder on storage to something else, and using the option in Magisk Settings to Hide the Magisk app.

Search your device's exact model on XDA Developers Forums

Again, you cannot just follow any tutorial or guide for rooting your phone. The number one place to find information for your device would be on XDA Developers Forums.