Do I need a different root file if I have installed a custom rom on Android?

Who creates root files for devices?

  • 1
    no (yes). no. vendor (proprietary)
    – alecxs
    Commented Aug 1, 2020 at 20:57
  • @alecxs Please be descriptive for the main question. I didn't understand "No(yes)" Commented Aug 1, 2020 at 21:06
  • 1
    sorry i am lazy.. with "root file" you probably mean kernel image. usually that boot.img is the same for stock and custom rom. just some options will changed inside, for example dm-verity must be disabled. so the file is different but it's the same kernel
    – alecxs
    Commented Aug 1, 2020 at 21:12
  • I mean the update.zip file :-) that they provide to enable root access. How do I change options in side? How do I disable dm-varity? Where would I find it? Commented Aug 1, 2020 at 22:33
  • 1
    Does this answer your question? How do I root my Android device?
    – alecxs
    Commented Aug 2, 2020 at 7:41

1 Answer 1


basically root method is pretty generic. the leading tools are

in that the order, where former one is recommended for all devices and ROMs while the last is ROM specific

However, while the rooting process is nearly the same, every device is different and there is no generic root method. First you need to unlock bootloader. Some vendors (like Huawei) decided to lock devices completely, others (like Samsung, Xiaomi, Lenovo) have there own special protections

Second, you need custom recovery (or at least, modified boot.img) which is definitely device specific and not interchangeable with other device models

Usually every device has it's own section in famous xda forum where developers share custom recovery or custom rom

Always search for root method specific for your device model

(Note: i am aware of exploit based temp root methods but decided that is out of scope and not worth a timeless answer, because development is ongoing and that exploits become outdated)

  • I know how to root etc. I have installed a custom rom on my device. Now I want to root too. I just want to know if the root file is different if the stock rom is not installed. Is the root file changes with rom. Thanks :) Commented Aug 2, 2020 at 12:04
  • Magisk is good. It also had the option to unroot back. Commented Aug 2, 2020 at 13:58
  • 1
    However, it has some incompatibilities with GSIs and fails to patch dm-verity with FEC enabled Strictly Enforced Verified Boot with Error Correction
    – alecxs
    Commented Aug 2, 2020 at 14:18
  • Do you know of any app that blocks internet from a specific app, not a whole system firewall or VPN that always run in the background? Commented Aug 5, 2020 at 19:58
  • FEC link updated because xda doubled posts per page
    – alecxs
    Commented Apr 15, 2022 at 11:29

Not the answer you're looking for? Browse other questions tagged .