I know a lot of people ask the question how to root their phone and then get the answer to just use some app like kingoroot, towelroot, rootgenius or any other. But then there are some devices that those apps don't support, like TV boxes, some exotic tablets or phones like mine CAT S60 which runs android 6.0.1, so I'm essentially interested in rooting it.
I've researched this question for a few weeks and found out some useful information on how rooting works but I yet have to find a working way to root my phone and maybe other devices.
Getting to the practical part of the question, what could I do to root my phone or any other device I or someone else could come across in the future that doesn't have an immediate solution for rooting it?
Now I know that rooting consists of putting an su binary in the /system/app folder, so now I'm trying to figure out how to do it.
Is it possible to use su binary on Android 6.0.1?
is there any known EoP (Escalation of Privilege) exploit in Android 6.0.1+ that I can use to mount /system in rw mode? Is it possible to mount /system in the recovery or the bootloader mode using ADB or any exploit without having to use a custom recovery? Is it possible to back up the whole ROM of the device for safety or to insert the su in it and then re-flash it?
If nothing like that exist, should I try to find out if there is an EoP exploit on my own and how would I do it?
And how to insert su in the system folder after /system gets mounted for writing?