I am checking in Android If device is rooted or not with this below code-
async checkDeviceSecurity() { try { const rootStatus = await DeviceSecurityDetect.isJailBreakOrRooted(); console.log("The device is | rootStatus: "+JSON.stringify(rootStatus)); console.log(The device is | Root/Jailbreak status: ${rootStatus.value ? 'Yes' : 'No'}`);
const pinStatus = await DeviceSecurityDetect.pinCheck();
console.log(`The device is | Secure lock enabled: ${pinStatus.value ? 'Yes' : 'No'}`);
} catch (error) {
console.error('The device is | Error checking device security:', error);
}
}`
And I am checking in a device which is rooted and I am able to detect the same device as rooted with other shell script.
but when I am using this plugin it returns device is not rooted.
Please help.
I am checking in Android If device is rooted or not with this below code-
async checkDeviceSecurity() { try { const rootStatus = await DeviceSecurityDetect.isJailBreakOrRooted(); console.log("The device is | rootStatus: "+JSON.stringify(rootStatus)); console.log(The device is | Root/Jailbreak status: ${rootStatus.value ? 'Yes' : 'No'}`);} catch (error) {
console.error('The device is | Error checking device security:', error);
}
}`
And I am checking in a device which is rooted and I am able to detect the same device as rooted with other shell script.
but when I am using this plugin it returns device is not rooted.
Please help.