Hi all
Is there a way to force a factory reset from within an app?
I found this https://www.b4x.com/android/forum/threads/wipe-device.99912/#content which fires up the reset dialogue but the user still has the option to cancel.
The reason for this is that some of my users are on the road and they have managed to lose or have their tablets stolen.
I can inhibit most stuff by changing their password so any remembered passwords wont work anymore but it would be nice to have the added security of wiping the device completely if they attempt to use any of the apps.
Currently the app returns a 'destroy' directive when they attempt to log in which will delete the SQLite database but I would really prefer it if I could do a factory reset.
My guess is that this is not possible as the reset is part of the android settings and we can only launch it but one of you clever guys may know different?
Thanks
Is there a way to force a factory reset from within an app?
I found this https://www.b4x.com/android/forum/threads/wipe-device.99912/#content which fires up the reset dialogue but the user still has the option to cancel.
The reason for this is that some of my users are on the road and they have managed to lose or have their tablets stolen.
I can inhibit most stuff by changing their password so any remembered passwords wont work anymore but it would be nice to have the added security of wiping the device completely if they attempt to use any of the apps.
Currently the app returns a 'destroy' directive when they attempt to log in which will delete the SQLite database but I would really prefer it if I could do a factory reset.
My guess is that this is not possible as the reset is part of the android settings and we can only launch it but one of you clever guys may know different?
Thanks