libsu
libsu copied to clipboard
Apps using libsu do not work on root solutions like APatch.
I've been redirected here from the APatch repository regarding an issue with libsu not being able to normally function.
This issue persist over any apps that uses this library, and it seems to be related specifically to libsu.
https://bin.kv2.dev/~65f4075c5de7ed6bfdbfad3c
I've been redirected here from the APatch repository regarding an issue with libsu not being able to normally function.
This issue persist over any apps that uses this library, and it seems to be related specifically to libsu.
https://bin.kv2.dev/~65f4075c5de7ed6bfdbfad3c
Your issue looks like something potentially is wrong with your ProGuard configuration, but we're also seeing an issue where isAppGrantedRoot always returns false on APatch specifically
Same problem on android 14
Would an update be possible?
I've been redirected here from the APatch repository regarding an issue with libsu not being able to normally function. This issue persist over any apps that uses this library, and it seems to be related specifically to libsu. https://bin.kv2.dev/~65f4075c5de7ed6bfdbfad3c
Your issue looks like something potentially is wrong with your ProGuard configuration, but we're also seeing an issue where
isAppGrantedRootalways returns false on APatch specifically
isAppGrantedRoot is always false on KernelSU and APatch. This method looks for a file but su is not a real file in those
Workaround is to use
try {
Runtime.getRuntime().exec("su --version");
return true;
} catch (IOException e) {
// java.io.IOException: Cannot run program "su": error=2, No such file or directory
return false;
}
I've been redirected here from the APatch repository regarding an issue with libsu not being able to normally function. This issue persist over any apps that uses this library, and it seems to be related specifically to libsu. https://bin.kv2.dev/~65f4075c5de7ed6bfdbfad3c
Your issue looks like something potentially is wrong with your ProGuard configuration, but we're also seeing an issue where
isAppGrantedRootalways returns false on APatch specifically
isAppGrantedRootis always false on KernelSU and APatch. This method looks for a file butsuis not a real file in thoseWorkaround is to use
try { Runtime.getRuntime().exec("su --version"); return true; } catch (IOException e) { // java.io.IOException: Cannot run program "su": error=2, No such file or directory return false; }
Works fine on KernelSU, provided the app is whitelisted in the manager. It's APatch specifically that (not tested with the recent 6.0.0 release) that always insists it does not have root or crashes.