x13a / Wasted

Lock and wipe on emergency
GNU General Public License v3.0
483 stars 41 forks source link

Wipe if the user remove autorisation Device Administration #45

Open xyz-nobody opened 2 years ago

xyz-nobody commented 2 years ago

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

xyz-nobody commented 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.

signal-2022-08-01-025958_002 cleaned

And here is the screenshot when the application has admin rights

signal-2022-08-01-031021_002 cleaned

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

x13a commented 2 years ago

I will take a look if it can be done.