Every time I edit a file in /, /sbin, or /system/bin it overwrites on restart (device is rooted and in r/w mode). I assume this is because Android mounts a temporary root? Or maybe it's just a problem on my device?
How do I make a permanent change to root files? Can I do this through adb? Do I need to edit the system image, and if so can anyone point me in the right direction on where to start on this?
/
and/sbin
- they are loaded from the kernel on every boot, so it's not worth editing them out if you intend to make changes persist across reboots. What device are you using?