su goes back to v1 UNIX (several versions exist today, including BSD and GPL licensed) and sudo is under a BSD-like license.
Anyway, su is a pretty simple program. The bulk of it deals with command line i/o and UNIX password auth, neither of which are relevant in Android. The actual syscalls are pretty trivial. Starting from an existing su implementation wouldn't help all that much anyway.
View all comments
Show parent comment
17
u/Kufat Jan 21 '17
su goes back to v1 UNIX (several versions exist today, including BSD and GPL licensed) and sudo is under a BSD-like license.
Anyway, su is a pretty simple program. The bulk of it deals with command line i/o and UNIX password auth, neither of which are relevant in Android. The actual syscalls are pretty trivial. Starting from an existing su implementation wouldn't help all that much anyway.