So actually, I have Android 13.
The problem is in my C code (probably?).
When I call
setuid(0)
or setuid(getuid())
in my phone, I get this output:
Bad system call
Meanwhile on my laptop with Ubuntu, setuid()
doesn't throw any error, and returns -1 (so that's how it should be).
Then why does Android's setuid()
throw that?
And if Bad system call
is normal for Android, then how can the Android system call setuid()
for each Java application (uid 10000 and greater)?
Asked by BHms game Java
(3 rep)
Sep 6, 2024, 03:09 PM
Last activity: Sep 9, 2024, 02:26 PM
Last activity: Sep 9, 2024, 02:26 PM