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 Aug 1 '20 at 20:57
  • @alecxs Please be descriptive for the main question. I didn't understand "No(yes)" – Waqas Shah Aug 1 '20 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 Aug 1 '20 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? – Waqas Shah Aug 1 '20 at 22:33
  • 1
    Does this answer your question? How do I root my Android device? – alecxs Aug 2 '20 at 7:41

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 :) – Waqas Shah Aug 2 '20 at 12:04
  • Magisk is good. It also had the option to unroot back. – Waqas Shah Aug 2 '20 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 Aug 2 '20 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? – Waqas Shah Aug 5 '20 at 19:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.