• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

App to log a user out of another app

Is it possible (with user permission of course) to have an app completely delete all the settings of another app? For instance if I wanted to log someone out of an another app and erase their stored login information so when they run that app again they're starting over like they just installed it?
Thanks
 
It would be with user consent of course. It's for a specific use case where the user would want to be able to login to all their accounts on a system and then have this app automatically log them out of every other app and delete all their settings when they were done using it so the next user would come to the system as if it was brand new. I have a valid reason, just need to know if it's possible.
 
Upvote 0
no idea never heard of something like that. i do not see how it would be possible because that would need to be able to access and use the username and password for the account on another app. something like that i could see people using that bit of code for malicious purpose even though your intent is not......so i doubt it.

But that info is stored somewhere on the device. With root access I can't imagine it wouldn't be possible to delete the settings files
 
Upvote 0
With root access it's absolutely possible to delete another app's data. Heck, it's been a few years since I used it but I'm pretty sure that you could just use Titanium Backup to do that. Or you could just go into Settings > Apps, select the app and "Clear Data".

Selectively removing some data would require knowing how the other app's database is structured, but just erasing an app's data in its entirety is doable.
 
  • Like
Reactions: ocnbrze
Upvote 0
I think another way to ask the OP's question is how to wipe data and cache for an app via another app. It sounds to me like the use case is sharing or temporary use of a device and cleaning up after the fact. I'm not sure if it is something Tasker can do or not. I think sandboxing in Android / *nix may prevent this.
 
  • Like
Reactions: ocnbrze and kate
Upvote 0
I think another way to ask the OP's question is how to wipe data and cache for an app via another app. It sounds to me like the use case is sharing or temporary use of a device and cleaning up after the fact. I'm not sure if it is something Tasker can do or not. I think sandboxing in Android / *nix may prevent this.

Correct. Think of a shared device where you want to login to your accounts but then when you leave the device you want to get auto-logged out of everything for the next user to use. But there would be certain apps that would retain settings and possibly stay logged in, so I wound't want to wipe out everything, just select apps. I would know the apps ahead of time if it was just a matter of finding their settings locations and deleting the files, or is there some kind of system database I'd have to tap into, just wondering if it's even possible? Thanks
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones