Open xyz-nobody opened 2 years ago
ex where I removed the possibility to uninstall Sentry.
But it's still possible to remove the rights of the application and I haven't found a clean way to prevent that. when the application has admin rights, it blocks the force stop.
And here is the screenshot when the application has admin rights
So the ultimate idea is to prevent disabling the admin device permission lol I'm still trying to figure out if we're doing our rom if there's anything we can do. I keep you in touch
I will take a look if it can be done.
Thanks for these changes and especially for Duress with a specific password. This is absolutely great
on the other hand would it be possible to find a solution to prevent a user to remove the right on the application? If you remove the right it will wipe the phone.
I know it's a bit hard, but we're in a situation where the phone is unlocked and the fake icons are activated (signal etc) but the attacker knows the trick, he just goes in the settings and uninstalls the application or removes the rights. To prevent him from uninstalling the application we can force him by making our own rom.
But if we remove the right of device administration it will wipe the phone.
I found an old conversation on the subject:
https://stackoverflow.com/questions/9298364/how-to-wipe-android-device-when-device-admin-is-deactivated