Android modified su binary errors on setgid

I created a custom su file for testing.

I copied the binary to / system / xbin / mod _su

I changed the file permissions using chmod 6755 / system / xbin / mod_su,

but still, when I run the binary as a non-root user, I fail in setgid (0) with "Operation not allowed1"

Any ideas why this might happen?

6755 permmisons is not enough?

+3
source share
2 answers

You chown root.root it before chmod?

+1
source

Besides chown, you can also try

chmod 4755

4 indicates the specified user ID, which may be the cause of the error.

0
source

All Articles