mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-27 04:51:03 +00:00
feat: Improve experience of rooted patched app installations (#59)
This commit is contained in:
@@ -5,6 +5,11 @@ class RootAPI {
|
||||
final String _postFsDataDirPath = '/data/adb/post-fs-data.d';
|
||||
final String _serviceDDirPath = '/data/adb/service.d';
|
||||
|
||||
Future<bool> hasRootPermissions() async {
|
||||
bool? isRooted = await Root.isRooted();
|
||||
return isRooted != null && isRooted;
|
||||
}
|
||||
|
||||
Future<bool> isAppInstalled(String packageName) async {
|
||||
if (packageName.isNotEmpty) {
|
||||
String? res = await Root.exec(
|
||||
|
||||
Reference in New Issue
Block a user