mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-01 22:34:25 +02:00
fix: Surround isRooted with a try/catch just to be safe
This commit is contained in:
parent
31756884b6
commit
ef0c59f693
@ -6,8 +6,12 @@ class RootAPI {
|
|||||||
final String _serviceDDirPath = '/data/adb/service.d';
|
final String _serviceDDirPath = '/data/adb/service.d';
|
||||||
|
|
||||||
Future<bool> hasRootPermissions() async {
|
Future<bool> hasRootPermissions() async {
|
||||||
bool? isRooted = await Root.isRooted();
|
try {
|
||||||
return isRooted != null && isRooted;
|
bool? isRooted = await Root.isRooted();
|
||||||
|
return isRooted != null && isRooted;
|
||||||
|
} on Exception {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> setPermissions(
|
Future<void> setPermissions(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user