Changing file permissions with root, will they remain if I unroot? I currently use the run-as command through adb to be able to access the data folder of an app that I am developing directly on my phone using AIDE.

When connecting to the phone locally, using connectbot, I can find the run-as command in /system/bin/ but it has no executable permission. There are other programs/scripts in that folder that do have executable permissions and I can run them.

My question is this. If I root my phone, I can change the executable permissions of run-as. If I then remove the root, will these permissions remain?

I'm not totally averse to rooting my phone permanently but if I don't need to, I'd rather not.

This is on a Galaxy Nexus.



I'm aware if I leave run-as executable then I'm possibly allowing myself wide open for security risks. But I am willing to risk it, even just to see if its possible.
Yes.

There's nothing magical to restore /system partition to original state. Many users gain root access temporarily to remove bloatwares from /system/apps &amp; then unroot.

But, remember, if un-rooting method involves flashing /system image, you'll lose your changes. So, use proper un-rooting method.