Update: 2026-06-26 01:10:36
This commit is contained in:
@@ -14,6 +14,9 @@ class SecurityHelper {
|
||||
Log.print('----------------------------------------------------');
|
||||
return signature;
|
||||
|
||||
} on MissingPluginException {
|
||||
Log.print('⚠️ getAppSignature not implemented on this platform');
|
||||
return null;
|
||||
} on PlatformException catch (e) {
|
||||
Log.print('❌ Failed to get app signature: ${e.message}');
|
||||
return null;
|
||||
@@ -24,6 +27,8 @@ class SecurityHelper {
|
||||
try {
|
||||
final bool isRooted = await platform.invokeMethod('isNativeRooted');
|
||||
return isRooted;
|
||||
} on MissingPluginException {
|
||||
return false;
|
||||
} on PlatformException catch (e) {
|
||||
Log.print('❌ Failed to check root: ${e.message}');
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user